Synopsis
Recently one of my OpenAPI 3.1.0 file suddenly shows this error on its first line (openapi: 3.1.0 line):
Schema 'openapi:v3_1_2020' is not valid:
/definitions/schema/anyOf/0/properties/multipleOf/exclusiveMinimum : must be a number
Clicking on the "v3_1_2020.json" appearing above openapi: 3.1.0 line brings me into a file named "v3_1_2020.json" that appears to be the OpenAPI 3.1 schema file, and indeed its line 1259 (which matches the path reported above) says "exclusiveMinimum": true.
While searching for ways to workaround this, I found out that if I downgrade my YAML language server plugin from 1.24.0 to 1.23.0, the error disappeared. It seems like some changes in the language server exposes this error in the schema.
Also, as this "v3_1_2020.json" file appears to be internal, I searched around this repo and found the same line appears in a similar named file schema/openapi-3.1-2020.json at line 1079. So I decided to report the problem here.
Repro Steps
- Install the newest version of this plugin (v5.6.0) and the newest version of YAML language server (1.24.0).
- Create a YAML file with one line
openapi: 3.1.0.
- ❌ Observe the above error shows up.
Synopsis
Recently one of my OpenAPI 3.1.0 file suddenly shows this error on its first line (
openapi: 3.1.0line):Clicking on the "v3_1_2020.json" appearing above
openapi: 3.1.0line brings me into a file named "v3_1_2020.json" that appears to be the OpenAPI 3.1 schema file, and indeed its line 1259 (which matches the path reported above) says"exclusiveMinimum": true.While searching for ways to workaround this, I found out that if I downgrade my YAML language server plugin from 1.24.0 to 1.23.0, the error disappeared. It seems like some changes in the language server exposes this error in the schema.
Also, as this "v3_1_2020.json" file appears to be internal, I searched around this repo and found the same line appears in a similar named file schema/openapi-3.1-2020.json at line 1079. So I decided to report the problem here.
Repro Steps
openapi: 3.1.0.