Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- newtype SchemaTag = SchemaTag (Maybe Text)
- schemaTag :: String -> SchemaTag
- data Node = Node {}
- data Value
- type Key = Text
- type Object = [(Key, Node)]
- fromValue :: Value -> Node
- newtype Tree = Tree Object
- data JSONReference = JSONReference {
- uri :: Text
- pointer :: JSONPointer
- jsonReference :: Text -> JSONReference
- jsonPointer :: Text -> JSONPointer
- newtype JSONPointer = JSONPointer Path
- newtype Anchor = Anchor {}
- newtype Anchors = Anchors [(Anchor, Value)]
Documentation
Specify a schema using schema
from ToAsdf
All allowed node values. We can't use Aeson's Value, because it doesn't support tags, binary data, or references
Bool !Bool | |
Number !Scientific | |
Integer !Integer | |
String !Text | |
NDArray !NDArrayData | RawBinary !ByteString |
Array ![Node] | |
Object !Object | |
Reference !JSONReference | |
Alias !Anchor | |
Null |
Root Object with all anchors resolved
data JSONReference Source #
JSONReference | |
|
Instances
Show JSONReference Source # | |
Defined in Telescope.Asdf.Node showsPrec :: Int -> JSONReference -> ShowS # show :: JSONReference -> String # showList :: [JSONReference] -> ShowS # | |
Eq JSONReference Source # | |
Defined in Telescope.Asdf.Node (==) :: JSONReference -> JSONReference -> Bool # (/=) :: JSONReference -> JSONReference -> Bool # |
jsonReference :: Text -> JSONReference Source #
jsonPointer :: Text -> JSONPointer Source #
newtype JSONPointer Source #
Instances
Show JSONPointer Source # | |
Defined in Telescope.Asdf.Node showsPrec :: Int -> JSONPointer -> ShowS # show :: JSONPointer -> String # showList :: [JSONPointer] -> ShowS # | |
Eq JSONPointer Source # | |
Defined in Telescope.Asdf.Node (==) :: JSONPointer -> JSONPointer -> Bool # (/=) :: JSONPointer -> JSONPointer -> Bool # |