Skip to content

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

@vbtang

Description

@vbtang

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions