-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"Unknown keyword exclusiveMinimun" when validating an OpenAPI 3.0 document #1119
Comments
@jkosternl I am using the v1.5.2. But the Issue is also present in the recently released v1.5.3. The examples in Here is a more complete example: @Test
void testOpenApiValidation() throws Exception {
var schema = JsonSchemaFactory
.getInstance(VersionFlag.V4)
.getSchema(SchemaLocation.of("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/refs/heads/main/schemas/v3.0/schema.yaml"));
var result = schema.validate(Files.readString(Path.of("petstore.yaml")), InputFormat.YAML);
assertEquals(0, result.size());
} |
You cannot use v4 for OpenAPI 3.0. Try the latest version and let us know if it works. |
@stevehu thanks for your reply. But I do not understand it. The OpenAPI 3.0 Schema file is explicitly mentioning it is using JsonSchema v4 here. Also the |
I am currently trying to validate an OpenAPI 3.0 document using the
json-schema-validator
library and I am getting the following warning when creating theJsonSchema
object:I am using this code to create the
JsonSchema
object:What is wrong with this and why am I getting the message printed to the console?
The text was updated successfully, but these errors were encountered: