|
|
|
|
|
by acemarke
2621 days ago
|
|
Some searching turns up some articles on incompatibilities between OpenAPI and JSON Schema [0] [1], and it's not immediately clear if they fit together well at this point. We've got some JSON Schema APIs in our services already and are using libs like the Python `json-schema` package to do validation with those. I also briefly experimented with Quicktype [2] to generate some TS types as a proof-of-concept. We're getting ready to do a pretty big rework of a lot of our services, and I'm interested in any info folks can provide on pros and cons of using OpenAPI vs JSON Schema for API definitions, and tooling around request validation and TS interface / client generation. [0] https://philsturgeon.uk/api/2018/04/13/openapi-and-json-sche... [1] https://github.com/OAI/OpenAPI-Specification/issues/1532 [2] https://quicktype.io/typescript/ |
|
[1] They don't want to call it a fork, but when they invent totally new extensions to support things that already is solved by parts of the standard that they don't want to support, then it is a fork.