natesilva / jayschema

[Unmaintained] - A comprehensive JSON Schema validator for Node.js
BSD 3-Clause "New" or "Revised" License
217 stars 22 forks source link

Pattern format? #35

Closed alexkwolfe closed 10 years ago

alexkwolfe commented 10 years ago

Would you consider adding support for the pattern format for strings?

alexkwolfe commented 10 years ago

Oh. It looks like it's supported after all. It's missing from the format specifiers in the read me, which is what threw me off.

natesilva commented 10 years ago

That’s correct — the pattern keyword is supported and works as per the spec.

The reason there is separate documentation for the format keyword is because it’s optional in the spec. I needed to show that what format attributes were supported and how they worked since that varies between implementations.