Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
All schemas that we support.
User20 | |
ServiceProviderConfig20 | |
Group20 | |
Schema20 | |
ResourceType20 | |
ListResponse20 | |
Error20 | |
PatchOp20 | |
CustomSchema Text |
fakeEnumSchema :: [Schema] Source #
Schema
is *almost* a straight-forward enum type, except for CustomSchema
.
Enumerations are nice because they let you write quickcheck generators as elements
[minBound..]
. fakeEnumSchema
is a work-around.
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