Override authentication.def message to show name and not type? Using widdershins@3.0.0-beta0.2
See original GitHub issueI have two securityschemes that both are of type apiKey, but they have different names. I would like to change authentication.def to not show the type, like it does originally, but show the name. How could I do this? I’m trying to avoid this:
I had the same problem with the authentication info in the header, but that I solved by changing security.def like this:
{{? sd.type == 'apiKey' }}
* {{=sd.name}}
- Parameter Name: **{{=sd.name}}**, in: {{=sd.in}}. {{=sd.description || ''}}
instead of the original:
{{? sd.type == 'apiKey' }}
* API Key
- Parameter Name: **{{=sd.name}}**, in: {{=sd.in}}. {{=sd.description || ''}}
There it was just a matter of printing another variable. But as authentication.def calls a method (data.utils.getAuthenticationStr(data)), how can I make the same change there?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Set up Messages on iPhone - Apple Support (IS)
Go to Settings > Messages. · Tap Text Message Forwarding, then turn on any devices you want to include. · If you're not...
Read more >Set up text messaging as your verification method
Type the code sent to you through text message to your mobile device, and then select Next. The page changes to show your...
Read more >Change Messages notifications & settings - Google Support
Change Messages notifications & settings. When you get a message, you can choose to be notified with a: Sound; Vibration; Reminder. You ...
Read more >How to Make Text Messages not Show up on Lock Screen
In this quick tutorial, I will try to show you how you can very easily disable notifications previews on your iPhone. It's a...
Read more >Publishing to a mobile phone - AWS Documentation
Sending an SMS message in Amazon SNS using the console or AWS SDKs. ... For example, messages delivered to U.S. phone numbers will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Sure! We’re using Slate. Would probably have chosen Shins if we were to start now. I don’t see any wins by changing over to Shins atm so staying with Slate for now 😃
Thanks. The new version took care of it 😃