Open nickcox opened 8 years ago
Thanks for listing all of available attributes. We should implement these in the JSON Schema generator...
Awesome. I'm happy to have a crack at this if it's not too difficult.
Yes, I think most attributes should be easy to implement...
Implemented StringLengthAttribute in commit https://github.com/NJsonSchema/NJsonSchema/commit/fe0b60ae23c7fc1f242eb7d2a4fac889b85b1ffb
With https://github.com/NJsonSchema/NJsonSchema/issues/189 phone and email should be handled too.. we should add unit tests for them
Hey! Is this supposed to be implemented? I see the tests, but codegeneration from NSwag doesn't really add the EmailAddressAttribute. Where to look? What to fix? How can I help? :)
I think the idea is to add this support in the DTO to JSON Schema side, not the code generator...
Is there a chance to also include CustomValidation support?
Would you consider adding support for the full set of annotation attributes supported by JSON.Net Schema?
From the page:
Definition of Done: