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
"basic", "detailed" and "verbose" are defined exactly the same, which means, if output is valid for one of them, it is valid for all of them. This means that, unless the output format is flag, the "oneOf" validation would always fail.
-- Output schema requires "errors" key in case "valid" is false;
-- "errors" is recursively defined as array of "outputUnit"
-- "valid" is required
This means the only way to terminate recursion in case of "valid": false is to include "errors": [], which is misleading.
On the other hand, the output examples sometimes contain "error" key and not "errors". Although not strictly necessary, it'd be good to have "error" defined in the schema.
The text was updated successfully, but these errors were encountered:
https://github.com/json-schema-org/json-schema-spec/blob/master/output/schema.json
https://json-schema.org/draft/2019-09/json-schema-core.html#rfc.section.10
"basic", "detailed" and "verbose" are defined exactly the same, which means, if output is valid for one of them, it is valid for all of them. This means that, unless the output format is flag, the "oneOf" validation would always fail.
-- Output schema requires "errors" key in case "valid" is false;
-- "errors" is recursively defined as array of "outputUnit"
-- "valid" is required
This means the only way to terminate recursion in case of "valid": false is to include "errors": [], which is misleading.
On the other hand, the output examples sometimes contain "error" key and not "errors". Although not strictly necessary, it'd be good to have "error" defined in the schema.
The text was updated successfully, but these errors were encountered: