Skip to content

Commit cddfe79

Browse files
committed
Add com.snowplowanalytics.iglu/client_error/jsonschema/1-0-0 (WIP)
1 parent 1fee658 commit cddfe79

File tree

1 file changed

+86
-0
lines changed
  • schemas/com.snowplowanalytics.iglu/client_error/jsonschema

1 file changed

+86
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
3+
"description": "Possible unsuccessful result produced by Iglu Client",
4+
"self": {
5+
"vendor": "com.snowplowanalytics.iglu",
6+
"name": "client_error",
7+
"format": "jsonschema",
8+
"version": "1-0-0"
9+
},
10+
"type": "object",
11+
"anyOf": [
12+
{
13+
"properties": {
14+
"error": {
15+
"enum": ["ResolutionError"]
16+
},
17+
"lookupHistory": {
18+
"type": "array",
19+
"minItems": 1,
20+
"items": {
21+
"type": "object",
22+
"properties": {
23+
"repository": {
24+
"type": "string"
25+
},
26+
"errors": {
27+
"type": "array",
28+
"items": {
29+
"properties": {
30+
"error": {
31+
"enum": ["ClientFailure", "RepoFailure", "NotFound"]
32+
},
33+
"message": {
34+
"type": "string"
35+
}
36+
},
37+
"required": ["error"]
38+
}
39+
},
40+
"attempts": {
41+
"type": "integer",
42+
"minimum": 0
43+
},
44+
"fatal": {
45+
"type": "boolean"
46+
}
47+
},
48+
"required": ["repository", "errors", "attempts", "fatal"],
49+
"additionalProperties": false
50+
}
51+
}
52+
},
53+
"required": ["error", "lookupHistory"],
54+
"additionalProperties": false
55+
},
56+
{
57+
"properties": {
58+
"error": {
59+
"enum": ["ValidationError"]
60+
},
61+
"dataReports": {
62+
"type": "array",
63+
"minLength": 1,
64+
"items": {
65+
"properties": {
66+
"message": {
67+
"type": "string"
68+
},
69+
"path": {
70+
"type": ["string", "null"]
71+
},
72+
"keyword": {
73+
"type": ["string", "null"]
74+
},
75+
"target": {
76+
"type": "array"
77+
}
78+
},
79+
"required": ["message", "path", "keyword", "target"],
80+
"additionalProperties": false
81+
}
82+
}
83+
}
84+
}
85+
]
86+
}

0 commit comments

Comments
 (0)