hw-kafka-avro-2.1.0: Avro support for Kafka infrastructure

Safe HaskellNone
LanguageHaskell2010

Kafka.Avro.SchemaRegistry

Synopsis

Documentation

newtype Subject Source #

Constructors

Subject 

Fields

Instances

Eq Subject Source # 

Methods

(==) :: Subject -> Subject -> Bool #

(/=) :: Subject -> Subject -> Bool #

Ord Subject Source # 
Show Subject Source # 
IsString Subject Source # 

Methods

fromString :: String -> Subject #

Generic Subject Source # 

Associated Types

type Rep Subject :: * -> * #

Methods

from :: Subject -> Rep Subject x #

to :: Rep Subject x -> Subject #

Hashable Subject Source # 

Methods

hashWithSalt :: Int -> Subject -> Int #

hash :: Subject -> Int #

type Rep Subject Source # 
type Rep Subject = D1 * (MetaData "Subject" "Kafka.Avro.SchemaRegistry" "hw-kafka-avro-2.1.0-DL1XohKs9riKgHB3D5aGWJ" True) (C1 * (MetaCons "Subject" PrefixI True) (S1 * (MetaSel (Just Symbol "unSubject") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))

type Schema = Type #

An Avro schema is either * A "JSON object in the form `{"type":"typeName" ...` * A "JSON string, naming a defined type" (basic type wo free variablesnames) * A "JSON array, representing a union"

N.B. It is possible to create a Haskell value (of Schema type) that is not a valid Avro schema by violating one of the above or one of the conditions called out in validateSchema.