зеркало из 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
|
||||
|
||||
module.exports = {
|
||||
type: 'object',
|
||||
|
||||
// Every operation must have these props
|
||||
required: [
|
||||
|
@ -44,7 +45,7 @@ module.exports = {
|
|||
verb: {
|
||||
description: 'The HTTP method',
|
||||
type: 'string',
|
||||
required: ['GET', 'PUT', 'POST', 'DELETE', 'PATCH', 'HEAD']
|
||||
enum: ['get', 'put', 'post', 'delete', 'patch', 'head']
|
||||
},
|
||||
requestPath: {
|
||||
description: 'The URL path',
|
||||
|
|
Загрузка…
Ссылка в новой задаче