Skip to content

fix: Explicitly use strings for boolean-named enums#413

Open
zaakn wants to merge 1 commit intogoogle:mainfrom
zaakn:protoc-gen-openapi/stringify_enum
Open

fix: Explicitly use strings for boolean-named enums#413
zaakn wants to merge 1 commit intogoogle:mainfrom
zaakn:protoc-gen-openapi/stringify_enum

Conversation

@zaakn
Copy link

@zaakn zaakn commented Nov 9, 2023

use yaml type tag !!str to represent boolean-like and NULL enum values.

fixes: #407

use yaml type tag `!!str` to represent boolean-like and `NULL` enum values.

fixes: google#407
@zaakn zaakn requested a review from a team as a code owner November 9, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

protoc-gen-openapi: Enum types that use stringified boolean values like "TRUE" are treated as the real boolean values

1 participant