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

No exception when the contract contains operation request/response with unsupported media type. #18

Open
dprincethg opened this issue Mar 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dprincethg
Copy link

dprincethg commented Mar 16, 2023

I've tried to create a contract from an OpenAPI file containing some operations with "application/json" request/response body media type, and others operations with other types (multipart/form-data,...)

But the creation fails as only "application/json" is supported.
io.vertx.openapi.contract.OpenAPIContractException: The passed OpenAPI contract contains a feature that is not supported: Operation getLocationsAsFile defines a response with an unsupported media type. Supported: application/json

I would prefer to allow the contract creation, and raise exceptiuon only during validation.

Because I use the contract only to validate "application/json" operations with "Vert.x OpenAPI Router".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant