Skip to content

Commit 17fafb8

Browse files
committed
create common enterprise schema
Taken from payload examples in #371
1 parent 933e092 commit 17fafb8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "common/enterprise.schema.json",
4+
"type": "object",
5+
"required": [
6+
"id",
7+
"slug",
8+
"name",
9+
"node_id",
10+
"avatar_url",
11+
"description",
12+
"website_url",
13+
"html_url",
14+
"created_at",
15+
"updated_at"
16+
],
17+
"properties": {
18+
"id": { "type": "integer" },
19+
"slug": { "type": "string" },
20+
"name": { "type": "string" },
21+
"node_id": { "type": "string" },
22+
"avatar_url": { "type": "string", "format": "uri" },
23+
"description": { "type": "string" },
24+
"website_url": { "type": "string" },
25+
"html_url": { "type": "string" },
26+
"created_at": { "type": "string", "format": "date-time" },
27+
"updated_at": { "type": "string", "format": "date-time" }
28+
},
29+
"additionalProperties": false,
30+
"title": "Enterprise"
31+
}

0 commit comments

Comments
 (0)