-
Notifications
You must be signed in to change notification settings - Fork 215
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
Malli generates circular json-schema #868
Comments
Merged
I'll do some more testing and see if I can find any other corner cases. |
Mutual recursion still doesn't work: user=> (malli.json-schema/transform [:schema {:registry {"Foo" [:vector [:ref "Bar"]] "Bar" [:ref "Foo"]}} "Foo"])
{:$ref "#/definitions/Foo", :definitions {"Foo" {:type "array", :items {:$ref "#/definitions/Bar"}}}} |
opqdonut
added a commit
that referenced
this issue
Mar 28, 2023
opqdonut
added a commit
that referenced
this issue
Mar 29, 2023
Fixed in master: (malli.json-schema/transform [:schema {:registry {"Foo" [:vector [:ref "Bar"]] "Bar" [:ref "Foo"]}} "Foo"])
;{:$ref "#/definitions/Foo",
; :definitions {"Foo" {:type "array", :items {:$ref "#/definitions/Bar"}}
; "Bar" {:$ref "#/definitions/Foo"}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
... at least for mu/closed schemas
#863 seems to fix this.
The text was updated successfully, but these errors were encountered: