Skip to content

Conversation

@richard-einfinity
Copy link
Contributor

Updated ProcessController in DatasyncDocumentFilter.cs to call AddRequestWithContent for OpType.Create and OpType.Replace. Added AddRequestWithContent method in DatasyncOperationExtensions.cs to modify OpenApiOperation with a request body schema. Updated swagger.json to include requestBody sections specifying application/json content type and appropriate schemas.

Updated `ProcessController` in `DatasyncDocumentFilter.cs` to call `AddRequestWithContent` for `OpType.Create` and `OpType.Replace`. Added `AddRequestWithContent` method in `DatasyncOperationExtensions.cs` to modify `OpenApiOperation` with a request body schema. Updated `swagger.json` to include `requestBody` sections specifying `application/json` content type and appropriate schemas.
@adrianhall adrianhall requested a review from Copilot January 27, 2025 21:57
@adrianhall adrianhall added this to the 9.0.0 milestone Jan 28, 2025
@adrianhall adrianhall merged commit d41bcd9 into CommunityToolkit:main Jan 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Model Definition to Post and Put methods for Swashbuckle Swagger generation

2 participants