-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add com.snowplowanalytics.iglu/client_error/jsonschema/1-0-0 (WIP)
- Loading branch information
Showing
1 changed file
with
86 additions
and
0 deletions.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
schemas/com.snowplowanalytics.iglu/client_error/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,86 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Possible unsuccessful result produced by Iglu Client", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.iglu", | ||
"name": "client_error", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
"type": "object", | ||
"anyOf": [ | ||
{ | ||
"properties": { | ||
"error": { | ||
"enum": ["ResolutionError"] | ||
}, | ||
"lookupHistory": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"repository": { | ||
"type": "string" | ||
}, | ||
"errors": { | ||
"type": "array", | ||
"items": { | ||
"properties": { | ||
"error": { | ||
"enum": ["ClientFailure", "RepoFailure", "NotFound"] | ||
}, | ||
"message": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["error"] | ||
} | ||
}, | ||
"attempts": { | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
"fatal": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": ["repository", "errors", "attempts", "fatal"], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": ["error", "lookupHistory"], | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"properties": { | ||
"error": { | ||
"enum": ["ValidationError"] | ||
}, | ||
"dataReports": { | ||
"type": "array", | ||
"minLength": 1, | ||
"items": { | ||
"properties": { | ||
"message": { | ||
"type": "string" | ||
}, | ||
"path": { | ||
"type": ["string", "null"] | ||
}, | ||
"keyword": { | ||
"type": ["string", "null"] | ||
}, | ||
"target": { | ||
"type": "array" | ||
} | ||
}, | ||
"required": ["message", "path", "keyword", "target"], | ||
"additionalProperties": false | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |