hscim-0.3.6: hscim json schema and server implementation
Safe HaskellNone
LanguageHaskell2010

Web.Scim.Schema.Schema

Synopsis

Documentation

data Schema Source #

All schemas that we support.

Instances

Instances details
Eq Schema Source # 
Instance details

Defined in Web.Scim.Schema.Schema

Methods

(==) :: Schema -> Schema -> Bool #

(/=) :: Schema -> Schema -> Bool #

Show Schema Source # 
Instance details

Defined in Web.Scim.Schema.Schema

ToJSON Schema Source # 
Instance details

Defined in Web.Scim.Schema.Schema

FromJSON Schema Source # 
Instance details

Defined in Web.Scim.Schema.Schema

getSchemaUri :: Schema -> Text Source #

Get schema URI (e.g. urn:ietf:params:scim:schemas:core:2.0:User).

pSchema :: [Schema] -> Parser Schema Source #

Parser for schemas

NOTE: according to the spec, this parser needs to be case insensitive, but that is literally insane. Won't implement.

fromSchemaUri :: Text -> Schema Source #

Get a schema by its URI.

NOTE: case sensitive against the spec. Same as pSchema.

TODO(arianvp): probably too lenient. want to only accept valid URNs This means the CustomSchema part might go... We need to kind of rethink how we're gonna do extensions anyway, as we're gonna have to support multiple extensions, which is currently a bit iffy I think

getSchema :: Schema -> Maybe Value Source #

Get schema description as JSON.