natesilva / jayschema

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

Are custom formats supported? #37

Closed alexkwolfe closed 10 years ago

alexkwolfe commented 10 years ago

I'm looking for a way to add custom formats in the same way that TV4 implements them:

https://github.com/geraintluff/tv4#addformatformat-validationfunction

As far as I can tell, that's not currently possible. Is that accurate?

natesilva commented 10 years ago

That isn’t possible currently. Sorry.

natesilva commented 10 years ago

This was a popular feature request, so I’ve added it as of 0.3.0. The API is compatible with that of TV4. Thank you for the suggestion.

redben commented 10 years ago

That is great ! just found this issue yesterday, re-read the readme today which says it is supported and thought "was I dreaming ?"

Anyway thanks a lot !

natesilva commented 10 years ago

@redben I actually saw a comment you posted (and deleted?) about this. You’re definitely not the only one who needed that feature.

redben commented 10 years ago

Yeah deleted it because I wanted to point to some easy way to add this feature but then thought I'd have to read more code before saying any nonsense !— Sent from Mailbox

On Tue, Sep 2, 2014 at 6:21 PM, Nate Silva notifications@github.com wrote:

@redben I actually saw a comment you posted (and deleted?) about this. You’re definitely not the only one who needed that feature.

Reply to this email directly or view it on GitHub: https://github.com/natesilva/jayschema/issues/37#issuecomment-54186351