-
Hi, What is the way to define a schema where some properties are required but also other non-specified ones allowed? I.e. have `object`(
Field("something", Json.schema[Int])
).withAdditionalProperties(true) // does not exist generate something like {
"properties" : {
"something" : { "type" : "integer" }
},
"additionalProperties" : true,
"$schema" : "http://json-schema.org/draft-07/schema#",
"type" : "object",
"required" : [
"something"
]
} Cf. https://json-schema.org/understanding-json-schema/reference/object.html#id2 |
Beta Was this translation helpful? Give feedback.
Answered by
vlfig
Apr 26, 2021
Replies: 1 comment 2 replies
-
ping @andyglow ? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
vlfig
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ping @andyglow ?