Class SchemaResolver
java.lang.Object
io.github.torand.openapi2java.collectors.SchemaResolver
Resolves schema components referenced in an OpenAPI specification.
-
Method Summary
Modifier and TypeMethodDescriptionOptional<io.swagger.v3.oas.models.media.Schema<?>> getModelSubpackage(String ref) io.swagger.v3.oas.models.media.Schema<?> getOrThrow(String ref) getTypeName(String ref) static booleanisArrayType(io.swagger.v3.oas.models.media.Schema<?> schema) booleanisArrayType(String ref) static booleanisCompoundType(io.swagger.v3.oas.models.media.Schema<?> schema) booleanisCompoundType(String ref) static booleanisEnumType(io.swagger.v3.oas.models.media.Schema<?> schema) booleanisEnumType(String ref) static booleanisObjectType(io.swagger.v3.oas.models.media.Schema<?> schema) booleanisObjectType(String ref) static booleanisPrimitiveType(io.swagger.v3.oas.models.media.Schema<?> schema) Indicates if schema represents a non-enumerated primitive JSON type, i.e. string, number, integer or booleanbooleanisPrimitiveType(String ref)
-
Method Details
-
getTypeName
-
getModelSubpackage
-
get
-
getOrThrow
-
isEnumType
-
isObjectType
-
isArrayType
-
isCompoundType
-
isPrimitiveType
-
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
-