Skip to content

Commit

Permalink
Merge pull request #68 from Liujingfang1/format
Browse files Browse the repository at this point in the history
add support for format
  • Loading branch information
Phillip Wittrock authored Apr 12, 2018
2 parents e6cd5e5 + 70640c2 commit f72f5c9
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 f72f5c9

Please sign in to comment.