Azure / autorest.python

Extension for AutoRest (https://github.com/Azure/autorest) that generates Python code
MIT License
79 stars 57 forks source link

Type http not allowed during schema validation but specified in OpenAPI specification #2819

Open patrickpschu opened 4 months ago

patrickpschu commented 4 months ago

Describe the bug type http not allowed in bearAuth but specfied in OpenAPI 3.0

info | AutoRest core version selected from configuration: ^3.7.0. info | Loading AutoRest core 'C:\Users\PatrickPS.Chu.autorest\@autorestcore@3.10.2\nodemodules\@autorest\core\dist' (3.10.2) info | Loading AutoRest extension '@autorest/python' (latest->6.13.17) info | Loading AutoRest extension '@autorest/modelerfour' (~4.23.5->4.23.7)

Command used:
autorest --input-file=../docs/swagger.json --python --output-folder=output/ --namespace=test

Expected behavior Expected type http would be allowed in components > securitySchemes > bearerAuth > type)

iscai-msft commented 1 month ago

we don't have a specific http credential, @patrickpschu I don't think I have enough information in this issue. Can you link me your spec, what it currently generates as, and what you'd like to see? Thanks!