Replies: 2 comments
-
hello @Rajesh-KG , and so the authorization header will be in 99% of the case then as of today there is several way to document specific , you can leverage the description field , and or the bearerFormat to provide custom format if required (this is unlikely) but still Oauth2 mentionned the mac token |
Beta Was this translation helpful? Give feedback.
-
Assuming this was sufficiently answered due to lack of further response; closing. |
Beta Was this translation helpful? Give feedback.
-
I've a requirement to provide example value for access token for Oauth type security schemes.
My request will look like this.
curl
-X POST
-H "Content-Type: application/json"
-H "Authorization: my-oauthtoken 0000.xxxxxxxxx"
I tried to set Authorization header in parameters object. But, it violates the openapi specification.
And there is no way to provide 'example' in securityScheme object. Is there any alternative ways to provide example for Authorization.
Notes auth type:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions