forked from loafle/openapi-generator-original
[Java] [Kotlin] (#14876) fix use of isBasic conditions - do not use HttpBearerAuth (or HttpBasicAuth) for other http auth methods (such as http signature auth or custom schemes) (#15220)
* remove http signature from test yaml when not supported * do not use HttpBearerAuth for signature auth or other unsupported http auth method ignore unsupported http auth method unless generated code would not compile (in which case, an exception is thrown) * [Java] fix use of isBasic condition * [kotlin] fix use of isBasic condition
This commit is contained in:
@@ -61,7 +61,6 @@ paths:
|
||||
"405":
|
||||
description: Invalid input
|
||||
security:
|
||||
- http_signature_test: []
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
@@ -83,7 +82,6 @@ paths:
|
||||
"405":
|
||||
description: Validation exception
|
||||
security:
|
||||
- http_signature_test: []
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
@@ -133,7 +131,6 @@ paths:
|
||||
"400":
|
||||
description: Invalid status value
|
||||
security:
|
||||
- http_signature_test: []
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
@@ -175,7 +172,6 @@ paths:
|
||||
"400":
|
||||
description: Invalid tag value
|
||||
security:
|
||||
- http_signature_test: []
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
@@ -2399,7 +2395,4 @@ components:
|
||||
bearerFormat: JWT
|
||||
scheme: bearer
|
||||
type: http
|
||||
http_signature_test:
|
||||
scheme: signature
|
||||
type: http
|
||||
|
||||
|
||||
Reference in New Issue
Block a user