3 ms·
> With JsonLogic, that might look like this Here is the thing...There is already a crappy way to describe JSON Schemas[1,2]. It is hard to grok by visual insp
by nanis 5y ago
> With JsonLogic, that might look like this
Here is the thing...There is already a crappy way to describe JSON Schemas[1,2].
It is hard to grok by visual inspection and expressing conditions like "this element can either be a list containing a subset of these values or a hash with keys that belong to the same set" etc make it unwieldy.
The schema ends up being really brittle and hard to modify. 100% green-lit test coverage don't mean a thing when it is soooo easy to end up with a false negative.
Now take that and add logic to it? One has to question the existence of all the programming languages in use if we are going to end up subjecting ourselves to that torture.
[1]: https://json-schema.org/ https://json-schema.org/
[2]: https://json-schema.org/draft/2020-12/json-schema-core.html https://json-schema.org/draft/2020-12/json-schema-core.html
- Seb-C 5y agoJson schema is very useful and is not the same thing as this. Json schema validates the data structure, while this seems to be more about writing algorithms in json