Also lack of inheritance support. (For example I want a way to specify that my json object should be deserialized as Dog not as Animal.)
Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
11–20 of 179 posts
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#12Soon we'll have JSLT. JSON Query, JSON Pointer, JSON signatures etc are already there. And I say that as a conscious XML user. We are going in circles. At least XML has comments.
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#13Is this the right place to complain about lack of a native Date datatype in JSON? Also lack of inheritance support. (For example I want a way to specify that my json object should be deserialized as Dog not as Animal.)
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#14Soon we'll have JSLT. JSON Query, JSON Pointer, JSON signatures etc are already there. And I say that as a conscious XML user. We are going in circles. At least XML has comments.
I legit saw a team asking for a tool that does JSON -> JSON transformations at work. The XSLT for JSON vibes were almost too strong.
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#15Here's my gripe with jsonschema... In most cases where I want to do some validation on JSON I find that I usually have a class/struct/object that represents the payload and I want to unpack JSON into it (or dump that class to JSON). Ultimately, there are already nice tools to do this (eg; marshmallow on the python side). So unless I'm crossing language boundaries writing a separate jsonschema and using that is more w…
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#16I have been trying to get anyone to use it since I discovered FasterXML/Jackson could generate it. I have not worked for an organization with public APIs. Not a single one of the APIs I work on is completely stable. Figuring out what our APIs do requires techniques from archeology, anthropology, and sociology.
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#17Earlier quoted context omitted.
I legit saw a team asking for a tool that does JSON -> JSON transformations at work. The XSLT for JSON vibes were almost too strong.
That's jq. At least useful for a lot of transformations.
That said, there are plenty of examples. JSONPath, JQ, Jolt...
I am not claiming that this is not useful. Just amused to see the wheel go around.
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#18Started using it for my site. Have a hard time navigating the docs and understanding the best types of schema for different purposes. Is there a great guide that anyone knows of?
I also found this site useful - https://cswr.github.io/JsonSchema/spec/grammar/ .
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#19It really needs comments. Unfortunately it'll never be backwards compatible. It's very helpful for debugging
Re: Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
#20It really needs comments. Unfortunately it'll never be backwards compatible. It's very helpful for debugging