minos.common.model.serializers.avro.schema.encoder

Classes

AvroSchemaEncoder

Avro Schema Encoder class.

class AvroSchemaEncoder[source]

Bases: SchemaEncoder

Avro Schema Encoder class.

__init__(type_=None)[source]
Parameters

type_ (Optional[type]) –

build(type_=MissingSentinel, **kwargs)[source]

Build the avro schema for the given field.

Parameters

type – The type to be encoded as a schema.

Returns

A dictionary object.

Return type

Union[dict, list, str]

static generate_random_str()[source]

Generate a random string

Returns

A random string value.

Return type

str