Type avroSchema
File match *.avsc
Schema URL https://catalog.lintel.tools/schemas/schemastore/avro-avsc/latest.json
Source https://www.schemastore.org/avro-avsc.json

Validate with Lintel

npx @lintel/lintel check
Type: avroSchema

Json-Schema definition for Avro AVSC files.

One of

1. Avro Schema types

Definitions

avroSchema types

Root Schema

types primitiveType | primitiveTypeWithMetadata | customTypeReference | avroRecord | avroEnum | avroArray | avroMap | avroFixed | avroUnion

Allowed Avro types

primitiveType string

Basic type primitives.

primitiveTypeWithMetadata object

A primitive type with metadata attached.

type string required

Basic type primitives.

Values: "null" "boolean" "int" "long" "float" "double" "bytes" "string"
customTypeReference string

Reference to a ComplexType

avroUnion avroSchema[]

A Union of types

avroField object

A field within a Record

name string required
pattern=^[A-Za-z_][A-Za-z0-9_]*$
doc string
default
order enum
Values: "ascending" "descending" "ignore"
aliases name[]
avroRecord object

A Record

type string required
Values: "record"
name string required
pattern=^[A-Za-z_][A-Za-z0-9_]*$
fields avroField[] required
namespace string
pattern=^([A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)*$
doc string
aliases name[]
avroEnum object

An enumeration

type string required
Values: "enum"
name string required
pattern=^[A-Za-z_][A-Za-z0-9_]*$
symbols name[] required
namespace string
pattern=^([A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)*$
doc string
aliases name[]
avroArray object

An array

type string required
Values: "array"
name string
pattern=^[A-Za-z_][A-Za-z0-9_]*$
namespace string
pattern=^([A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)*$
doc string
aliases name[]
avroMap object

A map of values

type string required
Values: "map"
name string
pattern=^[A-Za-z_][A-Za-z0-9_]*$
namespace string
pattern=^([A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)*$
doc string
aliases name[]
avroFixed object

A fixed sized array of bytes

type string required
Values: "fixed"
name string required
pattern=^[A-Za-z_][A-Za-z0-9_]*$
size number required
namespace string
pattern=^([A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)*$
doc string
aliases name[]
name string
namespace string