org.openapitools.codegen.validations.oas.SchemaWrapper Maven / Gradle / Ivy
package org.openapitools.codegen.validations.oas;
import io.swagger.v3.oas.models.media.Schema;
import io.swagger.v3.oas.models.OpenAPI;
import lombok.Getter;
/**
* Encapsulates an OAS schema.
*/
public class SchemaWrapper {
OpenAPI specification;
/**
* -- GETTER --
* Return the OAS schema
*
* @return the OAS schema
*/
@Getter private Schema schema;
/**
* Constructs a new instance of {@link SchemaWrapper}
*
* @param specification The OAS specification
* @param schema The OAS schema
*/
SchemaWrapper(OpenAPI specification, Schema schema) {
this.specification = specification;
this.schema = schema;
}
/**
* Returns the OpenAPI specification.
*
* @return The OpenAPI specification.
*/
public OpenAPI getOpenAPI() {
return specification;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy