nogates / brujula Goto Github PK
View Code? Open in Web Editor NEWYet another Ruby RAML parser aiming for RAML 1.0 fully support
Yet another Ruby RAML parser aiming for RAML 1.0 fully support
I'd like to help bring this project to full RAML 1.0 support.
Is that something you would be interested in helping with @nogates? Not sure if you have time. If you do great. If you don't, then maybe we can try to find people who do. Thoughts?
A RAML 1.0 document with Protocols defined in the root node causes Brujula to exit with:
Uncaught exception: undefined method `each' for "HTTP":String
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/map_object.rb:90:in `block in flatten_children'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/map_object.rb:89:in `each'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/map_object.rb:89:in `each_with_object'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/map_object.rb:89:in `flatten_children'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/map_object.rb:81:in `each_flatted_child'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/map_object.rb:12:in `initialize'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/object_builder.rb:16:in `new'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/object_builder.rb:16:in `call'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/object_parser.rb:21:in `block in call'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/object_parser.rb:20:in `each'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/object_parser.rb:20:in `call'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/object_parser.rb:5:in `call'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/object.rb:25:in `initialize'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/raml/v1_0/root.rb:25:in `initialize'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/raml/definition.rb:39:in `new'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/raml/definition.rb:39:in `load_raml_objects'
/Users/rwhitworth/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/brujula-0.2.0/lib/brujula/raml/definition.rb:25:in `root'
/Users/rwhitworth/Documents/git/rwhitworth/ruby/brujula/brujula.rb:8:in `<top (required)>'
An example document can be found here: https://github.com/kamilzasada/manageably-doc/blob/master/manageably-1.0.raml
The issue looks to stem from handling of array values in the root node.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.