OpenAPI-Specification icon indicating copy to clipboard operation
OpenAPI-Specification copied to clipboard

Is this line correct? YAML LSP says the scheme is not valid because of this

Open cpkio opened this issue 2 years ago • 1 comments

https://github.com/OAI/OpenAPI-Specification/blob/aa91a19c43f8a12c02efa42d64794e396473f3b1/schemas/v3.0/schema.yaml#L211

cpkio avatar Jul 13 '22 10:07 cpkio

Looks correct to me. OAS 3.0's JSON Schema is defined using Draft 4, where the exclusiveMinimum keyword is a boolean. The exclusiveM*imum keywords were changed from booleans to numbers in JSON Schema Draft 6.

hkosova avatar Jul 19 '22 08:07 hkosova

check this out: https://github.com/redhat-developer/yaml-language-server/issues/752#issuecomment-1290669413

i would suggest to close this ticket as it's not an issue of the spec but rather the yaml-language-server. (e.g. the spectral-yaml-linter does not suffer from this problem since this pr.)

okybr avatar Oct 25 '22 14:10 okybr

Closing as above.

MikeRalphson avatar Feb 21 '23 12:02 MikeRalphson