com.reprezen.genflow.openapi3.doc.KaiZenParserHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi3-doc Show documentation
Show all versions of openapi3-doc Show documentation
RepreZen Documentation GenTemplate for OpenAPI v3 Models
The newest version!
package com.reprezen.genflow.openapi3.doc;
import com.reprezen.jsonoverlay.JsonOverlay;
import com.reprezen.jsonoverlay.Overlay;
import com.reprezen.kaizen.oasparser.model3.Schema;
@SuppressWarnings("all")
public class KaiZenParserHelper {
public T asNullIfMissing(final T el) {
if (((el instanceof JsonOverlay>) && (!Overlay.of(((JsonOverlay>) el)).isPresent()))) {
return null;
}
return el;
}
public String getKaiZenSchemaName(final Schema schema) {
return Overlay.of(schema).getPathInParent();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy