All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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) {
    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