-
Notifications
You must be signed in to change notification settings - Fork 201
Fix json schema validation #90
Conversation
This is done by the |
Ok. However, it currently doesn't work. I will take time to find another solution. |
I have no error with the current test suite. Have you an example? |
In my project it doesn't throw errors even if there are some (for ex if a required field is missing). |
Let me take a look again, i will give you more details asap ;) |
At this point https://github.com/justinrainbow/json-schema/blob/1.3.7/src/JsonSchema/Constraints/Undefined.php#L119 the schema object I have is equal to someting like that :
|
|
Ho ok, I will update it. However, it's still not accessible, as it's a child of the |
👍 , i'm having same behavior. |
Same problem here and this modification is working 👍 |
Please, merge this ASAP. |
ping @sanpii. Please. :) |
👍 |
@sanpii May be you need some help to maintain this library ? |
I guess https://github.com/sanpii/behatch-contexts/pull/87/files is more complete than this one. Could we close this one and merge the #87 ? |
And it has to be done on |
Currently
Sanpi\Behatch\Json\Json
and ```Sanpi\Behatch\Json\JsonSchemaobjects are given to the
JsonSchema\Validator::check` method.It think this is incorrect as it should be the
content
value of this objects that should be used.This PR fixes this.