Copyright | (c) 2024 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | None |
Language | GHC2021 |
GeniusYield.Types.Blueprint.Schema
Description
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 {
- msKeys :: Schema
- msValues :: Schema
- msMinItems :: Maybe Natural
- msMaxItems :: Maybe Natural
- data ListSchema = MkListSchema {}
- data ListItemSchema
- data BytesSchema = MkBytesSchema {
- bsEnum :: [ByteString]
- bsMinLength :: Maybe Natural
- bsMaxLength :: Maybe Natural
- emptyBytesSchema :: BytesSchema
- data IntegerSchema = MkIntegerSchema {}
- emptyIntegerSchema :: IntegerSchema
- data SchemaInfo = MkSchemaInfo {}
- emptySchemaInfo :: SchemaInfo
Documentation
Blueprint schema definition, as defined by the CIP-0057.
Constructors
data PairSchema #
Constructors
MkPairSchema | |
Instances
data ConstructorSchema #
Constructors
MkConstructorSchema | |
Instances
FromJSON ConstructorSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods parseJSON :: Value -> Parser ConstructorSchema # parseJSONList :: Value -> Parser [ConstructorSchema] # | |||||
Generic ConstructorSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Associated Types
Methods from :: ConstructorSchema -> Rep ConstructorSchema x # to :: Rep ConstructorSchema x -> ConstructorSchema # | |||||
Show ConstructorSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods showsPrec :: Int -> ConstructorSchema -> ShowS # show :: ConstructorSchema -> String # showList :: [ConstructorSchema] -> ShowS # | |||||
Eq ConstructorSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods (==) :: ConstructorSchema -> ConstructorSchema -> Bool # (/=) :: ConstructorSchema -> ConstructorSchema -> Bool # | |||||
Ord ConstructorSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods compare :: ConstructorSchema -> ConstructorSchema -> Ordering # (<) :: ConstructorSchema -> ConstructorSchema -> Bool # (<=) :: ConstructorSchema -> ConstructorSchema -> Bool # (>) :: ConstructorSchema -> ConstructorSchema -> Bool # (>=) :: ConstructorSchema -> ConstructorSchema -> Bool # max :: ConstructorSchema -> ConstructorSchema -> ConstructorSchema # min :: ConstructorSchema -> ConstructorSchema -> ConstructorSchema # | |||||
type Rep ConstructorSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema type Rep ConstructorSchema = D1 ('MetaData "ConstructorSchema" "GeniusYield.Types.Blueprint.Schema" "atlas-cardano-0.14.0-inplace" 'False) (C1 ('MetaCons "MkConstructorSchema" 'PrefixI 'True) (S1 ('MetaSel ('Just "csIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "csFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Schema]))) |
Constructors
MkMapSchema | |
Fields
|
Instances
FromJSON MapSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema | |||||
Generic MapSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Associated Types
| |||||
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.14.0-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 #
Constructors
MkListSchema | |
Fields
|
Instances
FromJSON ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Show ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods showsPrec :: Int -> ListSchema -> ShowS # show :: ListSchema -> String # showList :: [ListSchema] -> ShowS # | |
Eq ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Ord ListSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods 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 #
Constructors
ListItemSchemaSchema Schema | |
ListItemSchemaSchemas [Schema] |
Instances
Show ListItemSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods showsPrec :: Int -> ListItemSchema -> ShowS # show :: ListItemSchema -> String # showList :: [ListItemSchema] -> ShowS # | |
Eq ListItemSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods (==) :: ListItemSchema -> ListItemSchema -> Bool # (/=) :: ListItemSchema -> ListItemSchema -> Bool # | |
Ord ListItemSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods compare :: ListItemSchema -> ListItemSchema -> Ordering # (<) :: ListItemSchema -> ListItemSchema -> Bool # (<=) :: ListItemSchema -> ListItemSchema -> Bool # (>) :: ListItemSchema -> ListItemSchema -> Bool # (>=) :: ListItemSchema -> ListItemSchema -> Bool # max :: ListItemSchema -> ListItemSchema -> ListItemSchema # min :: ListItemSchema -> ListItemSchema -> ListItemSchema # |
data BytesSchema #
Constructors
MkBytesSchema | |
Fields
|
Instances
FromJSON BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Show BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods showsPrec :: Int -> BytesSchema -> ShowS # show :: BytesSchema -> String # showList :: [BytesSchema] -> ShowS # | |
Eq BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Ord BytesSchema # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods 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 #
Constructors
MkIntegerSchema | |
Fields
|
Instances
FromJSON IntegerSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods parseJSON :: Value -> Parser IntegerSchema # parseJSONList :: Value -> Parser [IntegerSchema] # | |||||
Generic IntegerSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Associated Types
| |||||
Show IntegerSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods showsPrec :: Int -> IntegerSchema -> ShowS # show :: IntegerSchema -> String # showList :: [IntegerSchema] -> ShowS # | |||||
Eq IntegerSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods (==) :: IntegerSchema -> IntegerSchema -> Bool # (/=) :: IntegerSchema -> IntegerSchema -> Bool # | |||||
Ord IntegerSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema Methods compare :: IntegerSchema -> IntegerSchema -> Ordering # (<) :: IntegerSchema -> IntegerSchema -> Bool # (<=) :: IntegerSchema -> IntegerSchema -> Bool # (>) :: IntegerSchema -> IntegerSchema -> Bool # (>=) :: IntegerSchema -> IntegerSchema -> Bool # max :: IntegerSchema -> IntegerSchema -> IntegerSchema # min :: IntegerSchema -> IntegerSchema -> IntegerSchema # | |||||
type Rep IntegerSchema # | |||||
Defined in GeniusYield.Types.Blueprint.Schema type Rep IntegerSchema = D1 ('MetaData "IntegerSchema" "GeniusYield.Types.Blueprint.Schema" "atlas-cardano-0.14.0-inplace" 'False) (C1 ('MetaCons "MkIntegerSchema" 'PrefixI 'True) ((S1 ('MetaSel ('Just "isMultipleOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "isMinimum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "isMaximum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "isExclusiveMinimum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "isExclusiveMaximum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)))))) |
data SchemaInfo #
Additional information optionally attached to any datatype schema definition.
Constructors
MkSchemaInfo | |
Instances
Show SchemaInfo # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods showsPrec :: Int -> SchemaInfo -> ShowS # show :: SchemaInfo -> String # showList :: [SchemaInfo] -> ShowS # | |
Eq SchemaInfo # | |
Defined in GeniusYield.Types.Blueprint.Schema | |
Ord SchemaInfo # | |
Defined in GeniusYield.Types.Blueprint.Schema Methods compare :: SchemaInfo -> SchemaInfo -> Ordering # (<) :: SchemaInfo -> SchemaInfo -> Bool # (<=) :: SchemaInfo -> SchemaInfo -> Bool # (>) :: SchemaInfo -> SchemaInfo -> Bool # (>=) :: SchemaInfo -> SchemaInfo -> Bool # max :: SchemaInfo -> SchemaInfo -> SchemaInfo # min :: SchemaInfo -> SchemaInfo -> SchemaInfo # |