com.reprezen.genflow.openapi3.doc.KaiZenParserHelper Maven / Gradle / Ivy
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) {
boolean _and = false;
if (!(el instanceof JsonOverlay>)) {
_and = false;
} else {
Overlay> _of = Overlay.of(((JsonOverlay>) el));
boolean _isPresent = _of.isPresent();
boolean _not = (!_isPresent);
_and = _not;
}
if (_and) {
return null;
}
return el;
}
public String getKaiZenSchemaName(final Schema schema) {
Overlay _of = Overlay.of(schema);
return _of.getPathInParent();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy