eclipse-vertx / vertx-json-schema

Vert.x Json Schema
Other
78 stars 32 forks source link

JSON Schema: "duration" string format is not supported #116

Closed lcharlois-neotys closed 1 year ago

lcharlois-neotys commented 1 year ago

Version

It affects vertx 4.4.5. Looking at the code 5.x looks to not support this format too.

Context

"duration" is a defined JSON Schema format for string. Using the vertx-web-openapi project, if the OpenApi file defined a field of type string and format duration the router builder fails to validate the field.

lcharlois-neotys commented 1 year ago

My issue was wrong, duration string format is only supported by OpenApi 3.1. It is not expected to be supported by 3.0.x. There is no bug.