You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[OpenApi] Generate schema for JSON Patch endpoints (#63052)
* [OpenApi] Add non-generic JSON patch
Update the sample to include a non-generic JSON patch endpoint.
* [OpenApi] Generate schema for JSON Patch
Generate an appropriate OpenAPI schema for JSON Patch endpoints.
* Fix condition
Leftovers from before tests were added.
* Handle derived types
- Handle custom types derived from `JsonPatchDocument` or `JsonPatchDocument<T>`.
- Add extension method to remove duplicated type checks.
* [OpenApi] Remove JsonPatch.SystemTextJson dep
Remove the dependency on `Microsoft.AspNetCore.JsonPatch.SystemTextJson` as it creates type warnings, and instead check the types by name.
* Update type check
- Check for a generic type before type name check.
- Replace `StartsWith()` with `==`.
* Add required for JSON Patch remove
Add `required` members to the OpenAPI schema for a JSON Patch remove operation.
0 commit comments