Skip to content

Commit

Permalink
Merge pull request #164 from stoplightio/master
Browse files Browse the repository at this point in the history
ignore any format's that aren't defined
  • Loading branch information
xeipuuv authored Oct 25, 2017
2 parents 3f523f4 + 270ff91 commit 212d8a0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,6 @@ func (d *Schema) parseSchema(documentNode interface{}, currentSchema *subSchema)
formatString, ok := m[KEY_FORMAT].(string)
if ok && FormatCheckers.Has(formatString) {
currentSchema.format = formatString
} else {
return errors.New(formatErrorDescription(
Locale.MustBeValidFormat(),
ErrorDetails{"key": KEY_FORMAT, "given": m[KEY_FORMAT]},
))
}
}

Expand Down

0 comments on commit 212d8a0

Please sign in to comment.