Interface RichSerde<T extends @Nullable Object>

All Superinterfaces:
Serde<T>

public interface RichSerde<T extends @Nullable Object> extends Serde<T>
Richer version of Serde containing schema information.

This API should be considered unstable to implement.

You can create one using withSchema(Object, Serde).

  • Method Details

    • jsonSchema

      Object jsonSchema()
      Returns:
      a Draft 2020-12 Json Schema. It should be self-contained, and MUST not contain refs to files. If the schema shouldn't be serialized with Jackson, return a String
    • withSchema

      static <T> RichSerde<T> withSchema(Object jsonSchema, Serde<T> inner)