Can anyone mention some interesting projects/use-case for JSON Schema? I have terrible WSDL flashbacks from a past project, where the abstraction layer was always either too high (something simpler was better) or too low (and written documentation was better).
The Last Breaking Change
21–30 of 66 posts
Re: The Last Breaking Change
#22Earlier quoted context omitted.
Does OpenAPI support union types yet? More importantly, if it does, does Swagger support the OpenAPI version that does?
We have union types defined in fastapi/pydantic and they do show up in the api explorer. Tagged unions don't work but I think that's more to do with us/python than openapi.
Re: The Last Breaking Change
#23For a format designed to be human readable, JSON not supporting comments is a major let down. And not supporting trailing comma.
Re: The Last Breaking Change
#24For a format designed to be human readable, JSON not supporting comments is a major let down. And not supporting trailing comma.
I’d say not supporting large ints is worse.
https://stackoverflow.com/questions/209869/what-is-the-accep...
Re: The Last Breaking Change
#25Can anyone mention some interesting projects/use-case for JSON Schema? I have terrible WSDL flashbacks from a past project, where the abstraction layer was always either too high (something simpler was better) or too low (and written documentation was better).
I would absolutely choose JSON schemas again for any complex enough project that chooses typed languages for both backend and frontend. (And JSON as the protocol, naturally.)
Re: The Last Breaking Change
#26For a format designed to be human readable, JSON not supporting comments is a major let down. And not supporting trailing comma.
Please don't do that to JSON.
Re: The Last Breaking Change
#27Makes CUE a much more attractive way to directly validate JSON - you can declare with struct a are open or closed as part of the definition.
Re: The Last Breaking Change
#28Can anyone mention some interesting projects/use-case for JSON Schema? I have terrible WSDL flashbacks from a past project, where the abstraction layer was always either too high (something simpler was better) or too low (and written documentation was better).
finally come back to WSDL and SOAP.
sorry, you may have "terrible flashbacks", but I enjoyed those days, where I could have clients and server code auto generated, with automatic validation and so on, and I felt all these "unstructured" data sent over json as "dark ages".
I'm tired of writing again yet another rest client payload mapping by hand...
Re: The Last Breaking Change
#29For a format designed to be human readable, JSON not supporting comments is a major let down. And not supporting trailing comma.
What’s wrong with using a ‘comment’ key? I’d say not supporting large ints is worse. https://stackoverflow.com/questions/209869/what-is-the-accep...
Re: The Last Breaking Change
#30Can anyone mention some interesting projects/use-case for JSON Schema? I have terrible WSDL flashbacks from a past project, where the abstraction layer was always either too high (something simpler was better) or too low (and written documentation was better).
> Can anyone mention some interesting projects/use-case for JSON Schema? finally come back to WSDL and SOAP. sorry, you may have "terrible flashbacks", but I enjoyed those days, where I could have clients and server code auto generated, with automatic validation and so on, and I felt all these "unstructured" data sent over json as "dark ages". I'm tired of writing again yet another rest client payload mapping by hand…
If we can't have JSON Schema, perhaps we could have a large language model auto generate our client codes by ingesting the API doc.