Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resolve the $ref to same calss name but with different namespace? #358

Open
vbtang opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@vbtang
Copy link

vbtang commented Sep 11, 2024

hi,
If I have two classes with same class name but in different namespace, when I generate schema for TestSameNamespace, how do I tell the schema loader that the $ref schems is from TestNamespace.Test1 rather than Test1?
Do I have to rename one of them to prevent the ambiguity? Or do we have any settings to prevent this?

    // Test1.dlll
    class Test1
    {
        public int Test;
    }
    // TestNameSpace.dll
    namespace TestNamespace
    {
        public class Test1
        {
            public string Test;
        }
    }
    using namespace TestNamespace;
    class TestSameNamespace
    {
        public Test1 Test1;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant