Skip to content

Commit f72f5c9

Browse files
author
Phillip Wittrock
authored
Merge pull request #68 from Liujingfang1/format
add support for format
2 parents e6cd5e5 + 70640c2 commit f72f5c9

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)