Skip to content

Commit 1733ddf

Browse files
committed
remove unsupported signature security scheme from generation of samples
the signature scheme was added by OpenAPITools#6058 for jersey2-experimental (now jersey2-java8) only but this change affected all samples; and it was not removed when there is another special yaml file with http-signature-test (OpenAPITools#4993) was introduced
1 parent bebc68b commit 1733ddf

File tree

77 files changed

+4
-3431
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4
-3431
lines changed

bin/configs/java-okhttp-gson.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
generatorName: java
22
outputDir: samples/client/petstore/java/okhttp-gson
33
library: okhttp-gson
4-
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature-okhttp-gson.yaml
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml
55
templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
artifactId: petstore-okhttp-gson
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ paths:
4343
'405':
4444
description: Invalid input
4545
security:
46-
- http_signature_test: []
4746
- petstore_auth:
4847
- 'write:pets'
4948
- 'read:pets'
@@ -63,7 +62,6 @@ paths:
6362
'405':
6463
description: Validation exception
6564
security:
66-
- http_signature_test: []
6765
- petstore_auth:
6866
- 'write:pets'
6967
- 'read:pets'
@@ -110,7 +108,6 @@ paths:
110108
'400':
111109
description: Invalid status value
112110
security:
113-
- http_signature_test: []
114111
- petstore_auth:
115112
- 'write:pets'
116113
- 'read:pets'
@@ -151,7 +148,6 @@ paths:
151148
'400':
152149
description: Invalid tag value
153150
security:
154-
- http_signature_test: []
155151
- petstore_auth:
156152
- 'write:pets'
157153
- 'read:pets'
@@ -1197,12 +1193,6 @@ components:
11971193
type: http
11981194
scheme: bearer
11991195
bearerFormat: JWT
1200-
http_signature_test:
1201-
# Test the 'HTTP signature' security scheme.
1202-
# Each HTTP request is cryptographically signed as specified
1203-
# in https://datatracker.ietf.org/doc/draft-cavage-http-signatures/
1204-
type: http
1205-
scheme: signature
12061196
schemas:
12071197
Foo:
12081198
type: object

modules/openapi-generator/src/test/resources/3_0/javascript/petstore-with-fake-endpoints-models-for-testing.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,32 +1169,6 @@ paths:
11691169
application/json:
11701170
schema:
11711171
$ref: '#/components/schemas/HealthCheckResult'
1172-
/fake/http-signature-test:
1173-
get:
1174-
tags:
1175-
- fake
1176-
summary: test http signature authentication
1177-
operationId: fake-http-signature-test
1178-
parameters:
1179-
- name: query_1
1180-
in: query
1181-
description: query parameter
1182-
required: optional
1183-
schema:
1184-
type: string
1185-
- name: header_1
1186-
in: header
1187-
description: header parameter
1188-
required: optional
1189-
schema:
1190-
type: string
1191-
security:
1192-
- http_signature_test: []
1193-
requestBody:
1194-
$ref: '#/components/requestBodies/Pet'
1195-
responses:
1196-
200:
1197-
description: The instance started successfully
11981172
servers:
11991173
- url: 'http://{server}.swagger.io:{port}/v2'
12001174
description: petstore server
@@ -1272,9 +1246,6 @@ components:
12721246
type: http
12731247
scheme: bearer
12741248
bearerFormat: JWT
1275-
http_signature_test:
1276-
type: http
1277-
scheme: signature
12781249
schemas:
12791250
Foo:
12801251
type: object

modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,32 +1185,6 @@ paths:
11851185
application/json:
11861186
schema:
11871187
$ref: '#/components/schemas/HealthCheckResult'
1188-
/fake/http-signature-test:
1189-
get:
1190-
tags:
1191-
- fake
1192-
summary: test http signature authentication
1193-
operationId: fake-http-signature-test
1194-
parameters:
1195-
- name: query_1
1196-
in: query
1197-
description: query parameter
1198-
required: optional
1199-
schema:
1200-
type: string
1201-
- name: header_1
1202-
in: header
1203-
description: header parameter
1204-
required: optional
1205-
schema:
1206-
type: string
1207-
security:
1208-
- http_signature_test: []
1209-
requestBody:
1210-
$ref: '#/components/requestBodies/Pet'
1211-
responses:
1212-
200:
1213-
description: The instance started successfully
12141188
servers:
12151189
- url: 'http://{server}.swagger.io:{port}/v2'
12161190
description: petstore server
@@ -1288,9 +1262,6 @@ components:
12881262
type: http
12891263
scheme: bearer
12901264
bearerFormat: JWT
1291-
http_signature_test:
1292-
type: http
1293-
scheme: signature
12941265
schemas:
12951266
Foo:
12961267
type: object

modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ paths:
4242
'405':
4343
description: Invalid input
4444
security:
45-
- http_signature_test: []
4645
- petstore_auth:
4746
- 'write:pets'
4847
- 'read:pets'
@@ -65,7 +64,6 @@ paths:
6564
'405':
6665
description: Validation exception
6766
security:
68-
- http_signature_test: []
6967
- petstore_auth:
7068
- 'write:pets'
7169
- 'read:pets'
@@ -113,7 +111,6 @@ paths:
113111
'400':
114112
description: Invalid status value
115113
security:
116-
- http_signature_test: []
117114
- petstore_auth:
118115
- 'write:pets'
119116
- 'read:pets'
@@ -158,7 +155,6 @@ paths:
158155
'400':
159156
description: Invalid tag value
160157
security:
161-
- http_signature_test: []
162158
- petstore_auth:
163159
- 'write:pets'
164160
- 'read:pets'
@@ -349,7 +345,7 @@ paths:
349345
summary: Find purchase order by ID
350346
description: >-
351347
For valid response try integer IDs with value <= 5 or > 10. Other values
352-
will generated exceptions
348+
will generate exceptions
353349
operationId: getOrderById
354350
parameters:
355351
- name: order_id
@@ -856,7 +852,7 @@ paths:
856852
format: int64
857853
responses:
858854
'400':
859-
description: Someting wrong
855+
description: Something wrong
860856
/fake/outer/number:
861857
post:
862858
tags:
@@ -1208,46 +1204,6 @@ paths:
12081204
application/json:
12091205
schema:
12101206
$ref: '#/components/schemas/HealthCheckResult'
1211-
/fake/http-signature-test:
1212-
get:
1213-
tags:
1214-
- fake
1215-
summary: test http signature authentication
1216-
operationId: fake-http-signature-test
1217-
parameters:
1218-
- name: query_1
1219-
in: query
1220-
description: query parameter
1221-
required: optional
1222-
schema:
1223-
type: string
1224-
- name: header_1
1225-
in: header
1226-
description: header parameter
1227-
required: optional
1228-
schema:
1229-
type: string
1230-
security:
1231-
- http_signature_test: []
1232-
requestBody:
1233-
$ref: '#/components/requestBodies/Pet'
1234-
responses:
1235-
200:
1236-
description: The instance started successfully
1237-
/fake/any_type_body:
1238-
post:
1239-
tags:
1240-
- fake
1241-
summary: test any type request body
1242-
operationId: fakeAnyTypeRequestBody
1243-
requestBody:
1244-
content:
1245-
application/json:
1246-
schema:
1247-
type: object
1248-
responses:
1249-
200:
1250-
description: OK
12511207
servers:
12521208
- url: 'http://{server}.swagger.io:{port}/v2'
12531209
description: petstore server
@@ -1325,12 +1281,6 @@ components:
13251281
type: http
13261282
scheme: bearer
13271283
bearerFormat: JWT
1328-
http_signature_test:
1329-
# Test the 'HTTP signature' security scheme.
1330-
# Each HTTP request is cryptographically signed as specified
1331-
# in https://datatracker.ietf.org/doc/draft-cavage-http-signatures/
1332-
type: http
1333-
scheme: signature
13341284
schemas:
13351285
Foo:
13361286
type: object

samples/client/petstore/csharp/OpenAPIClient/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ Class | Method | HTTP request | Description
108108
*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
109109
*DefaultApi* | [**FooGet**](docs/DefaultApi.md#fooget) | **GET** /foo |
110110
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
111-
*FakeApi* | [**FakeHttpSignatureTest**](docs/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
112111
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
113112
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
114113
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
@@ -241,7 +240,3 @@ Class | Method | HTTP request | Description
241240

242241
- **Type**: HTTP bearer authentication
243242

244-
245-
### http_signature_test
246-
247-

samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**FakeHealthGet**](FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
8-
[**FakeHttpSignatureTest**](FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
98
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
109
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
1110
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
@@ -94,84 +93,6 @@ No authorization required
9493
[[Back to README]](../README.md)
9594

9695

97-
## FakeHttpSignatureTest
98-
99-
> void FakeHttpSignatureTest (Pet pet, string query1 = null, string header1 = null)
100-
101-
test http signature authentication
102-
103-
### Example
104-
105-
```csharp
106-
using System.Collections.Generic;
107-
using System.Diagnostics;
108-
using Org.OpenAPITools.Api;
109-
using Org.OpenAPITools.Client;
110-
using Org.OpenAPITools.Model;
111-
112-
namespace Example
113-
{
114-
public class FakeHttpSignatureTestExample
115-
{
116-
public static void Main()
117-
{
118-
Configuration.Default.BasePath = "http://petstore.swagger.io:80/v2";
119-
120-
var apiInstance = new FakeApi(Configuration.Default);
121-
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
122-
var query1 = "query1_example"; // string | query parameter (optional)
123-
var header1 = "header1_example"; // string | header parameter (optional)
124-
125-
try
126-
{
127-
// test http signature authentication
128-
apiInstance.FakeHttpSignatureTest(pet, query1, header1);
129-
}
130-
catch (ApiException e)
131-
{
132-
Debug.Print("Exception when calling FakeApi.FakeHttpSignatureTest: " + e.Message );
133-
Debug.Print("Status Code: "+ e.ErrorCode);
134-
Debug.Print(e.StackTrace);
135-
}
136-
}
137-
}
138-
}
139-
```
140-
141-
### Parameters
142-
143-
144-
Name | Type | Description | Notes
145-
------------- | ------------- | ------------- | -------------
146-
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
147-
**query1** | **string**| query parameter | [optional]
148-
**header1** | **string**| header parameter | [optional]
149-
150-
### Return type
151-
152-
void (empty response body)
153-
154-
### Authorization
155-
156-
[http_signature_test](../README.md#http_signature_test)
157-
158-
### HTTP request headers
159-
160-
- **Content-Type**: application/json, application/xml
161-
- **Accept**: Not defined
162-
163-
164-
### HTTP response details
165-
| Status code | Description | Response headers |
166-
|-------------|-------------|------------------|
167-
| **200** | The instance started successfully | - |
168-
169-
[[Back to top]](#)
170-
[[Back to API list]](../README.md#documentation-for-api-endpoints)
171-
[[Back to Model list]](../README.md#documentation-for-models)
172-
[[Back to README]](../README.md)
173-
174-
17596
## FakeOuterBooleanSerialize
17697

17798
> bool FakeOuterBooleanSerialize (bool? body = null)

0 commit comments

Comments
 (0)