Skip to content

Commit

Permalink
create common enterprise schema
Browse files Browse the repository at this point in the history
Taken from payload examples in #371
  • Loading branch information
wolfy1339 committed Jun 4, 2021
1 parent 0b04a00 commit b5b09c3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions payload-schemas/schemas/common/enterprise.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/enterprise.schema.json",
"type": "object",
"required": [
"id",
"slug",
"name",
"node_id",
"avatar_url",
"description",
"website_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": { "type": "integer" },
"slug": { "type": "string" },
"name": { "type": "string" },
"node_id": { "type": "string" },
"avatar_url": { "type": "string", "format": "uri" },
"description": { "type": "string" },
"website_url": { "type": "string" },
"html_url": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false,
"title": "Enterprise"
}

0 comments on commit b5b09c3

Please sign in to comment.