Safe Haskell | None |
---|---|
Language | Haskell2010 |
- embedded :: Schema -> [Schema]
- runValidate :: ReferencedSchemas Schema -> SchemaWithURI Schema -> Value -> [Invalid]
- validateString :: Schema -> Text -> [Invalid]
- validateNumber :: Schema -> Scientific -> [Invalid]
- validateArray :: ReferencedSchemas Schema -> SchemaWithURI Schema -> Vector Value -> [Invalid]
- validateObject :: ReferencedSchemas Schema -> SchemaWithURI Schema -> HashMap Text Value -> [Invalid]
- descendNextLevel :: ReferencedSchemas Schema -> SchemaWithURI Schema -> Schema -> Value -> [Invalid]
- runSingle :: Schema -> dta -> (Schema -> Maybe val) -> (err -> Invalid) -> (val -> dta -> [err]) -> [Invalid]
Embedded Schemas
embedded :: Schema -> [Schema] Source #
Return a schema's immediate subschemas.
Pass this to fetchReferencedSchemas
so that function can find all the
subschemas in a document. This allows fetchReferencedSchemas
to process
only "$ref"s and "id"s that are actual schema keywords. For example,
within a "properties" validator object an "id" key doesn't actually change
any scope, but instead serves a validator-specific function.
Validation (Main internal functions)
runValidate :: ReferencedSchemas Schema -> SchemaWithURI Schema -> Value -> [Invalid] Source #
validateNumber :: Schema -> Scientific -> [Invalid] Source #
validateArray :: ReferencedSchemas Schema -> SchemaWithURI Schema -> Vector Value -> [Invalid] Source #
validateObject :: ReferencedSchemas Schema -> SchemaWithURI Schema -> HashMap Text Value -> [Invalid] Source #
Validation (Internal utils)
descendNextLevel :: ReferencedSchemas Schema -> SchemaWithURI Schema -> Schema -> Value -> [Invalid] Source #