-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open API 3 Specs Generation #5
Comments
Hi there. I'm not familiar with the OpenAPI specs, let alone its generation process, so sorry if my answer isn't helpful. I wonder what exactly you would expect the generated spec to look like in your case. I think that for the receiver, the use of the Therefore, if I were you, I would probably aim to generate a specification that doesn't mention |
To add up to what @azabost said the primary aim of the Codified libs is to make it easier to keep code forward compatible regarding enums. That's more often the case of a client code, i.e. the code that receives enum values. In other words if we expect our API clients to send us property attribute with fixed possible values (e.g. If we want our API to expose a property that has values from a known set and can have arbitrary values then I'd first check if it is possible to represent such a thing in the OpenAPI spec. If it is, we might need to add an extension to the Codified suite to handle that. |
This is probably more of a limitation with the Open Api spec generation, but I'm curious as to why this is happening.
I'm building a proof of concept using the Open Api Schema annotations to generate the Open Api Spec document. And I get a spec document that doesn't seem to be usable to figure out the deserialization.
There doesn't seem to be a link between the CodifiedEnum and the Known Unknown objects.
Here's a code snippet of the Response class:
Here's a code snippet of the OrderStatus enum:
The generated open api spec:
The text was updated successfully, but these errors were encountered: