You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ended up rolling my own regexs for the previously available ajv formats.
Proposed fix:
Accept options param to OpenApiValidator constructor to pass in specifically requested ajv formats (as a string array), which would get passed to the ajv method addFormats on line 88 in OpenApiValidator.ts.
Something like so:
addFormats(this._ajv, ["date", "date-time"]);
--->
addFormats(this._ajv, ["date", "date-time", ...options.ajvFormats]);
In case anyone is interested, here is my workaround:
0.6.0/0.6.1 does not work with format: uuid.
Worked in 0.4.4 just fine.
Are ajv formats being used properly?
The text was updated successfully, but these errors were encountered: