OpenAPI Specs in KDL #209
Replies: 4 comments 6 replies
-
I love this idea :o |
Beta Was this translation helpful? Give feedback.
-
I've been thinking about this too. OpenAPI spec is just a cousin of JSON schemas, so if you were to do an OpenAPI KDL format, it would also serve as a near direct basis for doing JSON schemas, which is interesting. Although, really, if you were to make a KDL format for OpenAPI it should probably take advantage of the more XML-like KDL features and not just be a cleaner looking JSON. As long as that format converts nicely into a OpenAPI JSON, it should be fairly easy to integrate with all the existing tooling, thankfully. |
Beta Was this translation helpful? Give feedback.
-
I'd like to collect some practical OpenAPI spec examples and then rewrite them in KDL as a way of experimenting with how it would get mapped. Does anyone know of a good source for good example specs? |
Beta Was this translation helpful? Give feedback.
-
I think this project will inherently involve answering a lot of questions about writing JSON schemas in KDL generally. ExampleHere's a naive stab at what that might look like from the pet store example.
TranslationThe translator would need to determine what schema is being referenced and what its URI will be post translation. Independent of how queries are themselves structured (which we can make a separate thread for), how do people think KDL document location should be identified and referenced for things like |
Beta Was this translation helpful? Give feedback.
-
I think KDL might be a good format for writing OpenAPI specs that's cleaner than JSON and less indent-reliant and complicated than XML. Is anyone else looking into this?
Beta Was this translation helpful? Give feedback.
All reactions