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

Generate correct OpenAPI $ref schemas for malli var and ref schemas #673

Merged
merged 7 commits into from
Apr 22, 2024

Conversation

opqdonut
Copy link
Member

@opqdonut opqdonut commented Apr 19, 2024

Collect all the json-schema :definitions and place them under :components :schemas in the OpenAPI document.

Depends on metosin/malli#1045 (should be in 0.16.0).

Fixes #645. Fixes #669. Implements the malli part of #616.

collect definitions when traversing the models, and put them in the
right place for openapi

depends on :malli.json-schema/definitions-path support
e.g. {:parameters {:query #'MyVar}}
@opqdonut opqdonut marked this pull request as ready for review April 22, 2024 05:17
@opqdonut opqdonut merged commit c8c8c0e into master Apr 22, 2024
10 checks passed
@opqdonut opqdonut deleted the malli-vars branch April 22, 2024 05:31
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.

[Bug] Can't generate swagger with var references Malli -> Openapi fails with custom registries
1 participant