-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a function that discovers and looks up schemas without using the…
… list endpoint of an Iglu server (close #256)
- Loading branch information
Showing
19 changed files
with
839 additions
and
52 deletions.
There are no files selected for viewing
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
23 changes: 23 additions & 0 deletions
23
...nt-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/3-1-0
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "3-1-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field___1": { | ||
"type": "string" | ||
}, | ||
"field___2": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"field___1" | ||
], | ||
"additionalProperties": false | ||
} |
20 changes: 20 additions & 0 deletions
20
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-0-0
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
23 changes: 23 additions & 0 deletions
23
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-1-0
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-1-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
}, | ||
"field_2": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
26 changes: 26 additions & 0 deletions
26
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-1-1
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-1-1" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
}, | ||
"field_2": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_3": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
29 changes: 29 additions & 0 deletions
29
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-1-2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-1-2" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
}, | ||
"field_2": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_3": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_4": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
32 changes: 32 additions & 0 deletions
32
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-2-0
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-2-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
}, | ||
"field_2": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_3": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_4": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_5": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
35 changes: 35 additions & 0 deletions
35
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-2-1
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-2-1" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
}, | ||
"field_2": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_3": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_4": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_5": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_6": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
38 changes: 38 additions & 0 deletions
38
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-2-2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema to test lookupSchemasUntil function", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-2-2" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
}, | ||
"field_2": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_3": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_4": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_5": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_6": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_7": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
41 changes: 41 additions & 0 deletions
41
...st-embedded/schemas/com.snowplowanalytics.iglu-test/lookup-schemas-until/jsonschema/1-3-0
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Invalid schema to test lookupSchemasUntil function - Misses comma after properties", | ||
"self": { | ||
"vendor": "com.snowplowanalytics", | ||
"name": "lookup-schemas-until", | ||
"format": "jsonschema", | ||
"version": "1-3-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"field_1": { | ||
"type": "string" | ||
}, | ||
"field_2": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_3": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_4": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_5": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_6": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_7": { | ||
"type": ["string", "null"] | ||
}, | ||
"field_8": { | ||
"type": ["string", "null"] | ||
} | ||
} | ||
"required": [ | ||
"field_1" | ||
], | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.