1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-03 16:25:09 +00:00
Files
norman/parse
Colleen Murphy 30f8d1802b Add 'nullablestring' field type
Currently, `*string` fields in Go structs are converted to `{type:
string, nullable: true}` in the API schema, which is right, but then
converted down to just `string` when converted to generated client
structs. Without this patch, there is no way to express that `*string`s
should stay as `*string`s when run through the generator, because the
'nullable' flag is ignored. Compare this to `*bool`s, which become
`boolean` in the schema and then correctly converted back to *bool in
the generator. This patch adds a backwards-compatible way to opt in to
converting `*string`s in the original struct to *strings in the
generated struct.
2021-05-01 16:24:23 -07:00
..
2021-05-01 16:24:23 -07:00
2017-11-10 21:46:30 -07:00
2019-04-05 16:42:43 -07:00
2018-06-04 16:44:48 -07:00
2018-02-09 13:45:22 -07:00
2017-12-11 20:58:53 -07:00