-
Notifications
You must be signed in to change notification settings - Fork 1
OpenAPI Support #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
OpenAPI Support #41
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
647c5dd
chore: add AI plan for OpenAPI support
feO2x f553d9c
feat: extend OpenAPI support
feO2x cf4940b
chore: add OpenAPI support for NativeAotMovieRating project
feO2x 0d36c97
test: increase coverage for OpenAPI types
feO2x c0b43ae
test: fix failing test
feO2x 112253b
chore: redirect to Scalar when home rout is accessed in NativeAotMovi…
feO2x 49bb5a9
feat: add initial OpenAPI extension to the codebase
feO2x d08c22e
chore: rename initial OpenAPI Support plan
feO2x 19c96ab
chore: add OpenAPI support redesign plan
feO2x 454c2e4
feat: initial redesign of OpenAPI support
feO2x 99b02ec
chore: add NewMovie endpoint to the project
feO2x dbad3f9
chore: renamed AddMovieRating to NewMovieRating
feO2x d7042ec
chore: update to .NET SDK 10.0.202
feO2x d042fb8
chore: remove native AOT dependencies from NativeAotMovieRating's pac…
feO2x f2850ed
chore: turn RestoreLockedMode off for NativeAotMovieRating project
feO2x d7efd05
chore: update .NET SDK version to 10.0.203
feO2x 3af47a7
chore: move PortableOpenApiErrorResponseAttributeBase to own file
feO2x 94444a1
chore: cleanup PortableResultsOpenApiModule
feO2x 41abc86
chore: OpenAPI attributes are no longer sealed
feO2x 887738f
chore: OpenAPI core functionality is no longer internal
feO2x 33f7157
chore: add explaining comments to PortableResultsOpenApiDocumentTrans…
feO2x 08f4ac6
refactor: introduce PortableOpenApiSuccessResponseAttributeBase to re…
feO2x c1a0a7a
chore: add addtional comments to PortableResultsOpenApiDocumentTransf…
feO2x c5c91af
chore: use TryAdd in AddComponentAndCreateReference
feO2x 59d3825
chore: remove unused parameter from AddIfMissing method in PortableRe…
feO2x dd9254a
chore: inject PortableResultsHttpWriteOptions directly into PortableR…
feO2x 49b37c2
fix: ValidateInlineMetadataArrays now throws when one of the arrays i…
feO2x 4d9298c
chore: remove dead EscapeJsonPointer code
feO2x de6c67c
fix: metadata can now be null
feO2x cb78176
chore: SanitizeSegment is now private
feO2x cfff5d8
fix: ResponseGroupKey is now case-insensitive
feO2x 72647e1
fix: OpenAPI GetOrCreateResponse now can handle referenced responses
feO2x e10d64f
chore: document that PortableResults OpenAPI metadata is authoritativ…
feO2x 9b2482f
chore: RegisterErrorMetadataContractRegistry only once
feO2x d4512ac
chore: PortableOpenApiSuccessResponseAttributeBase now indicates why …
feO2x 7a0af3b
chore: use HttpMethod.Parse in TryGetOperation
feO2x afb8543
refactor: introduce subnamespaces in OpenAPI project
feO2x 3d241ae
chore: adjust AI plan 0040-2 to use new OpenAPI namespaces
feO2x 4c090dd
chore: update plan 0040-2 so that it respects recent developments
feO2x cdb2fa4
feat: implement built-in OpenAPI error contracts
feO2x 722a40c
chore: BuiltInValidationErrorContracts now uses FrozenDictionary
feO2x 534bb44
chore: introduce diagnostic name for schema-based error metadata cont…
feO2x 800fbd4
chore: add 0040-3 plan for improved OpenAPI test coverage
feO2x ffa806c
test: increase code coverage for OpenAPI functionality
feO2x 9f866ca
chore: simplify name to PortableNoMetadataContract
feO2x fa8a1d9
chore: remove PortableErrorMetadataContractEqualityComparer and imple…
feO2x 3b27427
test: improve coverage of OpenAPI transformer
feO2x 01af388
chore: increase code coverage for PortableErrorMetadataContract.GetHa…
feO2x 2a4a0d5
refactor: IPortableErrorMetadataContractRegistry now uses a FrozenDic…
feO2x fb3c8db
refactor: remove ConfigureErrorMetadataContracts and include registra…
feO2x 885bb37
fix: Replace typed NativeAOT-incompatible OpenAPI metadata with schem…
feO2x 7411ee1
chore: rename to ErrorMetadataContract
feO2x 9fabd9a
chore: fix formatting when registering endpoints
feO2x fdc277a
chore: introduce Swashbuckle UI in NativeAotMovieRating.csproj
feO2x f6f9518
chore: add plan 0040-5 for exhaustive exhaustive error-code schemas
feO2x b2922a7
feat: introduce exhaustive OpenAPI error code schemas
feO2x 133e0cb
test: aspNetCoreRequired is now mutated
feO2x cece303
chore: add plan deviations for 40 OpenAPI support
feO2x 02f6af7
chore: fix requests.http routes
feO2x b2f8113
fix: restructure DiagnosticName to SchemaId in ErrorMetadataSchemaCon…
feO2x a9144db
fix: WithErrorMetadata on OpenAPI builders now perform NullOrWhiteSpa…
feO2x 59e1781
chore: fix return type in NewMovie endpoint in NativeAotMovieRating s…
feO2x aae55e7
chore: use correct method name in NewMovieEndpoint
feO2x e27dd79
chore: ignore .codex files
feO2x f003689
chore: GetMoviesEndpoint now uses validation for MovieNotFound
feO2x 85c4755
chore: GetRangeAfterMovieId now only returns null when the ID could n…
feO2x 7ee385b
fix: InMemoryMovieDatabase now produces unique IDs
feO2x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,5 @@ obj/ | |
| *.cobertura.xml | ||
| *.received.* | ||
| .DS_Store | ||
| *.lscache | ||
| *.lscache | ||
| .codex | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MVC example references
AddMovieRatingDto, but there is no such type in the sample code (the sample usesMovieRatingDto). This makes the documentation example inconsistent/non-compilable; update the parameter type to the correct DTO used by the library/sample.