Skip to content
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

Remove request body from DELETE operations in OpenAPI spec #821

Conversation

McMerph
Copy link
Contributor

@McMerph McMerph commented Feb 14, 2023

This PR fixes #820

@RobinTail RobinTail added the breaking Backward incompatible changes label Feb 19, 2023
@RobinTail RobinTail changed the title Remove request body from delete operations in OpenAPI spec Remove request body from DELETE operations in OpenAPI spec Feb 26, 2023
@RobinTail RobinTail changed the base branch from master to v9-beta February 26, 2023 18:19
@RobinTail RobinTail merged commit e3e259b into RobinTail:v9-beta Feb 26, 2023
RobinTail added a commit that referenced this pull request Feb 28, 2023
* Remove request body from delete operations in OpenAPI spec

* Remove `DELETE` request `body` from `defaultInputSources` + revert `src/open-api.ts` change from previous commit

* Fix test name, add couple todos.

* Testing fallback input sources for unknown request methods.

* Updating the workflows to run in this branch.

---------

Co-authored-by: Robin Tail <robin_tail@me.com>
RobinTail added a commit that referenced this pull request Mar 4, 2023
* Remove request body from `DELETE` operations in OpenAPI spec (#821)

* Remove request body from delete operations in OpenAPI spec

* Remove `DELETE` request `body` from `defaultInputSources` + revert `src/open-api.ts` change from previous commit

* Fix test name, add couple todos.

* Testing fallback input sources for unknown request methods.

* Updating the workflows to run in this branch.

---------

Co-authored-by: Robin Tail <robin_tail@me.com>

* Readme: reflecting the changes, including the config type description.

* Changelog: version 9.0.0-beta1, describing the potentially breaking changes.

* V9 is for Brianna Ghey.

* Updating the workflows to support the future branch of v8.

* Updating the Security policy.

* 9.0.0-beta1

* Solving the problem #787 (#819)

* The proposed solution.

* Changing the name of the error.

* Adding originalError prop.

* The proposed solution.

* Changing the name of the error.

* Adding originalError prop.

* Ref: the solution based on the consistency of OutputValidationError and InputValidationError.

* Exposing getMessageFromError() and getStatusCodeFromError() helpers.

* Enabling workflows.

* Testing the edge cases.

* Testing the inheritance of InputValidationError.

* Adding the specific test for the problem #787.

* Revert "Enabling workflows."

This reverts commit c71689b.

* Handling the edge case when the issues array is empty.

* Changelog: v9.0.0-beta2, describing the potenitally breaking changes.

* Readme: updating the instructions on creating a custom ResultHandler.

* 9.0.0-beta2

* Changelog: the response may actually not be json.

* Changelog: a note on base for 9.0.0-beta1.

* Changelog: upcoming v9.0.0-beta3.

* 9.0.0-beta3

* Breaking: removing createApiResponse().

* Ref: moving the array initializer for scopes and tags.

* Replacing mimeTypes parameter with hasUpload, moving mime types initialization to constructor.

* Ref: figuring out hasUpload inside the constructor.

* Ref: single method for getMimeTypes() with variants.

* Ref: moving response schema and status codes initializations into constructor.

* Ref: single method for getStatusCode() with variants.

* Ref: removing getOutputSchema() - redundant.

* Ref: single method for getSchema() with variants and overloads.

* Ref: extracting variant types.

* Fix: using ZodTypeAny where anything is implied.

* Changelog: upcoming 9.0.0-beta4.

* Minor: fix typo.

* 9.0.0-beta4

---------

Co-authored-by: Aleksandr Sidorenko <mcmerph@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Backward incompatible changes prevention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DELETE endpoints with requestBody leads to an OpenAPI semantic error
2 participants