Class OpenAPIUtil
java.lang.Object
io.swagger.codegen.v3.generators.util.OpenAPIUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPropertiesFromRef(io.swagger.v3.oas.models.OpenAPI openAPI, io.swagger.v3.oas.models.media.Schema refSchema, io.swagger.codegen.v3.CodegenProperty codegenProperty) static io.swagger.v3.oas.models.media.SchemagetPropertyFromAllOfSchema(String propertyName, List<io.swagger.v3.oas.models.media.Schema> schemas, io.swagger.v3.oas.models.OpenAPI openAPI) static io.swagger.v3.oas.models.media.SchemagetRefSchemaIfExists(io.swagger.v3.oas.models.media.Schema schema, io.swagger.v3.oas.models.OpenAPI openAPI) static io.swagger.v3.oas.models.media.SchemagetSchemaFromName(String name, io.swagger.v3.oas.models.OpenAPI openAPI) static io.swagger.v3.oas.models.media.SchemagetSchemaFromRefSchema(io.swagger.v3.oas.models.media.Schema refSchema, io.swagger.v3.oas.models.OpenAPI openAPI) static StringgetSimpleRef(String ref)
-
Constructor Details
-
OpenAPIUtil
public OpenAPIUtil()
-
-
Method Details
-
addPropertiesFromRef
public static void addPropertiesFromRef(io.swagger.v3.oas.models.OpenAPI openAPI, io.swagger.v3.oas.models.media.Schema refSchema, io.swagger.codegen.v3.CodegenProperty codegenProperty) -
getSimpleRef
-
getSchemaFromName
public static io.swagger.v3.oas.models.media.Schema getSchemaFromName(String name, io.swagger.v3.oas.models.OpenAPI openAPI) -
getRefSchemaIfExists
public static io.swagger.v3.oas.models.media.Schema getRefSchemaIfExists(io.swagger.v3.oas.models.media.Schema schema, io.swagger.v3.oas.models.OpenAPI openAPI) -
getSchemaFromRefSchema
public static io.swagger.v3.oas.models.media.Schema getSchemaFromRefSchema(io.swagger.v3.oas.models.media.Schema refSchema, io.swagger.v3.oas.models.OpenAPI openAPI) -
getPropertyFromAllOfSchema
-