Package org.springdoc.core.mixins
Class SchemaTypeMixin
java.lang.Object
io.swagger.v3.core.jackson.mixin.Schema31Mixin
org.springdoc.core.mixins.SchemaTypeMixin
public abstract class SchemaTypeMixin
extends io.swagger.v3.core.jackson.mixin.Schema31Mixin
The type Schema type mixin. Makes the OpenAPI 3.1
type readable back into the
types set, whichever of the two serialized forms it takes.
It extends the swagger-core mixin so that it can be registered on Schema itself
without losing the serialization it declares, which is what makes the deserializer apply
to every schema subclass rather than to JsonSchema alone.
- Author:
- Mattias-Sehlstedt
-
Nested Class Summary
Nested classes/interfaces inherited from class io.swagger.v3.core.jackson.mixin.Schema31Mixin
io.swagger.v3.core.jackson.mixin.Schema31Mixin.TypeSerializer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.swagger.v3.core.jackson.mixin.Schema31Mixin
addExtension, getBooleanSchemaValue, getExample, getExampleSetFlag, getExclusiveMaximum, getExclusiveMaximumValue, getExclusiveMinimum, getExclusiveMinimumValue, getExtensions, getJsonSchema, getJsonSchemaImpl, getNullable, getType, getTypes
-
Constructor Details
-
SchemaTypeMixin
public SchemaTypeMixin()
-
-
Method Details
-
setTypes
Sets types.- Parameters:
types- the types
-