Skip to content

Commit

Permalink
Added missing SwaggerOptions.uiConfig.supportedSubmitMethods. Issue: f…
Browse files Browse the repository at this point in the history
  • Loading branch information
roeeyud committed Jun 29, 2022
1 parent 69f94fc commit f58d93b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export type FastifySwaggerUiConfigOptions = Partial<{
} | false
tryItOutEnabled: boolean
validatorUrl: string | null
supportedSubmitMethods: Array<'get' | 'post' | 'put' | 'delete' | 'patch' | 'options'>
}>

export type FastifySwaggerInitOAuthOptions = Partial<{
Expand Down
1 change: 1 addition & 0 deletions test/types/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const uiConfig: FastifySwaggerUiConfigOptions = {
defaultModelExpandDepth: 1,
validatorUrl: null,
layout: 'BaseLayout',
supportedSubmitMethods: ['get'],
};
const initOAuth: FastifySwaggerInitOAuthOptions = {
scopes: ['openid', 'profile', 'email', 'offline_access'],
Expand Down

0 comments on commit f58d93b

Please sign in to comment.