Comments (3)
It should be a test case inside list. The order of the statements is what's
causing the issue (although it shouldn't matter in this context).
If you swap the order, "uses quisling" before "key" statement, it will work
properly. It's because the leaf item referenced by "key" doesn't yet exist
in the schema node being resolved since "uses" has yet to be resolved.
I'll see how I can change this up a bit to have the list resolve handler
process any uses statement before any other statements.
On Fri, Aug 5, 2016 at 1:54 AM Henrik Hugo [email protected] wrote:
The following code references a key in a grouping and fails parsing.
module foo {
grouping quisling {
leaf first {
type string;
}
leaf second {
type int32;
}
}
container top {
list kek {
key "first";
uses quisling;
}
}
}ExpressionError: foo/top/kek/key[first] referenced key items do not have
leaf elementsI can write a test for this case but I'm unsure where it would fit.
list.coffee or maybe grouping.coffee—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#19, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6KbKdL2ApSxtW3Z8KvqEVT5cJ0o7sLks5qcvpfgaJpZM4Jde9P
.Peter Lee
Corenova Technologies
+1 310 400 6450
[email protected]
from yang-js.
Ok, thanks for the tip.
from yang-js.
@demonicblue - thanks for catching this issue. Please feel free to review the commit to see how I've resolved it.
from yang-js.
Related Issues (20)
- Unable to build:web HOT 3
- Update documentation using ES6 syntax HOT 1
- [Question] Working with Multiple Schemas HOT 1
- yang extension field compilation error HOT 2
- Improve Yang.import to support directory search and extension order
- validation of Read-only data HOT 2
- Validation errors should show "path" to failure and/or name of failing portion. HOT 2
- Mandatory Fields in Read Only Data HOT 1
- Not working on Windows platform? HOT 2
- Schema extension does not work as described in the TUTORIAL.md HOT 2
- Unable to import ietf-ip.yang HOT 2
- Unable to import ietf-netconf-monitoring.yang
- Unable to import o-ran-compression-factors.yang HOT 3
- MaxListenersExceededWarning: Possible EventEmitter memory leak detected.
- Issue with importing Yang file with Extensions HOT 1
- when parse the file '[email protected]' with yang-js, there is 'unable to locate' error HOT 1
- is this plan supportting RFC 7950?
- Error happened during using yang-js in browser
- i'm trying to parse the yang file but it not import the file why ?
- when i'm parsing file it getting error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yang-js.