You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The json-schema gem doesn't seem to support any recent versions of the JSON Schema spec, and this causes some issues in testing:
adding a definition for any property to an object makes that property required - I can't make this thing accept that a defined property is optional
if a property is defined, it seems to be required in the required list - I can't add a property and not make it required
I've used JSON Schemer in another app, and it behaves according to the most recent JSON Schema spec.
If optional properties were supported, it would reduce duplication in the schema files. For example, index typically returns a list of objects that also match the response from show, except some fields will be excluded in index. If there were a schema for, e.g., document in which the attributes that index doesn't return were optional, the schema for documents could reference it instead of duplicating it and having some properties removed.
The text was updated successfully, but these errors were encountered:
The
json-schema
gem doesn't seem to support any recent versions of the JSON Schema spec, and this causes some issues in testing:required
list - I can't add a property and not make itrequired
I've used JSON Schemer in another app, and it behaves according to the most recent JSON Schema spec.
If optional properties were supported, it would reduce duplication in the schema files. For example,
index
typically returns a list of objects that also match the response fromshow
, except some fields will be excluded inindex
. If there were a schema for, e.g.,document
in which the attributes thatindex
doesn't return were optional, the schema fordocuments
could reference it instead of duplicating it and having some properties removed.The text was updated successfully, but these errors were encountered: