Last active
August 29, 2015 14:10
-
-
Save alexanderdean/1c2dfad1328093b08855 to your computer and use it in GitHub Desktop.
Revisions
-
alexanderdean revised this gist
Dec 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ private val PayloadDataSchema = SchemaCriterion("com.snowplowanalytics.snowplow", "payload_data", "jsonschema", 1, 0) // Check JSON is a payload_data version 1-0-*, and verify it against the schema val body: ValidatedNel[JsonNode] = bodyNode.verifySchemaAndValidate(schemaCriterion) -
alexanderdean revised this gist
Dec 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,5 +2,5 @@ private val PayloadDataSchema = SchemaCriterion("com.snowplowanalytics.snowplow", "payload_data", "jsonschema", 1, 0) // Check JSON is a payload_data version 1-0-*, and verify it against the schema val node: ValidatedNel[JsonNode] = rawNode.verifySchemaAndValidate(schemaCriterion) -
alexanderdean revised this gist
Dec 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,5 +2,5 @@ private val PayloadDataSchema = SchemaCriterion("com.snowplowanalytics.snowplow", "payload_data", "jsonschema", 1, 0) // Check JSON is a payload_data, and validate it against that schema version 1-0-* val node: ValidatedNel[JsonNode] = rawNode.verifySchemaAndValidate(schemaCriterion) -
alexanderdean revised this gist
Dec 7, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,5 @@ private val PayloadDataSchema = SchemaCriterion("com.snowplowanalytics.snowplow", "payload_data", "jsonschema", 1, 0) // Check JSON is a payload_data, and validate it against that schema val node: ValidatedNel[JsonNode] = rawNode.verifySchemaAndValidate(schemaCriterion) -
alexanderdean revised this gist
Dec 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,4 @@ private val PayloadDataSchema = SchemaCriterion("com.snowplowanalytics.snowplow", "payload_data", "jsonschema", 1, 0) val node: ValidatedNel[JsonNode] = rawNode.verifySchemaAndValidate(schemaCriterion) -
alexanderdean revised this gist
Dec 7, 2014 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ // Request body expected to validate against this JSON Schema private val PayloadDataSchema = SchemaCriterion("com.snowplowanalytics.snowplow", "payload_data", "jsonschema", 1, 0) val node: ValidatedNel[JsonNode] = extractAndValidateJson(PayloadDataSchema, rawNode) -
alexanderdean created this gist
Dec 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ type Validated[A] = ValidationNel[String, A] def processEvents(registry: EnrichmentRegistry, etlVersion: String, etlTstamp: String, input: Validated[Option[CollectorPayload]]) (implicit resolver: iglu.client.Resolver) : List[Validated[EnrichedEvent]] = {