diff --git a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/validator/ResourceValidator.java b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/validator/ResourceValidator.java index 59114485fe..e7a89a1804 100644 --- a/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/validator/ResourceValidator.java +++ b/jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/util/validator/ResourceValidator.java @@ -155,15 +155,15 @@ private String getErrorMessage(File resource, Set viola private JsonSchema getJsonSchema(URL schemaUrl, String kind) throws IOException { final JsonMetaSchema v7 = JsonMetaSchema.getV7(); - final String defaultUri = v7.getUri(); + final String defaultUri = v7.getIri(); JsonObject jsonSchema = fixUrlIfUnversioned(getSchemaJson(schemaUrl), defaultUri); checkIfKindPropertyExists(kind); getResourceProperties(kind, jsonSchema); - final JsonMetaSchema metaSchema = JsonMetaSchema.builder(v7.getUri(), v7) - .addKeywords(createNonValidationKeywordList()) + final JsonMetaSchema metaSchema = JsonMetaSchema.builder(v7.getIri(), v7) + .keywords(createNonValidationKeywordList()) .build(); return new JsonSchemaFactory.Builder() - .defaultMetaSchemaURI(defaultUri).addMetaSchema(metaSchema).build() + .defaultMetaSchemaIri(defaultUri).metaSchema(metaSchema).build() .getSchema(jsonSchema.toString()); } diff --git a/jkube-kit/parent/pom.xml b/jkube-kit/parent/pom.xml index 87b8473782..93be4950b8 100644 --- a/jkube-kit/parent/pom.xml +++ b/jkube-kit/parent/pom.xml @@ -52,7 +52,7 @@ 3.8.1 3.3.1 3.9.0 - 1.0.86 + 1.4.0 ${version.kubernetes-client} 2.7.0 0.0.7