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
We noticed that after executing the apictl init command and checking initiated Project/Meta-information/api.yaml file, only the accessControlRoles value was removed from the api.yaml file.
When Importing APIs Via Dev First Approach and Initialize the API Project using OpenAPI/Swagger Specification[1] approach only the issue is observed.
But, if we manually edit the initiated api.yaml file with the accessControlRoles and import the API, the restrictions in API are added properly.
The problem doesn't happen during import, but during project initialization.
Login to an environment
apictl login dev -u admin -k
Initialize an API Project using the OpenAPI/Swagger Specification approach petstore.yaml.zip swagger.yaml.zip,
apictl init SwaggerPetstore-1.0.0 --definition petstore.yaml --oas /Users/chaveeka/Documents/Issues/TIETOOEMSUB-493/tien/swagger.yaml
After executing the apictl init command you will observe that in the SwaggerPetstore-1.0.0/Meta-information/api.yaml , the accessControlRoles value will get removed.
Affected Component
APICTL
Version
APIM 3.2.0.298
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered:
Description
Hi Team,
We noticed that after executing the apictl init command and checking initiated Project/Meta-information/api.yaml file, only the accessControlRoles value was removed from the api.yaml file.
When Importing APIs Via Dev First Approach and Initialize the API Project using OpenAPI/Swagger Specification[1] approach only the issue is observed.
But, if we manually edit the initiated api.yaml file with the accessControlRoles and import the API, the restrictions in API are added properly.
The problem doesn't happen during import, but during project initialization.
[1] - https://apim.docs.wso2.com/en/3.2.0/learn/api-controller/importing-apis-via-dev-first-approach/
Regards
-Imesh
Steps to Reproduce
Steps to Reproduce,
apictl add-env -e dev --apim https://localhost:9443
apictl login dev -u admin -k
petstore.yaml.zip
swagger.yaml.zip,
apictl init SwaggerPetstore-1.0.0 --definition petstore.yaml --oas /Users/chaveeka/Documents/Issues/TIETOOEMSUB-493/tien/swagger.yaml
Affected Component
APICTL
Version
APIM 3.2.0.298
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: