Class SchemaResolver

java.lang.Object
io.github.torand.openapi2java.collectors.SchemaResolver

public class SchemaResolver extends Object
Resolves schema components referenced in an OpenAPI specification.
  • Method Details

    • getTypeName

      public String getTypeName(String ref)
    • getModelSubpackage

      public Optional<String> getModelSubpackage(String ref)
    • get

      public Optional<io.swagger.v3.oas.models.media.Schema<?>> get(String ref)
    • getOrThrow

      public io.swagger.v3.oas.models.media.Schema<?> getOrThrow(String ref)
    • isEnumType

      public boolean isEnumType(String ref)
    • isObjectType

      public boolean isObjectType(String ref)
    • isArrayType

      public boolean isArrayType(String ref)
    • isCompoundType

      public boolean isCompoundType(String ref)
    • isPrimitiveType

      public boolean isPrimitiveType(String ref)
    • isEnumType

      public static boolean isEnumType(io.swagger.v3.oas.models.media.Schema<?> schema)
    • isObjectType

      public static boolean isObjectType(io.swagger.v3.oas.models.media.Schema<?> schema)
    • isArrayType

      public static boolean isArrayType(io.swagger.v3.oas.models.media.Schema<?> schema)
    • isCompoundType

      public static boolean isCompoundType(io.swagger.v3.oas.models.media.Schema<?> schema)
    • isPrimitiveType

      public static boolean isPrimitiveType(io.swagger.v3.oas.models.media.Schema<?> schema)
      Indicates if schema represents a non-enumerated primitive JSON type, i.e. string, number, integer or boolean