LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

Reslang fails when importing a namespace that defines a subresource #86

Closed dimatkach closed 4 years ago

dimatkach commented 4 years ago

In ns1:

namespace {
    title "NS1"
    version 0.1.0
}

resource Foo {
   id: int
}

subresource Foo::Bar {
   id: int
}

In ns2:

namespace {
    title "n2"
    version 0.1.0
}

import ns1

Now reslang ns1 fails with Reslang error: Cannot find definition for Foo

liveandrew commented 4 years ago

corrected here: 520a3a23d156e514d4763ec571515b3abceda774