Last active
August 29, 2015 14:10
-
-
Save alexanderdean/1c2dfad1328093b08855 to your computer and use it in GitHub Desktop.
Sample
This file contains 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 characters
// Request body expected to validate against this JSON Schema | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment