You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##### • First Level Field Encryption and Decryption <aname="encrypting-decrypting-first-level-field-jwe"></a>
471
+
472
+
To have encrypted results in the first level field or to decrypt the first level field, specify `encryptedValueFieldName` to be the same as `obj` (for encryption) or `element` (for decryption):
473
+
474
+
Example of configuration:
475
+
476
+
```js
477
+
constconfig= {
478
+
paths: [
479
+
{
480
+
path:"/resource1",
481
+
toEncrypt: [
482
+
{
483
+
/* path to element to be encrypted in request json body */
484
+
element:"sensitive",
485
+
/* path to object where to store encryption fields in request json body */
486
+
obj:"encryptedData",
487
+
},
488
+
],
489
+
toDecrypt: [
490
+
{
491
+
/* path to element where to store decrypted fields in response object */
### Integrating with OpenAPI Generator API Client Libraries <aname="integrating-with-openapi-generator-api-client-libraries"></a>
470
551
471
552
[OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) generates API client libraries from [OpenAPI Specs](https://github.com/OAI/OpenAPI-Specification).
0 commit comments