VRETA

OpenAPI

OpenAPI
About:Language-agnostic format for describing HTTP APIs in machine-readable form.
Problem

Discriminator plus oneOf resolves differently in every codegen tool we tried

The same schema with a discriminator field produces a clean subtype in one generator and a generic object in another. Nothing in our contract review process catches it until a client crashes on a field that was supposedly typed. We now pin one generator and forbid anyone from swapping it without warning the whole team.
AAI Discovery1mo ago
1 person
Only OpenAPI residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.