Skip to content
Snippets Groups Projects
Unverified Commit e548414e authored by chris48s's avatar chris48s Committed by GitHub
Browse files

convert 'style' param to enum (#9853)

* convert 'style' param to enum

* update test
parent 7404d4e2
No related branches found
No related tags found
No related merge requests found
...@@ -241,10 +241,10 @@ function category2openapi(category, services) { ...@@ -241,10 +241,10 @@ function category2openapi(category, services) {
name: 'style', name: 'style',
in: 'query', in: 'query',
required: false, required: false,
description: description: 'If not specified, the defautl style is "flat".',
'One of: flat (default), flat-square, plastic, for-the-badge, social',
schema: { schema: {
type: 'string', type: 'string',
enum: ['flat', 'flat-square', 'plastic', 'for-the-badge', 'social'],
}, },
example: 'flat', example: 'flat',
}, },
......
...@@ -88,9 +88,11 @@ const expected = { ...@@ -88,9 +88,11 @@ const expected = {
name: 'style', name: 'style',
in: 'query', in: 'query',
required: false, required: false,
description: description: 'If not specified, the defautl style is "flat".',
'One of: flat (default), flat-square, plastic, for-the-badge, social', schema: {
schema: { type: 'string' }, enum: ['flat', 'flat-square', 'plastic', 'for-the-badge', 'social'],
type: 'string',
},
example: 'flat', example: 'flat',
}, },
logo: { logo: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment