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
- type URIBase = Maybe Text
- type URIBaseAndFragment = (Maybe Text, Maybe Text)
- updateResolutionScope :: URIBase -> Maybe Text -> URIBase
- resolveReference :: URIBase -> Text -> URIBaseAndFragment
- resolveFragment :: (FromJSON schema, ToJSON schema) => Maybe Text -> schema -> Maybe schema
- isRemoteReference :: Text -> Bool
- baseAndFragment :: Text -> URIBaseAndFragment
- resolveScopeAgainst :: Maybe Text -> Text -> Text
Documentation
resolveReference :: URIBase -> Text -> URIBaseAndFragment Source #
resolveFragment :: (FromJSON schema, ToJSON schema) => Maybe Text -> schema -> Maybe schema Source #
Helpers
isRemoteReference :: Text -> Bool Source #