Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the extra formats? #135

Closed
goloroden opened this issue Sep 12, 2020 · 2 comments
Closed

How to use the extra formats? #135

goloroden opened this issue Sep 12, 2020 · 2 comments

Comments

@goloroden
Copy link
Contributor

goloroden commented Sep 12, 2020

Apparently, schemasafe has support for the alphanumeric format. However, if I use it within a schema, my application crashes with the following exception being thrown:

Error: Unrecognized format used: "alphanumeric" at #/properties/contextIdentifier/properties/name

Now what caught my eye in the source code is that alphanumeric is a so-called extra format. What does that mean? Do I have to enable it somehow, to make it work, or …?

Am I missing something here?

@goloroden
Copy link
Contributor Author

I've figured it out, you have to provide extraFormats: true as part of the options object, then it works.

@ChALkeR
Copy link
Contributor

ChALkeR commented Oct 8, 2020

Yeah, this is in rc state mostly due to documentation being in progress.
Documentation on options just landed: Options.md.

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

No branches or pull requests

2 participants