vault/sdk/framework
Max Bowsher fd9cadb192
Fix multiple OpenAPI generation issues with new AST-based generator (#18554)
* Regexp metacharacter `.` should be escaped when used literally

The paths including `/.well-known/` in the Vault API could currently
technically be invoked with any random character in place of the dot.

* Replace implementation of OpenAPI path translator with regexp AST-based one

* Add changelog

* Typo fix from PR review - thanks!

Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>

* Add comment based on review feedback

* Change style of error handling as suggested in code review

* Make a further tweak to the handling of the error case

* Add more tests, testing cases which fail with the previous implementation

* Resolve issue with a test, and improve comment

---------

Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>
2023-01-31 16:27:39 -05:00
..
testdata Revert "Add mount path into the default generated openapi.json spec (#17926)" (#18617) 2023-01-10 11:16:59 -05:00
backend_test.go Allow Multiple Issuers in PKI Secret Engine Mounts - PKI Pod (#15277) 2022-05-11 12:42:28 -04:00
backend.go OpenAPI generic_mount_paths follow-up (#18663) 2023-01-17 23:07:11 -05:00
field_data_test.go Add response schema validation methods & test helpers (#18635) 2023-01-13 14:55:56 -05:00
field_data.go Add response schema validation methods & test helpers (#18635) 2023-01-13 14:55:56 -05:00
field_type.go Fix barrier key autoration config edge cases (#11541) 2021-05-05 14:39:04 -05:00
filter.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
identity_test.go Add identity templating helper to sdk/framework (#8088) 2020-01-06 10:16:52 -08:00
identity.go Add identity templating helper to sdk/framework (#8088) 2020-01-06 10:16:52 -08:00
lease_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
lease.go Patch expiration fix over from ENT (#11650) 2021-05-18 14:55:38 -07:00
openapi_test.go Fix multiple OpenAPI generation issues with new AST-based generator (#18554) 2023-01-31 16:27:39 -05:00
openapi.go Fix multiple OpenAPI generation issues with new AST-based generator (#18554) 2023-01-31 16:27:39 -05:00
path_map_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
path_map.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
path_struct_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
path_struct.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
path_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
path.go OpenAPI generic_mount_paths follow-up (#18663) 2023-01-17 23:07:11 -05:00
policy_map_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
policy_map.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
secret_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
secret.go update gofumpt to 0.3.1 and reformat the repo (#17055) 2022-09-07 17:31:20 -07:00
template.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
testing.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
wal_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
wal.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00