Skip to content

Commit d65a71c

Browse files
committed
Added ability to manually trigger workflows, enabled workflows for all branches, updated openapi-generator-cli command, clean-up
1 parent be87474 commit d65a71c

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

.github/workflows/broken-links.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
name: broken links?
12
'on':
23
push:
3-
branches: main
4+
branches:
5+
- "**"
46
schedule:
57
- cron: 0 16 * * *
6-
name: broken links?
8+
workflow_dispatch:
79
jobs:
810
linkChecker:
911
runs-on: ubuntu-latest

.github/workflows/sonar.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ name: Sonar
22
'on':
33
push:
44
branches:
5-
- main
5+
- "**"
66
pull_request_target:
77
branches:
8-
- main
8+
- "**"
99
types: [opened, synchronize, reopened, labeled]
1010
schedule:
1111
- cron: 0 16 * * *
12+
workflow_dispatch:
1213
jobs:
1314
sonarcloud:
1415
name: Sonar

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ name: Build & Test
22
'on':
33
push:
44
branches:
5-
- main
5+
- "**"
66
pull_request:
7-
types:
8-
- opened
9-
- synchronize
10-
- reopened
7+
branches:
8+
- "**"
119
schedule:
1210
- cron: 0 16 * * *
11+
workflow_dispatch:
1312
jobs:
1413
build:
1514
runs-on: ubuntu-latest

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ decrypted_response_payload = decrypt_payload(body, config)
128128
The above can be either stored to a file or passed to 'FieldLevelEncryptionConfig' as dictionary:
129129
```python
130130
config_dictionary = {
131-
"paths": {...},
132-
(...)
131+
"paths": {},
132+
133133
"decryptionKey": "./path/to/your/private.key",
134134
"oaepPaddingDigestAlgorithm": "SHA256"
135135
}
@@ -182,9 +182,9 @@ Output:
182182
"to": {
183183
"encryptedFoo": {
184184
"iv": "7f1105fb0c684864a189fb3709ce3d28",
185-
"encryptedKey": "67f467d1b653d98411a0c6d3c(...)ffd4c09dd42f713a51bff2b48f937c8",
186-
"encryptedData": "b73aabd267517fc09ed72455c2(...)dffb5fa04bf6e6ce9ade1ff514ed6141",
187-
"publicKeyFingerprint": "80810fc13a8319fcf0e2e(...)82cc3ce671176343cfe8160c2279",
185+
"encryptedKey": "67f467d1b653d98411a0c6d3cffd4c09dd42f713a51bff2b48f937c8",
186+
"encryptedData": "b73aabd267517fc09ed72455c2dffb5fa04bf6e6ce9ade1ff514ed6141",
187+
"publicKeyFingerprint": "80810fc13a8319fcf0e2e82cc3ce671176343cfe8160c2279",
188188
"oaepHashingAlgorithm": "SHA256"
189189
}
190190
}
@@ -204,10 +204,10 @@ response = {
204204
"to": {
205205
"encryptedFoo": {
206206
"iv": "e5d313c056c411170bf07ac82ede78c9",
207-
"encryptedKey": "e3a56746c0f9109d18b3a2652b76(...)f16d8afeff36b2479652f5c24ae7bd",
208-
"encryptedData": "809a09d78257af5379df0c454dcdf(...)353ed59fe72fd4a7735c69da4080e74f",
207+
"encryptedKey": "e3a56746c0f9109d18b3a2652b76f16d8afeff36b2479652f5c24ae7bd",
208+
"encryptedData": "809a09d78257af5379df0c454dcdf353ed59fe72fd4a7735c69da4080e74f",
209209
"oaepHashingAlgorithm": "SHA256",
210-
"publicKeyFingerprint": "80810fc13a8319fcf0e2e(...)3ce671176343cfe8160c2279"
210+
"publicKeyFingerprint": "80810fc13a8319fcf0e2e3ce671176343cfe8160c2279"
211211
}
212212
}
213213
}
@@ -244,12 +244,12 @@ from client_encryption.api_encryption import add_encryption_layer
244244
config = {
245245
"paths": {
246246
"$": {
247-
...
247+
248248
}
249249
},
250250
"ivFieldName": "iv",
251251
"encryptedKeyFieldName": "encryptedKey",
252-
...
252+
253253
"oaepPaddingDigestAlgorithm": "SHA256"
254254
}
255255

@@ -270,14 +270,14 @@ This method will add the field level encryption in the generated OpenApi client,
270270
OpenAPI client can be generated, starting from your OpenAPI Spec using the following command:
271271

272272
```shell
273-
java -jar openapi-generator-cli.jar generate -i openapi-spec.yaml -l python -o out
273+
openapi-generator-cli generate -i openapi-spec.yaml -l python -o out
274274
```
275275

276276
Client library will be generated in the `out` folder.
277277

278278
See also:
279279

280-
- [OpenAPI Generator (executable)](https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli)
280+
- [OpenAPI Generator CLI Installation](https://openapi-generator.tech/docs/installation/)
281281

282282
##### Usage of the `api_encryption.add_encryption_layer`:
283283

@@ -306,12 +306,12 @@ To use it:
306306
Example:
307307

308308
```python
309-
request_body = {...}
309+
request_body = {}
310310
response = MyServiceApi(api_client).do_some_action_post(body=request_body)
311311
# requests and responses will be automatically encrypted and decrypted
312312
# accordingly with the configuration object used
313313

314-
# ... use the (decrypted) response object here ...
314+
# use the (decrypted) response object here
315315
decrypted = response.json()
316316

317317
```

0 commit comments

Comments
 (0)