created a super simple schema and I am trying to use a curl request to test it. both commands are below.
Implemented the quickstart on AWS and follow this to register the schema.
In my error message I am getting a tracker protocol violation that refers to a schemaKey vs schemaCriterion conflict.
"messages":[{"schemaKey":"iglu:com.simplebet/simpleEvent/jsonschema/1-0-0","schemaCriterion":"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-*"}]}
What am I doing wrong here??? I can test the example event given at the end of the quickstart but cant move forward with custom events like this.
SCHEMA
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "simpleEvent",
"self": {
"vendor": "com.simplebet",
"name": "simpleEvent",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"some_words": {
"description": "Example string field",
"type": "string",
"maxLength": 255
},
"some_integer": {
"description": "Example integer field",
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"some_numeric": {
"description": "Example number field",
"type": ["number","null"],
"multipleOf": 0.0001,
"minimum": -1000000,
"maximum": 1000000
}
},
"minProperties":1,
"required": ["some_words"],
"additionalProperties": false
}
CURL
curl '{{COLLECTOR_URL}}/com.snowplowanalytics.snowplow/tp2' \
-H 'Content-Type: application/json; charset=UTF-8' \
-H 'Cookie: _sp=305902ac-8d59-479c-ad4c-82d4a2e6bb9c' \
--data-raw '{
"schema": "iglu:com.simplebet/simpleEvent/jsonschema/1-0-0",
"data": {
"some_words": "hey there",
"some_integer": 8675,
"some_numeric": 309
}
}'