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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Sets types.

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SchemaTypeMixin

      public SchemaTypeMixin()
  • Method Details

    • setTypes

      public abstract void setTypes(Set<String> types)
      Sets types.
      Parameters:
      types - the types