val314159 / raml-python

a RAML Python Code Generator - clients and servers
Other
4 stars 1 forks source link

RAML 1.0 support #5

Open meetmangukiya opened 7 years ago

val314159 commented 7 years ago

are you saying there are missing features, or it just completely doesnt work at all?

meetmangukiya commented 7 years ago

Doesn't work at all

meetmangukiya commented 7 years ago
± % node_modules/.bin/raml-python-generator webservices.raml.yaml -o coala-webservices                                                                !10106
YAMLError: Unsupported RAML version: '#%RAML 1.0'
at Constructor.__dirname.Scanner.Scanner.scan_to_next_token (/sub/ghubby/coala/corobo/node_modules/raml-parser/lib/scanner.js:720:21)
at Constructor.__dirname.Scanner.Scanner.fetch_more_tokens (/sub/ghubby/coala/corobo/node_modules/raml-parser/lib/scanner.js:183:12)
at Constructor.__dirname.Scanner.Scanner.check_token (/sub/ghubby/coala/corobo/node_modules/raml-parser/lib/scanner.js:122:14)
at Constructor.__dirname.Parser.Parser.parse_implicit_document_start (/sub/ghubby/coala/corobo/node_modules/raml-parser/lib/parser.js:126:17)
at Constructor.__dirname.Parser.Parser.check_event (/sub/ghubby/coala/corobo/node_modules/raml-parser/lib/parser.js:62:48)
at Constructor.__dirname.Composer.Composer.getYamlRoot (/sub/ghubby/coala/corobo/node_modules/raml-parser/lib/composer.js:60:17)
at /sub/ghubby/coala/corobo/node_modules/raml-parser/lib/raml.js:226:23
at Promise.apply (/sub/ghubby/coala/corobo/node_modules/q/q.js:1122:26)
at Promise.promise.promiseDispatch (/sub/ghubby/coala/corobo/node_modules/q/q.js:752:41)
at /sub/ghubby/coala/corobo/node_modules/q/q.js:1337:14
val314159 commented 7 years ago

If you give me a simple test i'll see what i can do. Seems like it's bubbling up from a lower level.

meetmangukiya commented 7 years ago

https://gist.github.com/meetmangukiya/711fe592dad2b522b923f87e0fcace56

val314159 commented 7 years ago

Ugh. The parser this sits on top of is a mess. maybe if you update that to take the new RAML version it will work..... but maybe not :(