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
According to the README of joi-to-json, joi-to-json targets “open-api - Stands for OpenAPI 3.0 Schema […]’, so this is not a bug in joi-to-json, but rather in redocly lint (see Redocly/redoc#2467), but the issue might be worth some consideration.
@jandppw Thanks for the reminder. I was not aware of the 3.1 incompatible change before. I have added a separate format support for OpenAPI 3.1 spec in case anyone needs it.
The addition of
exclusiveMaximum
/exclusiveMinimum
tonegative
/positive
number type schemata in v4.1.0 opens up a rabbit hole.When using
joi-to-json
to generate OpenAPI models, the result conflicts with current@redocly/cli
schema validation, e.g.,This is because of a non-backward compatible (!) change from OpenAPI 3.0 to OpenAPI 3.1, as described in ExclusiveMinimum and ExclusiveMaximum.
According to the
README
ofjoi-to-json
,joi-to-json
targets “open-api - Stands for OpenAPI 3.0 Schema […]’, so this is not a bug injoi-to-json
, but rather inredocly lint
(see Redocly/redoc#2467), but the issue might be worth some consideration.See, e.g., astm-utm/Protocol#65 for the rabbit hole.
The text was updated successfully, but these errors were encountered: