Release version
v7.0.3
Describe the bug
Here is the scenario:
I have an API Spec with Query parameter required: true.
When I import it in APIM, I uncheck the box "Include required query parameters in operation templates"
This will cause the Query parameters not to be covered to template parameters. So far good.
I extract using API Ops and republish . In publisher override, I have
translateRequiredQueryParameters: query
However publisher publishes with query parameters as url template.
When I run publisher in trace mode, I can see it is making 2 PUT calls.
1st PUT call have "translateRequiredQueryParameters : query"
2nd PUT call have no attribute translateRequiredQueryParameters . So default would be template
(This may be the reason )
Expected behavior
publisher override translateRequiredQueryParameters: query
publisher should honor this override and should not convert "required" query parameters to url template parameters
Actual behavior
publisher always convert "required" query parameters to url template regardless of the setting in publisher override configuration file
Reproduction Steps
import a spec which have a query param as required
verify the api spec is imported with required query parameter as query parameter (not as template parameter)
extract with apiops
create a publisher api override configuration
apis:
- name: <api name>
properties:
translateRequiredQueryParameters: query
run publisher
validate the API that is published. Will find that the "required" query parameters are converted to template parameter
//I tried with and without double quotes around query. same result
Release version
v7.0.3
Describe the bug
Here is the scenario:
I have an API Spec with Query parameter required: true.
When I import it in APIM, I uncheck the box "Include required query parameters in operation templates"
This will cause the Query parameters not to be covered to template parameters. So far good.
I extract using API Ops and republish . In publisher override, I have
translateRequiredQueryParameters: query
However publisher publishes with query parameters as url template.
When I run publisher in trace mode, I can see it is making 2 PUT calls.
1st PUT call have "translateRequiredQueryParameters : query"
2nd PUT call have no attribute translateRequiredQueryParameters . So default would be template
(This may be the reason )
Expected behavior
publisher override translateRequiredQueryParameters: query
publisher should honor this override and should not convert "required" query parameters to url template parameters
Actual behavior
publisher always convert "required" query parameters to url template regardless of the setting in publisher override configuration file
Reproduction Steps
//I tried with and without double quotes around query. same result