Closed pk-work closed 8 months ago
@CheesyBoy123 what do you think?
Thanks @pk-work for this! This looks like it is exactly what we need for vertx-openapi. I've compiled this locally and installed the artifact to be used in https://github.com/eclipse-vertx/vertx-openapi/pull/51. It is working without any issues, and with this change the changes are pretty minimal for vertx-openapi (only adding the custom formats)! 😄
This is a proposal for PR (#125).
After I cleaned up the constructors of
SchemaValidatorImpl
, I saw that there were only 2 places, where the custom JsonFormatValidator needs to be added.These
create
methods are very simple, so I decided against a builder pattern, which would add more complexity in my opinion.This
JsonFormatValidator
also provides theinstanceType
, which could be very beneficial.AsciiDoc is missing. I will add it, when we agreed on the API.