Class MultiFormatSchema<Schema>

java.lang.Object
com.asyncapi.schemas.asyncapi.ExtendableObject
com.asyncapi.schemas.asyncapi.multiformat.MultiFormatSchema<Schema>
Type Parameters:
Schema - schema to use
Direct Known Subclasses:
AsyncAPIFormatSchema, AvroFormatSchema, JsonFormatSchema, OpenAPIFormatSchema

public class MultiFormatSchema<Schema> extends ExtendableObject
The Multi Format Schema Object represents a schema definition. It differs from the AsyncAPISchema in that it supports multiple schema formats or languages (e.g., JSON Schema, Avro, etc.).
Version:
3.0.0
Author:
Pavel Bodiachevskii
See Also:
  • Constructor Details

    • MultiFormatSchema

      public MultiFormatSchema(@NotNull Schema schema)
    • MultiFormatSchema

      public MultiFormatSchema(@NotNull @NotNull String schemaFormat, @NotNull Schema schema)
  • Method Details

    • setSchemaFormat

      public void setSchemaFormat(@NotNull @NotNull String schemaFormat)
    • getSchemaFormat

      @NotNull public @NotNull String getSchemaFormat()
    • setSchema

      public void setSchema(@NotNull Schema schema)
    • getSchema

      @NotNull public Schema getSchema()