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

Allow additional schema options on Operation.parameter/5 #564

Conversation

mrnovalles
Copy link
Contributor

When trying to add additional fields to the OpenApiSpex.Schema sent as an option to the Operation.parameter function, these options suddenly dissapeared and all that was returned in the resulting JSON was the :type key.

This commit adds an additional step to check if the :schema key was passed as an option before falling back to building a schema solely including the parameter type. This will be useful when displaying for example enum: ["foo", "bar"] for a query param taking only some values

Fixes #563

@mrnovalles mrnovalles closed this Sep 15, 2023
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.

Operation parameters cannot include an enum key in their schema
2 participants