Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

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

Open
artem-zakharchenko opened this issue Feb 6, 2020 · 2 comments
Open

Comments

@artem-zakharchenko
Copy link
Contributor

artem-zakharchenko commented Feb 6, 2020

Validate actual body against this JSON Schema:

{
  "type": "object",
  "properties": {
    "a": {
      "type": "string",
      "format": "alphanumeric"
    },
    "c": {
      "type": "integer"
    }
  }
}
@artem-zakharchenko
Copy link
Contributor Author

Per @kylef's suggestion:

AJV takes unknownFormats set that to "ignore"

@gap777
Copy link

gap777 commented Dec 3, 2020

Can you elaborate on the work-around?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants