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
This is the code to validate the above schema and response.
$validator = new Validator
$validator->reset();
$validator->check($jsonResponse, $expectedSchema);
$validator->isValid();
As you can see above, the download section's structure is definately different. In the schema, downloads have an array of object while the response have an object with key name Doc. Thus, I believe that json-schema library should detect this error. But it seems to only detect the data type errors.
How can I detect this type of error? or is this type of error impossible to detect in json-schema library?
Please give me a small clue to resolve this issue.
Thank you.
The text was updated successfully, but these errors were encountered:
@ygpark2 in an attempt to cleanup this repo we are trying to filter the issues and see which ones might be closed. Is it safe to assume this is a rather old issue, which sadly was left unanswered, and can be closed? Feel free to close it yourself with some comments if helpful.
Schema
Response
This is the code to validate the above schema and response.
As you can see above, the download section's structure is definately different. In the schema, downloads have an array of object while the response have an object with key name Doc. Thus, I believe that json-schema library should detect this error. But it seems to only detect the data type errors.
How can I detect this type of error? or is this type of error impossible to detect in json-schema library?
Please give me a small clue to resolve this issue.
Thank you.
The text was updated successfully, but these errors were encountered: