Skip to content

Commit

Permalink
add support for format
Browse files Browse the repository at this point in the history
  • Loading branch information
Liujingfang1 committed Apr 12, 2018
1 parent e6cd5e5 commit 70640c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/internal/codegen/parse/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ func getValidation(comment string, props *v1beta1.JSONSchemaProps) {
for i := range enums {
props.Enum = append(props.Enum, v1beta1.JSON{[]byte(enums[i])})
}
case "Format":
props.Format = parts[1]
default:
log.Fatalf("Unsupport validation: %s", comment)
}
Expand Down

0 comments on commit 70640c2

Please sign in to comment.