Skip to content
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

Ensure SchemaInfo.Schema.Default is non-nil if it is really set #237

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

magodo
Copy link
Contributor

@magodo magodo commented Apr 23, 2021

In prior implementation, if the schema type is one of int/bool/string,
the .Schema.Default might not be set if the Default is not set to a
BasicLiteral(for int/string) or a bool Ident (for bool). It is a very
popular case that the default value of a string property is set to an
expression that is to convert the type from another string aliased type.

In prior implementation, if the schema type is one of int/bool/string,
the `.Schema.Default` might not be set if the `Default` is not set to a
BasicLiteral(for int/string) or a bool Ident (for bool). It is a very
popular case that the default value of a string property is set to an
expression that is to convert the type from another string aliased type.
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.

1 participant