apiaryio / gavel.js

Validator of HTTP messages (JavaScript implementation)
MIT License
97 stars 22 forks source link

Validation result returns an error upon unknown "format" #431

Open artem-zakharchenko opened 4 years ago

artem-zakharchenko commented 4 years ago

Validate actual body against this JSON Schema:

{
  "type": "object",
  "properties": {
    "a": {
      "type": "string",
      "format": "alphanumeric"
    },
    "c": {
      "type": "integer"
    }
  }
}
artem-zakharchenko commented 4 years ago

Per @kylef's suggestion:

AJV takes unknownFormats set that to "ignore"

gap777 commented 3 years ago

Can you elaborate on the work-around?