raml-leanlabsio / raml2html

raml2html documentation generator
http://raml2html.leanlabs.io
MIT License
32 stars 9 forks source link

Parse Error: Cannot pass parameters to traits. #28

Open ooskapenaar opened 8 years ago

ooskapenaar commented 8 years ago

with v0.8 valid RAML like:

      [
        sortable: { fieldsList: 'firstname, lastname, activeState, employeeNo' },
        pageable
      ]

you get the following parse error:

Unable to parse at line 343 (near "[").
/Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/yaml/Parser.php 298
#0 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/yaml/Parser.php(225): Symfony\Component\Yaml\Parser->parse('[\n  sortable: {...', true, true, false)
#1 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/yaml/Parser.php(225): Symfony\Component\Yaml\Parser->parse('is:\n  [\n    sor...', true, true, false)
#2 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/yaml/Parser.php(225): Symfony\Component\Yaml\Parser->parse('type:\n  collect...', true, true, false)
#3 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/yaml/Yaml.php(68): Symfony\Component\Yaml\Parser->parse('#%RAML 0.8\ntitl...', true, true, false)
#4 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/cnam/php-raml-parser/src/Parser.php(507): Symfony\Component\Yaml\Yaml::parse('#%RAML 0.8\ntitl...', true, true)
#5 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/cnam/php-raml-parser/src/Parser.php(478): Raml\Parser->parseYaml('#%RAML 0.8\ntitl...')
#6 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/cnam/php-raml-parser/src/Parser.php(209): Raml\Parser->parseRamlString('#%RAML 0.8\ntitl...', '/Users/rrrw/Pro...', true)
#7 /Users/rrrw/Projects/contrib/raml/raml2html/src/Generator.php(55): Raml\Parser->parse('/Users/rrrw/Pro...', true)
#8 /Users/rrrw/Projects/contrib/raml/raml2html/src/Command/GenerateCommand.php(62): Cnam\Generator->parse('/Users/rrrw/Pro...')
#9 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/console/Command/Command.php(259): Cnam\Command\GenerateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(Cnam\Command\GenerateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /Users/rrrw/Projects/contrib/raml/raml2html/vendor/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /Users/rrrw/Projects/contrib/raml/raml2html/raml2html(29): Symfony\Component\Console\Application->run()
#14 {main}