Copyright | (c) 2024 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data Schema
- = SchemaInteger SchemaInfo IntegerSchema
- | SchemaBytes SchemaInfo BytesSchema
- | SchemaList SchemaInfo ListSchema
- | SchemaMap SchemaInfo MapSchema
- | SchemaConstructor SchemaInfo ConstructorSchema
- | SchemaBuiltInData SchemaInfo
- | SchemaBuiltInUnit SchemaInfo
- | SchemaBuiltInBoolean SchemaInfo
- | SchemaBuiltInInteger SchemaInfo
- | SchemaBuiltInBytes SchemaInfo
- | SchemaBuiltInString SchemaInfo
- | SchemaBuiltInPair SchemaInfo PairSchema
- | SchemaBuiltInList SchemaInfo Schema
- | SchemaOneOf (NonEmpty Schema)
- | SchemaAnyOf (NonEmpty Schema)
- | SchemaAllOf (NonEmpty Schema)
- | SchemaNot Schema
- | SchemaDefinitionRef DefinitionId
- data PairSchema = MkPairSchema {}
- data ConstructorSchema = MkConstructorSchema {}
- data MapSchema = MkMapSchema {}
- data ListSchema = MkListSchema {}
- data ListItemSchema
- data BytesSchema = MkBytesSchema {}
- emptyBytesSchema ∷ BytesSchema
- data IntegerSchema = MkIntegerSchema {}
- emptyIntegerSchema ∷ IntegerSchema
- data SchemaInfo = MkSchemaInfo {}
- emptySchemaInfo ∷ SchemaInfo
Documentation
Blueprint schema definition, as defined by the CIP-0057.
data PairSchema #
Instances
data ConstructorSchema #
Instances
MkMapSchema | |
|
Instances
FromJSON MapSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Generic MapSchema # | |
Show MapSchema # | |
Eq MapSchema # | |
Ord MapSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
type Rep MapSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema type Rep MapSchema = D1 ('MetaData "MapSchema" "GeniusYield.Types.Blueprint.Schema" "atlas-cardano-0.6.3-inplace" 'False) (C1 ('MetaCons "MkMapSchema" 'PrefixI 'True) ((S1 ('MetaSel ('Just "msKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Schema) :*: S1 ('MetaSel ('Just "msValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Schema)) :*: (S1 ('MetaSel ('Just "msMinItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "msMaxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Natural))))) |
data ListSchema #
MkListSchema | |
|
Instances
FromJSON ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Show ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Eq ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema (==) ∷ ListSchema → ListSchema → Bool # (/=) ∷ ListSchema → ListSchema → Bool # | |
Ord ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema compare ∷ ListSchema → ListSchema → Ordering # (<) ∷ ListSchema → ListSchema → Bool # (<=) ∷ ListSchema → ListSchema → Bool # (>) ∷ ListSchema → ListSchema → Bool # (>=) ∷ ListSchema → ListSchema → Bool # max ∷ ListSchema → ListSchema → ListSchema # min ∷ ListSchema → ListSchema → ListSchema # |
data ListItemSchema #
Instances
Show ListItemSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema showsPrec ∷ Int → ListItemSchema → ShowS # show ∷ ListItemSchema → String # showList ∷ [ListItemSchema] → ShowS # | |
Eq ListItemSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema (==) ∷ ListItemSchema → ListItemSchema → Bool # (/=) ∷ ListItemSchema → ListItemSchema → Bool # | |
Ord ListItemSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema compare ∷ ListItemSchema → ListItemSchema → Ordering # (<) ∷ ListItemSchema → ListItemSchema → Bool # (<=) ∷ ListItemSchema → ListItemSchema → Bool # (>) ∷ ListItemSchema → ListItemSchema → Bool # (>=) ∷ ListItemSchema → ListItemSchema → Bool # |
data BytesSchema #
MkBytesSchema | |
|
Instances
FromJSON BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Show BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema showsPrec ∷ Int → BytesSchema → ShowS # show ∷ BytesSchema → String # showList ∷ [BytesSchema] → ShowS # | |
Eq BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema (==) ∷ BytesSchema → BytesSchema → Bool # (/=) ∷ BytesSchema → BytesSchema → Bool # | |
Ord BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema compare ∷ BytesSchema → BytesSchema → Ordering # (<) ∷ BytesSchema → BytesSchema → Bool # (<=) ∷ BytesSchema → BytesSchema → Bool # (>) ∷ BytesSchema → BytesSchema → Bool # (>=) ∷ BytesSchema → BytesSchema → Bool # max ∷ BytesSchema → BytesSchema → BytesSchema # min ∷ BytesSchema → BytesSchema → BytesSchema # |
data IntegerSchema #
MkIntegerSchema | |
|
Instances
data SchemaInfo #
Additional information optionally attached to any datatype schema definition.
Instances
Show SchemaInfo # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Eq SchemaInfo # | |
Defined in GeniusYield.Types.Blueprint.Schema (==) ∷ SchemaInfo → SchemaInfo → Bool # (/=) ∷ SchemaInfo → SchemaInfo → Bool # | |
Ord SchemaInfo # | |
Defined in GeniusYield.Types.Blueprint.Schema compare ∷ SchemaInfo → SchemaInfo → Ordering # (<) ∷ SchemaInfo → SchemaInfo → Bool # (<=) ∷ SchemaInfo → SchemaInfo → Bool # (>) ∷ SchemaInfo → SchemaInfo → Bool # (>=) ∷ SchemaInfo → SchemaInfo → Bool # max ∷ SchemaInfo → SchemaInfo → SchemaInfo # min ∷ SchemaInfo → SchemaInfo → SchemaInfo # |