fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1816 from shemsiu/main

Allow scheme Property to Be Case-Insensitive in securitySchemeObjectToAuthObject Function

authored by

Lubos and committed by
GitHub
2faa3ead 50e7ea71

+8 -5
+5
.changeset/chilled-rules-matter.md
··· 1 + --- 2 + "@hey-api/openapi-ts": patch 3 + --- 4 + 5 + Allow `scheme` property to be case-insensitive
+3 -5
packages/openapi-ts/src/plugins/@hey-api/sdk/plugin.ts
··· 188 188 } 189 189 190 190 if (securitySchemeObject.type === 'http') { 191 - if ( 192 - securitySchemeObject.scheme === 'bearer' || 193 - securitySchemeObject.scheme === 'basic' 194 - ) { 191 + const scheme = securitySchemeObject.scheme.toLowerCase(); 192 + if (scheme === 'bearer' || scheme === 'basic') { 195 193 return { 196 - scheme: securitySchemeObject.scheme, 194 + scheme: scheme as 'bearer' | 'basic', 197 195 type: 'http', 198 196 }; 199 197 }