credentials are required when no security is an option alongside a security pattern #1380
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Take the following valid spec:
And run the following command line:
autorest --input-file=mixed-security.yaml --v3 --clear-output-folder --output-folder=mixed-security-client --typescript
And observe that the resultant client has the following constructor:
i.e. that
credentials
is a required field, despite the security for that endpoint including the none authentication option described at OAI/OpenAPI-Specification#14 (comment)I would expect the Data constructor to have an optional credentials parameter in this scenario.
The text was updated successfully, but these errors were encountered: