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

Set norman type to 'nullablestring' for *strings #12

Merged
merged 1 commit into from
May 24, 2021

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented May 14, 2021

Opt into a new field type in norman that will convert *strings to
{nullable: true, type: nullablestring} in the API schema, and back to
*string in the generated client code. Without this, *strings get
translated to just string in the generated code, which breaks clients'
ability to set fields to nil.

rancher/rancher#32440

Opt into a new field type in norman that will convert `*string`s to
`{nullable: true, type: nullablestring}` in the API schema, and back to
`*string` in the generated client code. Without this, `*string`s get
translated to just `string` in the generated code, which breaks clients'
ability to set fields to nil.
@cmurphy cmurphy requested review from thedadams and mjura May 14, 2021 17:32
Copy link
Contributor

@mjura mjura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mjura mjura merged commit 6017f33 into rancher:master May 24, 2021
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.

3 participants