Safe Haskell | None |
---|---|
Language | Haskell2010 |
JSON Reference is described here: http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03
And is extended for JSON Schema here: http://json-schema.org/latest/json-schema-core.html#anchor26
- data Scope schema = Scope {
- _topLevelDocument :: schema
- _documentURI :: Maybe Text
- _currentBaseURI :: BaseURI
- newtype BaseURI = BaseURI {
- _unBaseURI :: Maybe Text
- type URIAndFragment = (Maybe Text, Maybe Text)
- updateResolutionScope :: BaseURI -> Maybe Text -> BaseURI
- resolveReference :: BaseURI -> Text -> URIAndFragment
- isRemoteReference :: Text -> Bool
- baseAndFragment :: Text -> URIAndFragment
- resolveScopeAgainst :: BaseURI -> Text -> Text
Documentation
Scope | |
|
resolveReference :: BaseURI -> Text -> URIAndFragment Source #
Helpers
isRemoteReference :: Text -> Bool Source #
baseAndFragment :: Text -> URIAndFragment Source #