-
Notifications
You must be signed in to change notification settings - Fork 66.6k
Expand file tree
/
Copy pathenabled-list-schema.ts
More file actions
45 lines (41 loc) · 1020 Bytes
/
enabled-list-schema.ts
File metadata and controls
45 lines (41 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// This schema is used to validate
// src/github-apps/data/server-to-server-rest.json
// src/github-apps/data/user-to-server-rest.json
// and src/github-apps/data/fine-grained-pat.json
interface SchemaProperty {
description: string
type: string
}
interface EnabledListSchema {
type: string
required: string[]
properties: {
slug: SchemaProperty
subcategory: SchemaProperty
verb: SchemaProperty
requestPath: SchemaProperty
}
}
const schema: EnabledListSchema = {
type: 'object',
required: ['slug', 'subcategory', 'verb', 'requestPath'],
properties: {
slug: {
description: 'The documentation slug for the REST API operation.',
type: 'string',
},
subcategory: {
description: 'The subcategory of the REST API operation.',
type: 'string',
},
verb: {
description: 'The API request verb.',
type: 'string',
},
requestPath: {
description: 'The API request path.',
type: 'string',
},
},
}
export default schema