Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix(staging): seal-io/code-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
thxCode committed Mar 27, 2024
1 parent 23d7d01 commit 3658ca7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ func collectMarkers(comments []string, into map[string][]string) {
into["validation"] = append(into["validation"], "default="+v)
}
case line == optionalMarker:
into["validation"] = append(into["validation"], "optional")
into["validation"] = append(into["validation"], "optional=true")
case strings.HasPrefix(line, listTypeMarker):
if v := line[len(listTypeMarker):]; v != "" {
into["validation"] = append(into["validation"], "listType="+v)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ func crd_crd_gen_generators_testdata_crd_gen_Dummy() *v1.CustomResourceDefinitio
"spec": {
Type: "object",
Required: []string{
"integer",
"float",
"string",
"bool",
"integerPointer",
"floatPointer",
"stringPointer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ spec:
nullable: true
type: string
required:
- integer
- float
- string
- bool
- integerPointer
- floatPointer
- stringPointer
Expand Down

0 comments on commit 3658ca7

Please sign in to comment.