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.

Question about WhitelistedNamespacePrefixes

See original GitHub issue

Is it conceived that this property does not affect the printing of the class itself? I observe empty classes in the output.

WhitelistedNamespacePrefixes = new[] { }:

namespace System.IdentityModel.Tokens.Jwt
{
    public static class JwtSecurityTokenExtensions { }
}

WhitelistedNamespacePrefixes = new[] { "System.IdentityModel.Tokens.Jwt" }:

namespace System.IdentityModel.Tokens.Jwt
{
    public static class JwtSecurityTokenExtensions
    {
        public static bool CheckGrantOperation(this System.IdentityModel.Tokens.Jwt.JwtSecurityToken token, string operation) { }
        public static string[] GetGrantOperations(this System.IdentityModel.Tokens.Jwt.JwtSecurityToken token) { }
        public static string GetUserLogin(this System.IdentityModel.Tokens.Jwt.JwtSecurityToken token) { }
    }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sungam3rcommented, Mar 1, 2023

Could this be a special case that we haven’t considered given that this type contains extension methods that extend an excluded type?

@danielmarbach I added new option in #286 to deal with it.

0reactions
sungam3rcommented, Feb 28, 2023
Read more comments on GitHub >

github_iconTop Results From Across the Web

AppProject deny namespaces does not respect cluster ...
Any allow destination rule (i.e. a rule which isn't prefixed with !) permits the destination; AND no deny destination (i.e. a rule which...
Read more >
XSLT Whitelist with XPATH - xml
I would like to create the XSLT 1.0 transformation for whitelisting XML elements with XPATH. My XML looks like this:
Read more >
Namespaces, why are they necessary for prefixes?
Are you always required to have prefixes with namespaces? If not are you always required to have namespaces with prefixes? If so why?...
Read more >
Unknown namespace prefix error in AEM - Experience League
At the bottom of the Namespaces window, click New. Enter the URI and the Namespace mapping, then click OK. Enter the prefix of...
Read more >
Solved: Add a prefix namespace in XML using XSLT
Hi Dheerj,. If I understand this question correctly, you need to generate JSON output from the XML input. All you need is the...
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