kroc702
kroc702
I forget to mention version: ``` "name": "justinrainbow/json-schema", "version": "v5.2.13", "source": { "type": "git", "url": "https://github.com/justinrainbow/json-schema.git", "reference": "fbbe7e5d79f618997bc3332a6f49246036c45793" }, ```
Well it's a choice, your choice ;) As php is loosely typed, it doesn't hurt me to validate the strings "true" or "1" as boolean or number. Changing this behavior...
Note that order is important: if input value is 'a', it's working as expected ``` input value: { "a": 1 } schema: { "anyOf": [... same as above ... ]...
With oneOf ``` input value: { "a": 1 } schema: { "oneOf": [... same as above ... ] } value is valid output value: { "a": 1, "aDefault": 1, "bDefault":...
With oneOf, different order ``` input value: { "b": 2 } schema: { "oneOf": [... same as above ...] } The property aDefault is not defined and the definition does...
I forget to mention version: ``` "name": "justinrainbow/json-schema", "version": "v5.2.13", "source": { "type": "git", "url": "https://github.com/justinrainbow/json-schema.git", "reference": "fbbe7e5d79f618997bc3332a6f49246036c45793" }, ``` And no I didn't debug this code yet. I'll add...