Class OpenAPIUtil

java.lang.Object
io.swagger.codegen.v3.generators.util.OpenAPIUtil

public class OpenAPIUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addPropertiesFromRef(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.Schema
    getPropertyFromAllOfSchema(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.Schema
    getRefSchemaIfExists(io.swagger.v3.oas.models.media.Schema schema, io.swagger.v3.oas.models.OpenAPI openAPI)
     
    static io.swagger.v3.oas.models.media.Schema
    getSchemaFromName(String name, io.swagger.v3.oas.models.OpenAPI openAPI)
     
    static io.swagger.v3.oas.models.media.Schema
    getSchemaFromRefSchema(io.swagger.v3.oas.models.media.Schema refSchema, io.swagger.v3.oas.models.OpenAPI openAPI)
     
    static String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static String getSimpleRef(String ref)
    • 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

      public static io.swagger.v3.oas.models.media.Schema getPropertyFromAllOfSchema(String propertyName, List<io.swagger.v3.oas.models.media.Schema> schemas, io.swagger.v3.oas.models.OpenAPI openAPI)