Skip to content

Commit 0ae4979

Browse files
authored
clean up openapi build errors (github#19963)
1 parent 83e33cc commit 0ae4979

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

script/rest/utils/operation-schema.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This schema is used to validate each generated operation object at build time
22

33
module.exports = {
4+
type: 'object',
45

56
// Every operation must have these props
67
required: [
@@ -44,7 +45,7 @@ module.exports = {
4445
verb: {
4546
description: 'The HTTP method',
4647
type: 'string',
47-
required: ['GET', 'PUT', 'POST', 'DELETE', 'PATCH', 'HEAD']
48+
enum: ['get', 'put', 'post', 'delete', 'patch', 'head']
4849
},
4950
requestPath: {
5051
description: 'The URL path',

0 commit comments

Comments
 (0)