Description
When using apictl init --definition, any apiPolicies defined under the data section of the definition file are silently dropped and do not appear in the generated api.yaml.
Steps to Reproduce
Steps to Reproduce
-
Create an OAS file (petstore.yaml) and a definition file (api-definition-issue1.yaml) with apiPolicies defined under the data section and operationPolicies defined within the API operations.
-
Run the following command to initialize the API project:
apictl init PetStoreICA-Issue1 \
--oas petstore.yaml \
--definition api-definition-issue1.yaml \
-f
-
Inspect the generated api.yaml file.
apiPolicies are absent (silently dropped).
operationPolicies defined within operations are present and preserved correctly.
Version
4.5.0
Environment Details (with versions)
No response
Description
When using apictl init --definition, any apiPolicies defined under the data section of the definition file are silently dropped and do not appear in the generated api.yaml.
Steps to Reproduce
Steps to Reproduce
Create an OAS file (
petstore.yaml) and a definition file (api-definition-issue1.yaml) withapiPoliciesdefined under thedatasection andoperationPoliciesdefined within the API operations.Run the following command to initialize the API project:
Inspect the generated
api.yamlfile.apiPoliciesare absent (silently dropped).operationPoliciesdefined within operations are present and preserved correctly.Version
4.5.0
Environment Details (with versions)
No response