Skip to content

Commit 9c50468

Browse files
committed
Added security check for operations
1 parent d2489bf commit 9c50468

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-typescript-codegen",
3-
"version": "0.26.5",
3+
"version": "0.26.6",
44
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
55
"author": "Ferdi Koomen",
66
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",

src/templates/core/ApiRequestOptions.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ export type ApiRequestOptions = {
1212
readonly mediaType?: string;
1313
readonly responseHeader?: string;
1414
readonly errors?: Record<number, string>;
15-
readonly secured: boolean;
15+
readonly security: {
16+
secured: boolean;
17+
optional: boolean;
18+
};
1619
};

0 commit comments

Comments
 (0)