Citace od: Mirek Prýmek kdy 12. 06. 2017, 12:32:11
BTW,
Citace
Warning
The precise treatment of the "integer" type may depend on the implementation of your JSON Schema validator. JavaScript (and thus also JSON) does not have distinct types for integers and floating-point values. Therefore, JSON Schema can not use type alone to distinguish between integers and non-integers. The JSON Schema specification recommends, but does not require, that validators use the mathematical value to determine whether a number is an integer, and not the type alone. Therefore, there is some disagreement between validators on this point. For example, a JavaScript-based may accept 1.0 as an integer, whereas the Python-based jsonschema does not.
https://spacetelescope.github.io/understanding-json-schema/reference/numeric.html
To je "specifikace" jak poď na mě zboku.
Nehanej nahodou frikulini soap (a XML obecne) proto, ze prej je zbytecne slozitej, a ze jim json staci? lol ... neni nad to porad dokola vymejslet kolo.