Can iglu schemas be composed using $ref in Snowplow?
The 2018 blog on snowplow.io ‘Modelling page view events as a graph’ shows how to use iglu references to compose schemas:
"relationships": { "type": "object", "properties": { "visited": { "$ref": "iglu:com.snowplowanalytics.graph/visited/jsonschema/1-0-0" } } }
On Snowplow Micro and Mini I get an error when I try this:
items/$ref: Reference iglu:com.snowplowanalytics.snowplow/identify/jsonschema/1-0-0 cannot be resolved
"slates": {
"type": "array",
"description": "Recommended corpus slates",
"items": {
"$ref": "iglu:com.snowplowanalytics.snowplow/identify/jsonschema/1-0-0"
}
}
Our Snowplow Micro is configured to resolve to Iglu Central:
{
"schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-2",
"data": {
"cacheSize": 500,
"repositories": [
{
"name": "Iglu Central",
"priority": 0,
"vendorPrefixes": [ "com.snowplowanalytics" ],
"connection": {
"http": {
"uri": "http://iglucentral.com"
}
}
},
{
"name": "DEV Iglu",
"priority": 0,
"vendorPrefixes": [
"com.pocket"
],
"connection": {
"http": {
"uri": "https://com-getpocket-dev.iglu.snplow.net/api",
"apikey": "######"
}
}
}
]
}
}
I get the same error when trying to reference an entity defined in our private iglu server hosted on iglu.snplow.net.