Azure / Azure/data-api-builder
[Bug]: Incorrect OpenAPI Specifiaction causes error in Swagger
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 22h
- PR unite (30g)
- 9
Descrizione
### What happened?
I am running DAB in development mode in Azure Redhat Openshift with AzureAD as AuthenticationProvider and "authenticated:*" on all Entities.
When testing the Rest API using Swagger DAB is adding a "Authorization" of type Header parameter on all endpoints.

However, when using the [Try It Out] feature the Authorization parameter is not added to the request header. This seem to be because parameters of name "Authorization" and type Header should be ignored according to the OpenAPI specification. The incorrect behaviour and how to handle it in swagger is documented here:
https://github.com/swagger-api/swagger-ui/issues/5643#issuecomment-538412105
### Version
1.1.7
### What database are you using?
Azure SQL
### What hosting model are you using?
Custom Docker host
### Which API approach are you accessing DAB through?
REST
### Relevant log output
```Text
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.