com.snowplowanalytics.iglu.schemaddl.migrations
SchemaList construction errors
Multiple schemas, grouped by model and in canonical order
Has all properties of SchemaList.Full, except canonical order
Has all properties of SchemaList.Full, except absence of gaps
Single init schema (e.g.
Single init schema (e.g. 1-0-0
, 3-0-0
). No migrations should be involved
Construct SchemaList
s from unordered list
Construct SchemaList
s from unordered list
non-empty list of schemas which can belong to different model groups
non-empty list of errors while creating SchemaLists in Ior.left and non-empty list of SchemaList which created from given schemas in Ior.right
Construct SingleSchema from given Schema if it is first version of its model group
Construct SingleSchema from given Schema if it is first version of its model group
IgluSchems to create SingleSchema
None if given schema is not first version of its model group Some(SingleSchema(schema)) otherwise
Build SchemaLists from fetched IgluSchemas.
Build SchemaLists from fetched IgluSchemas. Given EitherT should wrap fetching schemas from /schemas endpoint of Iglu Server because they need to ordered.
EitherT which wraps list of ordered Iglu Schemas
list of SchemaLists which created from fetched schemas
Fetch from Iglu Server and parse each schema from SchemaKeyList
, using generic resolution function
(IO-dependent) valid constructor of SchemaList
Fetch from Iglu Server and parse each schema from SchemaKeyList
, using generic resolution function
(IO-dependent) valid constructor of SchemaList
non-empty properly ordered list of SchemaKey
s, fetched from Iglu Server
resolution function
properly ordered list of parsed JSON Schemas
Construct SchemaList from list of schemas, but only if order is unambiguous and no gaps
If order is ambiguous (left returned) then the only safe order can be retrieved from
Iglu Server (by fromSchemaList
), use other constructors on your own risk
Construct SchemaList from list of schemas, but only if order is unambiguous and no gaps
If order is ambiguous (left returned) then the only safe order can be retrieved from
Iglu Server (by fromSchemaList
), use other constructors on your own risk
non-empty list of schema belonging to the same ModelGroup
error object as Either.left in case of transformation is not successful or created SchemaList as Either.right if everything is okay
Construct SchemaList
from list of schemas, if there is no gaps.
Construct SchemaList
from list of schemas, if there is no gaps.
Order given model group according to their schema key and resulting
ordering might not be correct if given schema list ambiguous
therefore it is not safe to use this function with ambiguous schema list.
non-empty list of schema belonging to the same ModelGroup
error object as Either.left in case of transformation is not successful or created SchemaList as Either.right if everything is okay