1
0
mirror of https://github.com/rancher/norman.git synced 2025-07-31 23:00:43 +00:00
norman/generator
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
..
cleanup Generator and build cleanup 2018-10-30 23:01:41 -07:00
client_template.go Use CodeName in ranhcer client 2017-12-22 23:47:31 -07:00
controller_template.go Ensure namespaced scoped listers default to the correct namespace 2020-08-26 17:44:45 -07:00
funcs.go Rebase on lasso 2020-05-16 21:59:53 -07:00
generator.go Add 'nullablestring' field type 2021-05-01 16:24:23 -07:00
k8s_client_template.go Updates to generator to improve speed 2020-07-14 12:26:39 -07:00
lifecycle_template.go Remove unneeded imports in code templates 2020-07-11 10:01:19 -07:00
scheme_template.go Updates to generator to improve speed 2020-07-14 12:26:39 -07:00
type_template.go Updates to generator to improve speed 2020-07-14 12:26:39 -07:00