Skip to content

Commit 70640c2

Browse files
committed
add support for format
1 parent e6cd5e5 commit 70640c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/internal/codegen/parse/validation.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ func getValidation(comment string, props *v1beta1.JSONSchemaProps) {
378378
for i := range enums {
379379
props.Enum = append(props.Enum, v1beta1.JSON{[]byte(enums[i])})
380380
}
381+
case "Format":
382+
props.Format = parts[1]
381383
default:
382384
log.Fatalf("Unsupport validation: %s", comment)
383385
}

0 commit comments

Comments
 (0)