question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Override authentication.def message to show name and not type? Using widdershins@3.0.0-beta0.2

See original GitHub issue

I 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: screen shot 2017-11-22 at 11 13 03 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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Nov 22, 2017

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 😃

1reaction
ghostcommented, Nov 22, 2017

Thanks. The new version took care of it 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found