diff --git a/kaizen-openapi-parser/pom.xml b/kaizen-openapi-parser/pom.xml
index 15f27840..c742e970 100755
--- a/kaizen-openapi-parser/pom.xml
+++ b/kaizen-openapi-parser/pom.xml
@@ -61,11 +61,6 @@
jackson-dataformat-yaml
${jackson-version}
-
- com.google.inject
- guice
- 4.1.0
-
org.skyscreamer
jsonassert
@@ -82,10 +77,20 @@
javax.mail-api
1.6.1
+
+ com.sun.mail
+ javax.mail
+ 1.6.1
+
+
+ com.google.guava
+ guava
+ 19.0
+
com.reprezen.jsonoverlay
jsonoverlay
- ${json-overlay-version}
+ [3.0,4.0)
@@ -235,4 +240,10 @@
true
2.6.2
+
+
+ jovl-staging
+ https://oss.sonatype.org/content/repositories/comreprezenjsonoverlay-1033/
+
+
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApi3Parser.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApi3Parser.java
index bd09ea36..0664dc28 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApi3Parser.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApi3Parser.java
@@ -16,18 +16,9 @@
import com.fasterxml.jackson.databind.JsonNode;
import com.reprezen.kaizen.oasparser.model3.OpenApi3;
-import com.reprezen.kaizen.oasparser.val3.ValidationConfigurator;
public class OpenApi3Parser extends OpenApiParser {
- public OpenApi3Parser() {
- super();
- }
-
- public OpenApi3Parser(ValidationConfigurator validationConfigurator) {
- super(validationConfigurator);
- }
-
@Override
public OpenApi3 parse(String spec, URL resolutionBase) {
return (OpenApi3) super.parse(spec, resolutionBase);
@@ -80,7 +71,8 @@ public OpenApi3 parse(JsonNode tree, URL resolutionBase, boolean validate) {
@Override
protected boolean isVersion3(JsonNode tree) {
- return true; // if 'openapi' property is missing or incorrect, that will show up as a
- // validation error
+ return true; // if 'openapi' property is missing or incorrect, that will
+ // show up as a
+ // validation error
}
}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApiParser.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApiParser.java
index 0568c353..266f1556 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApiParser.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/OpenApiParser.java
@@ -17,27 +17,13 @@
import java.net.URL;
import com.fasterxml.jackson.databind.JsonNode;
-import com.google.inject.Guice;
-import com.google.inject.Injector;
import com.reprezen.jsonoverlay.JsonLoader;
import com.reprezen.jsonoverlay.ReferenceManager;
import com.reprezen.kaizen.oasparser.model3.OpenApi3;
import com.reprezen.kaizen.oasparser.ovl3.OpenApi3Impl;
-import com.reprezen.kaizen.oasparser.val3.ValidationConfigurator;
-import com.reprezen.kaizen.oasparser.val3.ovl.OverlayValidationConfigurator;
public class OpenApiParser {
- private Injector injector;
-
- public OpenApiParser() {
- this(new OverlayValidationConfigurator());
- }
-
- public OpenApiParser(ValidationConfigurator validationConfigurator) {
- this.injector = Guice.createInjector(validationConfigurator);
- }
-
public OpenApi> parse(String spec, URL resolutionBase) {
return parse(spec, resolutionBase, true);
}
@@ -101,7 +87,6 @@ private OpenApi> parse(ReferenceManager manager, boolean validate) {
if (isVersion3(tree)) {
OpenApi3 model = (OpenApi3) OpenApi3Impl.factory.create(tree, null, manager);
((OpenApi3Impl) model)._setCreatingRef(manager.getDocReference());
- injector.injectMembers(model);
if (validate) {
model.validate();
}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/CallbackImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/CallbackImpl.java
index 525e1daa..c4bab266 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/CallbackImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/CallbackImpl.java
@@ -133,6 +133,12 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_callbackPaths = "callbackPaths";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ContactImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ContactImpl.java
index 945c2f5a..143a2662 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ContactImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ContactImpl.java
@@ -114,6 +114,18 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_name = "name";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_url = "url";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_email = "email";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/EncodingPropertyImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/EncodingPropertyImpl.java
index d8bbda0e..98a98642 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/EncodingPropertyImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/EncodingPropertyImpl.java
@@ -171,6 +171,21 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_contentType = "contentType";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_headers = "headers";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_style = "style";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_explode = "explode";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExampleImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExampleImpl.java
index d1104a60..f6a058a2 100644
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExampleImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExampleImpl.java
@@ -136,6 +136,21 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_summary = "summary";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_value = "value";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_externalValue = "externalValue";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExternalDocsImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExternalDocsImpl.java
index f3d547fe..c98e28b9 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExternalDocsImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ExternalDocsImpl.java
@@ -101,6 +101,15 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_url = "url";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/HeaderImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/HeaderImpl.java
index 60b014fb..a71a6591 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/HeaderImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/HeaderImpl.java
@@ -370,6 +370,48 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_name = "name";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_in = "in";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_required = "required";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_deprecated = "deprecated";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_allowEmptyValue = "allowEmptyValue";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_style = "style";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_explode = "explode";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_allowReserved = "allowReserved";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_schema = "schema";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_example = "example";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_examples = "examples";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_contentMediaTypes = "contentMediaTypes";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/InfoImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/InfoImpl.java
index a6451ce8..d050fbb5 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/InfoImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/InfoImpl.java
@@ -167,6 +167,27 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_title = "title";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_termsOfService = "termsOfService";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_contact = "contact";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_license = "license";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_version = "version";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LicenseImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LicenseImpl.java
index 676794b0..77e39161 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LicenseImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LicenseImpl.java
@@ -103,6 +103,15 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_name = "name";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_url = "url";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LinkImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LinkImpl.java
index b0106986..587c0ac5 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LinkImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/LinkImpl.java
@@ -242,6 +242,27 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_operationId = "operationId";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_operationRef = "operationRef";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_parameters = "parameters";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_headers = "headers";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_server = "server";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/MediaTypeImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/MediaTypeImpl.java
index 0c845056..faa20723 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/MediaTypeImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/MediaTypeImpl.java
@@ -207,6 +207,21 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_schema = "schema";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_examples = "examples";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_example = "example";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_encodingProperties = "encodingProperties";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OAuthFlowImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OAuthFlowImpl.java
index 0b33576c..fa31fc7c 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OAuthFlowImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OAuthFlowImpl.java
@@ -212,6 +212,24 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_authorizationUrl = "authorizationUrl";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_tokenUrl = "tokenUrl";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_refreshUrl = "refreshUrl";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_scopes = "scopes";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_scopesExtensions = "scopesExtensions";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OpenApi3Impl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OpenApi3Impl.java
index b01662c3..49e69e6b 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OpenApi3Impl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OpenApi3Impl.java
@@ -8,9 +8,9 @@
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
-import com.google.inject.Inject;
import com.reprezen.jsonoverlay.JsonOverlay;
import com.reprezen.jsonoverlay.ObjectOverlay;
+import com.reprezen.jsonoverlay.Overlay;
import com.reprezen.jsonoverlay.OverlayFactory;
import com.reprezen.jsonoverlay.PropertiesOverlay;
import com.reprezen.jsonoverlay.ReferenceManager;
@@ -33,7 +33,8 @@
import com.reprezen.kaizen.oasparser.model3.Tag;
import com.reprezen.kaizen.oasparser.val.ValidationResults;
import com.reprezen.kaizen.oasparser.val.ValidationResults.Severity;
-import com.reprezen.kaizen.oasparser.val.Validator;
+import com.reprezen.kaizen.oasparser.val.ValidationResults.ValidationResultsInstance;
+import com.reprezen.kaizen.oasparser.val3.OpenApi3Validator;
public class OpenApi3Impl extends PropertiesOverlay implements OpenApi3 {
@@ -50,12 +51,12 @@ protected JsonNode _fixJson(JsonNode json) {
return json;
}
- @Inject
- private Validator validator;
-
@Override
public void validate() {
- validationResults = validator.validate(this);
+ try (ValidationResultsInstance instance = ValidationResults.open()) {
+ validationResults = instance.get();
+ new OpenApi3Validator().validate(Overlay.of(this));
+ }
}
@Override
@@ -942,6 +943,63 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_openApi = "openApi";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_info = "info";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_servers = "servers";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_paths = "paths";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_pathsExtensions = "pathsExtensions";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_schemas = "schemas";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_responses = "responses";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_parameters = "parameters";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_examples = "examples";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_requestBodies = "requestBodies";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_headers = "headers";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_securitySchemes = "securitySchemes";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_links = "links";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_callbacks = "callbacks";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_componentsExtensions = "componentsExtensions";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_securityRequirements = "securityRequirements";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_tags = "tags";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_externalDocs = "externalDocs";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OperationImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OperationImpl.java
index a6836b97..f72d533c 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OperationImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/OperationImpl.java
@@ -597,6 +597,51 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_tags = "tags";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_summary = "summary";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_externalDocs = "externalDocs";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_operationId = "operationId";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_parameters = "parameters";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_requestBody = "requestBody";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_responses = "responses";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_responsesExtensions = "responsesExtensions";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_callbacks = "callbacks";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_callbacksExtensions = "callbacksExtensions";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_deprecated = "deprecated";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_securityRequirements = "securityRequirements";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_servers = "servers";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ParameterImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ParameterImpl.java
index 86a8baf3..68dc4e9d 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ParameterImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ParameterImpl.java
@@ -370,6 +370,48 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_name = "name";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_in = "in";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_required = "required";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_deprecated = "deprecated";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_allowEmptyValue = "allowEmptyValue";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_style = "style";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_explode = "explode";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_allowReserved = "allowReserved";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_schema = "schema";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_example = "example";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_examples = "examples";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_contentMediaTypes = "contentMediaTypes";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/PathImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/PathImpl.java
index ea48a948..17454a49 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/PathImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/PathImpl.java
@@ -393,6 +393,24 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_summary = "summary";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_operations = "operations";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_servers = "servers";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_parameters = "parameters";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/RequestBodyImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/RequestBodyImpl.java
index 04ea988f..cc9d07d9 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/RequestBodyImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/RequestBodyImpl.java
@@ -168,6 +168,18 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_contentMediaTypes = "contentMediaTypes";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_required = "required";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ResponseImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ResponseImpl.java
index 9aae9b8d..b3d38b3d 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ResponseImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ResponseImpl.java
@@ -247,6 +247,21 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_headers = "headers";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_contentMediaTypes = "contentMediaTypes";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_links = "links";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SchemaImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SchemaImpl.java
index 6e6d4e3c..b7d797a0 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SchemaImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SchemaImpl.java
@@ -951,6 +951,120 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_title = "title";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_multipleOf = "multipleOf";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_maximum = "maximum";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_exclusiveMaximum = "exclusiveMaximum";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_minimum = "minimum";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_exclusiveMinimum = "exclusiveMinimum";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_maxLength = "maxLength";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_minLength = "minLength";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_pattern = "pattern";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_maxItems = "maxItems";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_minItems = "minItems";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_uniqueItems = "uniqueItems";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_maxProperties = "maxProperties";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_minProperties = "minProperties";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_requiredFields = "requiredFields";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_enums = "enums";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_type = "type";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_allOfSchemas = "allOfSchemas";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_oneOfSchemas = "oneOfSchemas";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_anyOfSchemas = "anyOfSchemas";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_notSchema = "notSchema";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_itemsSchema = "itemsSchema";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_properties = "properties";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_additionalPropertiesSchema = "additionalPropertiesSchema";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_additionalProperties = "additionalProperties";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_format = "format";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_defaultValue = "defaultValue";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_nullable = "nullable";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_discriminator = "discriminator";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_readOnly = "readOnly";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_writeOnly = "writeOnly";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_xml = "xml";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_externalDocs = "externalDocs";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_examples = "examples";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_example = "example";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_deprecated = "deprecated";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityParameterImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityParameterImpl.java
index 4ed11a96..4d586665 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityParameterImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityParameterImpl.java
@@ -85,6 +85,9 @@ public void removeParameter(int index) {
_remove("parameters", index, String.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_parameters = "parameters";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityRequirementImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityRequirementImpl.java
index 7846ffa6..2eff44eb 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityRequirementImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecurityRequirementImpl.java
@@ -75,6 +75,9 @@ public void removeRequirement(String name) {
_remove("requirements", name, SecurityParameter.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_requirements = "requirements";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecuritySchemeImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecuritySchemeImpl.java
index 80e92a09..578bfa32 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecuritySchemeImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/SecuritySchemeImpl.java
@@ -301,6 +301,45 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_type = "type";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_name = "name";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_in = "in";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_scheme = "scheme";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_bearerFormat = "bearerFormat";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_implicitOAuthFlow = "implicitOAuthFlow";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_passwordOAuthFlow = "passwordOAuthFlow";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_clientCredentialsOAuthFlow = "clientCredentialsOAuthFlow";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_authorizationCodeOAuthFlow = "authorizationCodeOAuthFlow";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_oAuthFlowsExtensions = "oAuthFlowsExtensions";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_openIdConnectUrl = "openIdConnectUrl";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerImpl.java
index e7987724..5e88b6b5 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerImpl.java
@@ -200,6 +200,21 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_url = "url";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_serverVariables = "serverVariables";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_variablesExtensions = "variablesExtensions";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerVariableImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerVariableImpl.java
index a82acd53..cbaa3c0b 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerVariableImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/ServerVariableImpl.java
@@ -158,6 +158,18 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_enumValues = "enumValues";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_defaultValue = "defaultValue";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/TagImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/TagImpl.java
index f1ca1fc3..b903a3e6 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/TagImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/TagImpl.java
@@ -121,6 +121,18 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_name = "name";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_description = "description";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_externalDocs = "externalDocs";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/XmlImpl.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/XmlImpl.java
index 00048be3..f9fd6fbc 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/XmlImpl.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/ovl3/XmlImpl.java
@@ -155,6 +155,24 @@ public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_name = "name";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_namespace = "namespace";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_prefix = "prefix";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_attribute = "attribute";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_wrapped = "wrapped";
+
+ @Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
+ public static final String F_extensions = "extensions";
+
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/types3.yaml b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/types3.yaml
index 5e1e09cc..1e7307c5 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/types3.yaml
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/types3.yaml
@@ -1,520 +1,521 @@
-modelType: OpenApi3
-imports:
- OpenApi: com.reprezen.kaizen.oasparser.OpenApi
- Validator: com.reprezen.kaizen.oasparser.val.Validator
- ValidationResults: com.reprezen.kaizen.oasparser.val.ValidationResults
- Severity: com.reprezen.kaizen.oasparser.val.ValidationResults.Severity
- OpenApi3Validator: com.reprezen.kaizen.oasparser.val3.OpenApi3Validator
- Overlay: com.reprezen.jsonoverlay.Overlay
- Collection: java.util.Collection
- ReferenceRegistry: com.reprezen.jsonoverlay.ReferenceRegistry
- Inject: com.google.inject.Inject
-decls:
- - extPat: &extPat "x-.+"
- - noextPat: &noextPat "(?!x-).*"
- - namePat: &namePat "[a-zA-Z0-9\\._-]+"
- - noextNamePat: &noextNamePat "(?!x-)[a-zA-Z0-9\\._-]+"
- - pathPat: &pathPat "/.*"
- - extName: &extName extension
- - extDef: &extDef
- name: Extension
- type: Object
- parentPath: ""
- structure: map
- keyPattern: *extPat
-
-types:
- - name: OpenApi3
- imports:
- intf: [ ValidationResults, Collection ]
- impl: [ OpenApi3Validator, Validator, ValidationResults, Severity, Inject, ReferenceRegistry, ObjectNode, JsonNodeFactory, Collection ]
- extendInterfaces: [OpenApi]
- fields:
- openapi:
- name: OpenApi
- info: {}
- servers:
- structure: collection
- paths:
- structure: map
- keyPattern: *pathPat
- pathsExtension:
- name: PathsExtension
- <<: *extDef
- parentPath: paths
- components/schemas:
- structure: map
- type: Schema
- keyPattern: *namePat
- components/responses:
- structure: map
- keyPattern: *namePat
- components/parameters:
- structure: map
- keyPattern: *namePat
- components/examples:
- type: Example
- structure: map
- keyPattern: *namePat
- components/requestBodies:
- name: RequestBody
- plural: RequestBodies
- structure: map
- keyPattern: *namePat
- components/headers:
- structure: map
- keyPattern: *namePat
- components/securitySchemes:
- structure: map
- keyPattern: *namePat
- components/links:
- structure: map
- keyPattern: *namePat
- components/callbacks:
- structure: map
- keyPattern: *noextNamePat
- componentsExtension:
- name: ComponentsExtension
- <<: *extDef
- parentPath: components
- security:
- name: SecurityRequirement
- structure: collection
- tags:
- structure: collection
- externalDocs: {}
- *extName: *extDef
-
- - name: OAuthFlow
- fields:
- authorizationUrl: {}
- tokenUrl: {}
- refreshUrl: {}
- scopes:
- structure: map
- keyPattern: *noextPat
- scopesExtension:
- name: ScopesExtension
- <<: *extDef
- parentPath: scopes
- *extName: *extDef
-
- - name: Tag
- fields:
- name: {}
- description: {}
- externalDocs: {}
- *extName: *extDef
-
- - name: SecurityScheme
- imports:
- impl: [Overlay]
- fields:
- type: {}
- description: {}
- name: {}
- in: {}
- scheme: {}
- bearerFormat: {}
- flow/implicit:
- name: ImplicitOAuthFlow
- type: OAuthFlow
- flow/password:
- name: PasswordOAuthFlow
- type: OAuthFlow
- flow/clientCredentials:
- name: ClientCredentialsOAuthFlow
- type: OAuthFlow
- flow/authorizationCode:
- name: AuthorizationCodeOAuthFlow
- type: OAuthFlow
- flowExtension:
- <<: *extDef
- name: OAuthFlowsExtension
- parentPath: flow
- openIdConnectUrl: {}
- *extName: *extDef
-
- - name: Info
- fields:
- title: {}
- description: {}
- termsOfService: {}
- contact: {}
- license: {}
- version: {}
- *extName: *extDef
-
- - name: Contact
- fields:
- name: {}
- url: {}
- email: {}
- *extName: *extDef
-
- - name: License
- fields:
- name: {}
- url: {}
- *extName: *extDef
-
- - name: Server
- fields:
- url: {}
- description: {}
- variables:
- name: ServerVariable
- structure: map
- keyPattern: *noextNamePat
- variablesExtension:
- name: VariablesExtension
- <<: *extDef
- parentPath: variables
- *extName: *extDef
-
- - name: ServerVariable
- fields:
- enum:
- name: EnumValue
- type: Primitive
- structure: collection
- default:
- type: Primitive
- description: {}
- *extName: *extDef
-
- - name: Path
- imports:
- impl: [ Overlay ]
- fields:
- summary: {}
- description: {}
- operations:
- structure: map
- parentPath: ""
- keyPattern: get|put|post|delete|options|head|patch|trace
- get:
- type: Operation
- noImpl: true
- put:
- type: Operation
- noImpl: true
- post:
- type: Operation
- noImpl: true
- delete:
- type: Operation
- noImpl: true
- options:
- type: Operation
- noImpl: true
- head:
- type: Operation
- noImpl: true
- patch:
- type: Operation
- noImpl: true
- trace:
- type: Operation
- noImpl: true
- servers:
- structure: collection
- parameters:
- structure: collection
-# keyDecls:
-# - String name
-# - String in
- *extName: *extDef
-
- - name: Operation
- fields:
- tags:
- type: String
- structure: collection
- summary: {}
- description: {}
- externalDocs: {}
- operationId: {}
- parameters:
- structure: collection
-# keyDecls:
-# - String name
-# - String id
- requestBody: {}
- responses:
- structure: map
- keyPattern: "default|(\\d\\d\\d)"
- responsesExtension:
- name: ResponsesExtension
- <<: *extDef
- parentPath: responses
- callbacks:
- structure: map
- keyPattern: *noextNamePat
- callbacksExtension:
- name: CallbacksExtension
- <<: *extDef
- parentPath: callbacks
- deprecated:
- type: Boolean
- security:
- name: SecurityRequirement
- structure: collection
- servers:
- structure: collection
- *extName: *extDef
-
- - name: Callback
- imports:
- impl: [ Overlay ]
- fields:
- callbackPaths:
- type: Path
- structure: map
- parentPath: ""
- keyPattern: *noextPat
- keyName: expression
- *extName: *extDef
-
- - name: SecurityRequirement
- fields:
- requirement:
- type: SecurityParameter
- parentPath: ""
- structure: map
- keyPattern: *namePat
-
- - name: SecurityParameter
- imports:
- impl: [JsonNodeFactory]
- fields:
- parameter:
- type: String
- parentPath: ""
- structure: collection
-
- - name: Response
- imports:
- impl: [Overlay]
- fields:
- description: {}
- headers:
- structure: map
- content:
- name: ContentMediaType
- type: MediaType
- structure: map
- links:
- structure: map
- *extName: *extDef
-
- - name: Link
- imports:
- impl: [Overlay]
- fields:
- operationId: {}
- operationRef: {}
- parameters:
- type: String
- structure: map
- headers:
- type: Header
- structure: map
- description: {}
- server:
- type: Server
- *extName: *extDef
-
- - name: RequestBody
- imports:
- impl: [Overlay]
- fields:
- description: {}
- content:
- name: ContentMediaType
- type: MediaType
- structure: map
- required:
- type: Boolean
- *extName: *extDef
-
- - name: MediaType
- fields:
- schema: {}
- examples:
- type: Example
- structure: map
- keyPattern: *namePat
- example:
- type: Object
- encoding:
- name: EncodingProperty
- plural: EncodingProperties
- structure: map
- *extName: *extDef
-
- - name: EncodingProperty
- fields:
- contentType: {}
- headers:
- structure: map
- type: String
- style: {}
- explode:
- type: Boolean
- *extName: *extDef
-
- - name: ExternalDocs
- fields:
- description: {}
- url: {}
- *extName: *extDef
-
- - name: Parameter
- imports:
- impl: [Overlay]
- fields: ¶mFields
- name: {}
- in: {}
- description: {}
- required:
- type: Boolean
- deprecated:
- type: Boolean
- allowEmptyValue:
- type: Boolean
- style: {}
- explode:
- type: Boolean
- allowReserved:
- type: Boolean
- schema: {}
- example:
- type: Object
- examples:
- type: Example
- structure: map
- keyPattern: *namePat
- content:
- name: ContentMediaType
- type: MediaType
- structure: map
- *extName: *extDef
-
- - name: Header
- imports:
- impl: [Overlay]
- # Header is identical to Parameter except in terms of where it's allowed
- fields: *paramFields
-
- - name: Schema
- imports:
- impl: [ Optional, JsonPointer, Overlay]
- fields:
- title: {}
- multipleOf:
- type: Number
- maximum:
- type: Number
- exclusiveMaximum:
- type: Boolean
- minimum:
- type: Number
- exclusiveMinimum:
- type: Boolean
- maxLength:
- type: Integer
- minLength:
- type: Integer
- pattern: {}
- maxItems:
- type: Integer
- minItems:
- type: Integer
- uniqueItems:
- type: Boolean
- maxProperties:
- type: Integer
- minProperties:
- type: Integer
- required:
- name: RequiredField
- structure: collection
- enum:
- type: Object
- structure: collection
- type: {}
- allOf:
- name: AllOfSchema
- type: Schema
- structure: collection
- oneOf:
- name: OneOfSchema
- type: Schema
- structure: collection
- anyOf:
- name: AnyOfSchema
- type: Schema
- structure: collection
- not:
- name: NotSchema
- type: Schema
- items:
- name: ItemsSchema
- type: Schema
- properties:
- name: Property
- plural: Properties
- type: Schema
- structure: map
- additionalPropertiesSchema:
- parentPath: additionalProperties
- type: Schema
- additionalPropertiesBoolean:
- name: AdditionalProperties
- parentPath: additionalProperties
- type: Boolean
- description: {}
- format: {}
- default:
- type: Object
- nullable:
- type: Boolean
- discriminator: {}
- readOnly:
- type: Boolean
- writeOnly:
- type: Boolean
- xml: {}
- externalDocs: {}
- examples:
- type: Example
- structure: map
- keyPattern: *namePat
- example:
- type: Object
- deprecated:
- type: Boolean
- *extName: *extDef
-
- - name: Xml
- fields:
- name: {}
- namespace: {}
- prefix: {}
- attribute:
- type: Boolean
- wrapped:
- type: Boolean
- *extName: *extDef
-
- - name: Example
- imports:
- impl: [Overlay]
- fields:
- summary: {}
- description: {}
- value:
- type: Object
- externalValue: {}
- *extName: *extDef
+modelType: OpenApi3
+imports:
+ OpenApi: com.reprezen.kaizen.oasparser.OpenApi
+ Validator: com.reprezen.kaizen.oasparser.val.Validator
+ ValidationResults: com.reprezen.kaizen.oasparser.val.ValidationResults
+ ValidationResultsInstance: com.reprezen.kaizen.oasparser.val.ValidationResults.ValidationResultsInstance
+ Severity: com.reprezen.kaizen.oasparser.val.ValidationResults.Severity
+ OpenApi3Validator: com.reprezen.kaizen.oasparser.val3.OpenApi3Validator
+ Overlay: com.reprezen.jsonoverlay.Overlay
+ Collection: java.util.Collection
+ ReferenceRegistry: com.reprezen.jsonoverlay.ReferenceRegistry
+ Inject: com.google.inject.Inject
+decls:
+ - extPat: &extPat "x-.+"
+ - noextPat: &noextPat "(?!x-).*"
+ - namePat: &namePat "[a-zA-Z0-9\\._-]+"
+ - noextNamePat: &noextNamePat "(?!x-)[a-zA-Z0-9\\._-]+"
+ - pathPat: &pathPat "/.*"
+ - extName: &extName extension
+ - extDef: &extDef
+ name: Extension
+ type: Object
+ parentPath: ""
+ structure: map
+ keyPattern: *extPat
+
+types:
+ - name: OpenApi3
+ imports:
+ intf: [ ValidationResults, Collection ]
+ impl: [ OpenApi3Validator, Validator, ValidationResults, ValidationResultsInstance, Severity, ReferenceRegistry, Overlay, ObjectNode, JsonNodeFactory, Collection ]
+ extendInterfaces: [OpenApi]
+ fields:
+ openapi:
+ name: OpenApi
+ info: {}
+ servers:
+ structure: collection
+ paths:
+ structure: map
+ keyPattern: *pathPat
+ pathsExtension:
+ name: PathsExtension
+ <<: *extDef
+ parentPath: paths
+ components/schemas:
+ structure: map
+ type: Schema
+ keyPattern: *namePat
+ components/responses:
+ structure: map
+ keyPattern: *namePat
+ components/parameters:
+ structure: map
+ keyPattern: *namePat
+ components/examples:
+ type: Example
+ structure: map
+ keyPattern: *namePat
+ components/requestBodies:
+ name: RequestBody
+ plural: RequestBodies
+ structure: map
+ keyPattern: *namePat
+ components/headers:
+ structure: map
+ keyPattern: *namePat
+ components/securitySchemes:
+ structure: map
+ keyPattern: *namePat
+ components/links:
+ structure: map
+ keyPattern: *namePat
+ components/callbacks:
+ structure: map
+ keyPattern: *noextNamePat
+ componentsExtension:
+ name: ComponentsExtension
+ <<: *extDef
+ parentPath: components
+ security:
+ name: SecurityRequirement
+ structure: collection
+ tags:
+ structure: collection
+ externalDocs: {}
+ *extName: *extDef
+
+ - name: OAuthFlow
+ fields:
+ authorizationUrl: {}
+ tokenUrl: {}
+ refreshUrl: {}
+ scopes:
+ structure: map
+ keyPattern: *noextPat
+ scopesExtension:
+ name: ScopesExtension
+ <<: *extDef
+ parentPath: scopes
+ *extName: *extDef
+
+ - name: Tag
+ fields:
+ name: {}
+ description: {}
+ externalDocs: {}
+ *extName: *extDef
+
+ - name: SecurityScheme
+ imports:
+ impl: [Overlay]
+ fields:
+ type: {}
+ description: {}
+ name: {}
+ in: {}
+ scheme: {}
+ bearerFormat: {}
+ flow/implicit:
+ name: ImplicitOAuthFlow
+ type: OAuthFlow
+ flow/password:
+ name: PasswordOAuthFlow
+ type: OAuthFlow
+ flow/clientCredentials:
+ name: ClientCredentialsOAuthFlow
+ type: OAuthFlow
+ flow/authorizationCode:
+ name: AuthorizationCodeOAuthFlow
+ type: OAuthFlow
+ flowExtension:
+ <<: *extDef
+ name: OAuthFlowsExtension
+ parentPath: flow
+ openIdConnectUrl: {}
+ *extName: *extDef
+
+ - name: Info
+ fields:
+ title: {}
+ description: {}
+ termsOfService: {}
+ contact: {}
+ license: {}
+ version: {}
+ *extName: *extDef
+
+ - name: Contact
+ fields:
+ name: {}
+ url: {}
+ email: {}
+ *extName: *extDef
+
+ - name: License
+ fields:
+ name: {}
+ url: {}
+ *extName: *extDef
+
+ - name: Server
+ fields:
+ url: {}
+ description: {}
+ variables:
+ name: ServerVariable
+ structure: map
+ keyPattern: *noextNamePat
+ variablesExtension:
+ name: VariablesExtension
+ <<: *extDef
+ parentPath: variables
+ *extName: *extDef
+
+ - name: ServerVariable
+ fields:
+ enum:
+ name: EnumValue
+ type: Primitive
+ structure: collection
+ default:
+ type: Primitive
+ description: {}
+ *extName: *extDef
+
+ - name: Path
+ imports:
+ impl: [ Overlay ]
+ fields:
+ summary: {}
+ description: {}
+ operations:
+ structure: map
+ parentPath: ""
+ keyPattern: get|put|post|delete|options|head|patch|trace
+ get:
+ type: Operation
+ noImpl: true
+ put:
+ type: Operation
+ noImpl: true
+ post:
+ type: Operation
+ noImpl: true
+ delete:
+ type: Operation
+ noImpl: true
+ options:
+ type: Operation
+ noImpl: true
+ head:
+ type: Operation
+ noImpl: true
+ patch:
+ type: Operation
+ noImpl: true
+ trace:
+ type: Operation
+ noImpl: true
+ servers:
+ structure: collection
+ parameters:
+ structure: collection
+# keyDecls:
+# - String name
+# - String in
+ *extName: *extDef
+
+ - name: Operation
+ fields:
+ tags:
+ type: String
+ structure: collection
+ summary: {}
+ description: {}
+ externalDocs: {}
+ operationId: {}
+ parameters:
+ structure: collection
+# keyDecls:
+# - String name
+# - String id
+ requestBody: {}
+ responses:
+ structure: map
+ keyPattern: "default|(\\d\\d\\d)"
+ responsesExtension:
+ name: ResponsesExtension
+ <<: *extDef
+ parentPath: responses
+ callbacks:
+ structure: map
+ keyPattern: *noextNamePat
+ callbacksExtension:
+ name: CallbacksExtension
+ <<: *extDef
+ parentPath: callbacks
+ deprecated:
+ type: Boolean
+ security:
+ name: SecurityRequirement
+ structure: collection
+ servers:
+ structure: collection
+ *extName: *extDef
+
+ - name: Callback
+ imports:
+ impl: [ Overlay ]
+ fields:
+ callbackPaths:
+ type: Path
+ structure: map
+ parentPath: ""
+ keyPattern: *noextPat
+ keyName: expression
+ *extName: *extDef
+
+ - name: SecurityRequirement
+ fields:
+ requirement:
+ type: SecurityParameter
+ parentPath: ""
+ structure: map
+ keyPattern: *namePat
+
+ - name: SecurityParameter
+ imports:
+ impl: [JsonNodeFactory]
+ fields:
+ parameter:
+ type: String
+ parentPath: ""
+ structure: collection
+
+ - name: Response
+ imports:
+ impl: [Overlay]
+ fields:
+ description: {}
+ headers:
+ structure: map
+ content:
+ name: ContentMediaType
+ type: MediaType
+ structure: map
+ links:
+ structure: map
+ *extName: *extDef
+
+ - name: Link
+ imports:
+ impl: [Overlay]
+ fields:
+ operationId: {}
+ operationRef: {}
+ parameters:
+ type: String
+ structure: map
+ headers:
+ type: Header
+ structure: map
+ description: {}
+ server:
+ type: Server
+ *extName: *extDef
+
+ - name: RequestBody
+ imports:
+ impl: [Overlay]
+ fields:
+ description: {}
+ content:
+ name: ContentMediaType
+ type: MediaType
+ structure: map
+ required:
+ type: Boolean
+ *extName: *extDef
+
+ - name: MediaType
+ fields:
+ schema: {}
+ examples:
+ type: Example
+ structure: map
+ keyPattern: *namePat
+ example:
+ type: Object
+ encoding:
+ name: EncodingProperty
+ plural: EncodingProperties
+ structure: map
+ *extName: *extDef
+
+ - name: EncodingProperty
+ fields:
+ contentType: {}
+ headers:
+ structure: map
+ type: String
+ style: {}
+ explode:
+ type: Boolean
+ *extName: *extDef
+
+ - name: ExternalDocs
+ fields:
+ description: {}
+ url: {}
+ *extName: *extDef
+
+ - name: Parameter
+ imports:
+ impl: [Overlay]
+ fields: ¶mFields
+ name: {}
+ in: {}
+ description: {}
+ required:
+ type: Boolean
+ deprecated:
+ type: Boolean
+ allowEmptyValue:
+ type: Boolean
+ style: {}
+ explode:
+ type: Boolean
+ allowReserved:
+ type: Boolean
+ schema: {}
+ example:
+ type: Object
+ examples:
+ type: Example
+ structure: map
+ keyPattern: *namePat
+ content:
+ name: ContentMediaType
+ type: MediaType
+ structure: map
+ *extName: *extDef
+
+ - name: Header
+ imports:
+ impl: [Overlay]
+ # Header is identical to Parameter except in terms of where it's allowed
+ fields: *paramFields
+
+ - name: Schema
+ imports:
+ impl: [ Optional, JsonPointer, Overlay]
+ fields:
+ title: {}
+ multipleOf:
+ type: Number
+ maximum:
+ type: Number
+ exclusiveMaximum:
+ type: Boolean
+ minimum:
+ type: Number
+ exclusiveMinimum:
+ type: Boolean
+ maxLength:
+ type: Integer
+ minLength:
+ type: Integer
+ pattern: {}
+ maxItems:
+ type: Integer
+ minItems:
+ type: Integer
+ uniqueItems:
+ type: Boolean
+ maxProperties:
+ type: Integer
+ minProperties:
+ type: Integer
+ required:
+ name: RequiredField
+ structure: collection
+ enum:
+ type: Object
+ structure: collection
+ type: {}
+ allOf:
+ name: AllOfSchema
+ type: Schema
+ structure: collection
+ oneOf:
+ name: OneOfSchema
+ type: Schema
+ structure: collection
+ anyOf:
+ name: AnyOfSchema
+ type: Schema
+ structure: collection
+ not:
+ name: NotSchema
+ type: Schema
+ items:
+ name: ItemsSchema
+ type: Schema
+ properties:
+ name: Property
+ plural: Properties
+ type: Schema
+ structure: map
+ additionalPropertiesSchema:
+ parentPath: additionalProperties
+ type: Schema
+ additionalPropertiesBoolean:
+ name: AdditionalProperties
+ parentPath: additionalProperties
+ type: Boolean
+ description: {}
+ format: {}
+ default:
+ type: Object
+ nullable:
+ type: Boolean
+ discriminator: {}
+ readOnly:
+ type: Boolean
+ writeOnly:
+ type: Boolean
+ xml: {}
+ externalDocs: {}
+ examples:
+ type: Example
+ structure: map
+ keyPattern: *namePat
+ example:
+ type: Object
+ deprecated:
+ type: Boolean
+ *extName: *extDef
+
+ - name: Xml
+ fields:
+ name: {}
+ namespace: {}
+ prefix: {}
+ attribute:
+ type: Boolean
+ wrapped:
+ type: Boolean
+ *extName: *extDef
+
+ - name: Example
+ imports:
+ impl: [Overlay]
+ fields:
+ summary: {}
+ description: {}
+ value:
+ type: Object
+ externalValue: {}
+ *extName: *extDef
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/AnyObjectValidator.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/AnyObjectValidator.java
deleted file mode 100755
index 4d0728a1..00000000
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/AnyObjectValidator.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2017 ModelSolv, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * ModelSolv, Inc. - initial API and implementation and/or initial documentation
- *******************************************************************************/
-package com.reprezen.kaizen.oasparser.val;
-
-import com.reprezen.jsonoverlay.ObjectOverlay;
-
-public class AnyObjectValidator extends OverlayValidator {
-
- @Override
- public void validate(ObjectOverlay overlay, ValidationResults results) {
- super.validate(overlay, results);
- }
-
-}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/BooleanValidator.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/BooleanValidator.java
deleted file mode 100755
index 6cf0e7fa..00000000
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/BooleanValidator.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2017 ModelSolv, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * ModelSolv, Inc. - initial API and implementation and/or initial documentation
- *******************************************************************************/
-package com.reprezen.kaizen.oasparser.val;
-
-import com.fasterxml.jackson.databind.node.BooleanNode;
-import com.reprezen.jsonoverlay.BooleanOverlay;
-
-public class BooleanValidator extends OverlayValidator {
-
- @Override
- public void validate(BooleanOverlay overlay, ValidationResults results) {
- super.validate(overlay, results, BooleanNode.class);
- }
-}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/ImplValidator.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/ImplValidator.java
deleted file mode 100755
index 02c2a06f..00000000
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/ImplValidator.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2017 ModelSolv, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * ModelSolv, Inc. - initial API and implementation and/or initial documentation
- *******************************************************************************/
-package com.reprezen.kaizen.oasparser.val;
-
-public interface ImplValidator {
-
- void validateImpl(T object, ValidationResults results);
-}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/IntegerValidator.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/IntegerValidator.java
deleted file mode 100755
index 8acf600f..00000000
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/IntegerValidator.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2017 ModelSolv, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * ModelSolv, Inc. - initial API and implementation and/or initial documentation
- *******************************************************************************/
-package com.reprezen.kaizen.oasparser.val;
-
-import java.util.Set;
-
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.node.BigIntegerNode;
-import com.fasterxml.jackson.databind.node.IntNode;
-import com.fasterxml.jackson.databind.node.ShortNode;
-import com.google.common.collect.Sets;
-import com.reprezen.jsonoverlay.IntegerOverlay;
-
-public class IntegerValidator extends OverlayValidator {
-
- @SuppressWarnings("unchecked")
- private static Set> intTypes = Sets.> newHashSet( //
- IntNode.class, ShortNode.class, BigIntegerNode.class);
-
- @Override
- public void validate(IntegerOverlay overlay, ValidationResults results) {
- super.validate(overlay, results, intTypes);
- }
-}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/JsonTypeChecker.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/JsonTypeChecker.java
new file mode 100755
index 00000000..2e3e3876
--- /dev/null
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/JsonTypeChecker.java
@@ -0,0 +1,82 @@
+/*******************************************************************************
+ * Copyright (c) 2017 ModelSolv, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * ModelSolv, Inc. - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package com.reprezen.kaizen.oasparser.val;
+
+import static com.reprezen.kaizen.oasparser.val.Messages.m;
+
+import java.util.Arrays;
+import java.util.Collection;
+
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.node.ArrayNode;
+import com.fasterxml.jackson.databind.node.BigIntegerNode;
+import com.fasterxml.jackson.databind.node.BooleanNode;
+import com.fasterxml.jackson.databind.node.IntNode;
+import com.fasterxml.jackson.databind.node.NumericNode;
+import com.fasterxml.jackson.databind.node.ObjectNode;
+import com.fasterxml.jackson.databind.node.ShortNode;
+import com.fasterxml.jackson.databind.node.TextNode;
+import com.google.common.collect.ArrayListMultimap;
+import com.google.common.collect.Multimap;
+import com.reprezen.jsonoverlay.BooleanOverlay;
+import com.reprezen.jsonoverlay.IntegerOverlay;
+import com.reprezen.jsonoverlay.JsonOverlay;
+import com.reprezen.jsonoverlay.ListOverlay;
+import com.reprezen.jsonoverlay.MapOverlay;
+import com.reprezen.jsonoverlay.NumberOverlay;
+import com.reprezen.jsonoverlay.ObjectOverlay;
+import com.reprezen.jsonoverlay.Overlay;
+import com.reprezen.jsonoverlay.PrimitiveOverlay;
+import com.reprezen.jsonoverlay.PropertiesOverlay;
+import com.reprezen.jsonoverlay.StringOverlay;
+
+public class JsonTypeChecker {
+
+ public static void checkJsonType(Overlay> value, ValidationResults results) {
+ JsonNode json = value.getParsedJson();
+ if (json != null && !json.isMissingNode()) {
+ Collection> allowedJsonTypes = getAllowedJsonTypes(value);
+ for (Class extends JsonNode> type : allowedJsonTypes) {
+ if (type.isAssignableFrom(json.getClass())) {
+ return;
+ }
+ }
+ results.addError(m.msg("WrongTypeJson|Property bound to incompatible JSON Node type", json.getNodeType(),
+ allowedJsonTypes), value);
+ }
+ }
+
+ private static Multimap, Class extends JsonNode>> allowedJsonTypes = null;
+
+ private static Collection> getAllowedJsonTypes(Overlay> value) {
+ if (allowedJsonTypes == null) {
+ createAllowedJsonTypes();
+ }
+ JsonOverlay> overlay = value.getOverlay();
+ return allowedJsonTypes
+ .get(overlay instanceof PropertiesOverlay ? PropertiesOverlay.class : overlay.getClass());
+ }
+
+ private static void createAllowedJsonTypes() {
+ Multimap, Class extends JsonNode>> types = ArrayListMultimap
+ ., Class extends JsonNode>>create();
+ types.put(StringOverlay.class, TextNode.class);
+ types.put(BooleanOverlay.class, BooleanNode.class);
+ types.putAll(IntegerOverlay.class, Arrays.asList(IntNode.class, ShortNode.class, BigIntegerNode.class));
+ types.put(NumberOverlay.class, NumericNode.class);
+ types.putAll(PrimitiveOverlay.class, Arrays.asList(TextNode.class, NumericNode.class, BooleanNode.class));
+ types.put(ObjectOverlay.class, JsonNode.class);
+ types.put(MapOverlay.class, ObjectNode.class);
+ types.put(ListOverlay.class, ArrayNode.class);
+ types.put(PropertiesOverlay.class, ObjectNode.class);
+ allowedJsonTypes = types;
+ }
+}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/ListValidator.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/ListValidator.java
index 8c731f55..61f15abf 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/ListValidator.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/ListValidator.java
@@ -10,27 +10,26 @@
*******************************************************************************/
package com.reprezen.kaizen.oasparser.val;
-import com.reprezen.jsonoverlay.JsonOverlay;
+import java.util.List;
+
import com.reprezen.jsonoverlay.ListOverlay;
import com.reprezen.jsonoverlay.Overlay;
-public class ListValidator> extends OverlayValidator> {
+public class ListValidator extends ValidatorBase> {
- Validator elementValidator;
+ Validator itemValidator;
public ListValidator(Validator elementeValidator) {
- this.elementValidator = elementeValidator;
+ this.itemValidator = elementeValidator;
}
@Override
- public void validate(ListOverlay overlay, ValidationResults results) {
- int i = 0;
- for (T value : Overlay.get(overlay)) {
- elementValidator.validate(value, results, getElementCrumb(i++));
+ public void runValidations() {
+ if (itemValidator != null) {
+ ListOverlay list = Overlay.getListOverlay(value);
+ for (int i = 0; i < list.size(); i++) {
+ itemValidator.validate(Overlay.of(list, i));
+ }
}
}
-
- protected String getElementCrumb(int index) {
- return "[" + index + "]";
- }
}
diff --git a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/MapValidator.java b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/MapValidator.java
index e1265e90..e85edf36 100755
--- a/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/MapValidator.java
+++ b/kaizen-openapi-parser/src/main/java/com/reprezen/kaizen/oasparser/val/MapValidator.java
@@ -10,24 +10,26 @@
*******************************************************************************/
package com.reprezen.kaizen.oasparser.val;
-import com.fasterxml.jackson.databind.node.ObjectNode;
-import com.reprezen.jsonoverlay.JsonOverlay;
+import java.util.Map;
+
import com.reprezen.jsonoverlay.MapOverlay;
import com.reprezen.jsonoverlay.Overlay;
-public class MapValidator> extends OverlayValidator> {
+public class MapValidator extends ValidatorBase