I have following json schema which is stored at /schemas/com.mycompany/click/jsonschema/1-0-0 on my local machine and pushed to iglu db. it is working fine.
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for click event",
"self": {
"vendor": "com.mycompany",
"name": "click",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"e": { "type": "string" },
"example-events":{.......},
},
"additionalProperties": true
}
Now i want to update this to a version 1-0-1 with file saved at /schemas/com.mycompany/click/jsonschema/1-0-1 on my local machine
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for click event",
"self": {
"vendor": "com.mycompany",
"name": "click",
"format": "jsonschema",
"version": "1-0-1"
},
"type": "object",
"properties": {
"e": { "type": "string" },
"example-event":{........},
"custom-event":{........}
},
"additionalProperties": true
}
when i run iglu lint command i get the following
Schema [com.mycompany/click/jsonschema/1-0-1] contains a schema whose version is not 1-0-0
OK: com.dubicars/click/jsonschema/1-0-1
TOTAL: 1 files corrupted
TOTAL: 1 valid schemas
TOTAL: 0 schemas didnβt pass validation
i am confuse that itβs giving valid schema but corrupted file. can i push this schema to iglu db ? and will it work?