зеркало из https://github.com/github/docs.git
clean up openapi build errors (#19963)
This commit is contained in:
Родитель
83e33cc9bb
Коммит
0ae4979f41
|
@ -1,6 +1,7 @@
|
||||||
// This schema is used to validate each generated operation object at build time
|
// This schema is used to validate each generated operation object at build time
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
type: 'object',
|
||||||
|
|
||||||
// Every operation must have these props
|
// Every operation must have these props
|
||||||
required: [
|
required: [
|
||||||
|
@ -44,7 +45,7 @@ module.exports = {
|
||||||
verb: {
|
verb: {
|
||||||
description: 'The HTTP method',
|
description: 'The HTTP method',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: ['GET', 'PUT', 'POST', 'DELETE', 'PATCH', 'HEAD']
|
enum: ['get', 'put', 'post', 'delete', 'patch', 'head']
|
||||||
},
|
},
|
||||||
requestPath: {
|
requestPath: {
|
||||||
description: 'The URL path',
|
description: 'The URL path',
|
||||||
|
|
Загрузка…
Ссылка в новой задаче