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
A definition of
"foo": { "discriminator": "type", "mapping": { "a": { "properties": {} }, "b": { "properties": {} }, "c": { "properties": {} } } }
Generates a Go struct of
type Foo struct { Type string A FooA B FooB C FooC }
Where it should be more acccurately be the same as an enum and look more like...
type FooTypeDiscriminator string const ( FooTypeDiscriminatorA FooTypeDiscriminator = "a" FooTypeDiscriminatorB FooTypeDiscriminator = "b" FooTypeDiscriminatorC FooTypeDiscriminator = "c" ) type Foo struct { FooTypeDiscriminator string A FooA B FooB C FooC }
This would improve auto-completion and validation.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A definition of
Generates a Go struct of
Where it should be more acccurately be the same as an enum and look more like...
This would improve auto-completion and validation.
The text was updated successfully, but these errors were encountered: