We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
:?
:sequential
Hey friends, I've found a small difference between [:sequential {:max 1} schema] and [:? schema] when transformed with malli.json-schema:
[:sequential {:max 1} schema]
[:? schema]
malli.json-schema
(m.js/transform (m/schema [:map {:closed true} [:data [:? [:map {:closed true} [:id :int] [:description [:maybe :string]] [:name :string]]]]])) ; {:type "object", ; :properties {:data {}}, ; :required [:data], ; :additionalProperties false} (m.js/transform (m/schema [:map {:closed true} [:data [:sequential {:max 1} [:map {:closed true} [:id :int] [:description [:maybe :string]] [:name :string]]]]])) ; {:type "object", ; :properties ; {:data ; {:type "array", ; :items ; {:type "object", ; :properties ; {:id {:type "integer"}, ; :description {:oneOf [{:type "string"} {:type "null"}]}, ; :name {:type "string"}}, ; :required [:id :description :name], ; :additionalProperties false}, ; :maxItems 1}}, ; :required [:data], ; :additionalProperties false}
Is this intentional? If not, I can dig in to try to fix it.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hey friends, I've found a small difference between
[:sequential {:max 1} schema]
and[:? schema]
when transformed withmalli.json-schema
:Is this intentional? If not, I can dig in to try to fix it.
The text was updated successfully, but these errors were encountered: