We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following OpenAPI document:
openapi: 3.0.3 info: title: echo version: '1.0.0' description: "" paths: /echo: post: summary: Echo operationId: echo requestBody: content: application/json: schema: $ref: "#/components/schemas/Message" responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Echo' components: schemas: Echo: type: object properties: echoedMsgType: type: string Message: type: object required: - msgType properties: msgType: type: string enum: - 'text'
The msgType property is not serialized correctly and the request is sent with the enum name (TEXT) in the JSON rather than the enum value (text).
msgType
TEXT
text
properties: msgType: type: string enum: - 'text'
Generated enum:
public enum MsgTypeEnum { TEXT("text"); ...
The text was updated successfully, but these errors were encountered:
hbelmiro
Successfully merging a pull request may close this issue.
Given the following OpenAPI document:
The
msgType
property is not serialized correctly and the request is sent with the enum name (TEXT
) in the JSON rather than the enum value (text
).Generated enum:
The text was updated successfully, but these errors were encountered: