29 lines
728 B
JavaScript
29 lines
728 B
JavaScript
#!/usr/bin/env node
|
|
// 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
|
|
|
|
export default {
|
|
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',
|
|
},
|
|
},
|
|
}
|