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
Hey friends,
I have this schema:
(def Item (m/schema [:map {:closed true} [:description [:maybe :string]] [:id :int] [:name :string] [:type :string]]))
Calling malli.json-schema/transform on it returns:
malli.json-schema/transform
{:type "object", :properties {:description {:oneOf [{:type "string"} {:type "null"}]}, :id {:type "integer"}, :name {:type "string"}, :type {:type "string"}}, :required [:description :id :name :type]}
I would like it if {:closed true} would set :additionalProperties false, which would align it with the spec.
{:closed true}
:additionalProperties false
Thanks so much.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hey friends,
I have this schema:
Calling
malli.json-schema/transform
on it returns:I would like it if
{:closed true}
would set:additionalProperties false
, which would align it with the spec.Thanks so much.
The text was updated successfully, but these errors were encountered: