raml-org / raml-java-parser

(deprecated) A RAML parser based on SnakeYAML written in Java
Other
174 stars 121 forks source link

URLs needs to be quoted? #279

Open petrochenko-pavel-a opened 8 years ago

petrochenko-pavel-a commented 8 years ago

Hi, as clarified in http://www.yaml.org/spec/1.2/spec.html#id2788859 it is allows to use ':' in side of plain scalars in such cases.

uses:
  foo: foo.raml
  bar: /bar.raml
  baz: http://acme.com/raml/baz.raml

This syntax of writing urls is pretty handy, however as well as I see from Java Parser output it is not able to handle it. To best of my understanding it is snake yaml issue (it is YAML 1.1), however RAML spec is based on YAML 1.2 specification so it should be supported.

Regards, Pavel

Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-111

jpbelang commented 8 years ago

@petrochenko-pavel-a Are you saying that http://acme.com/raml/baz.raml does not parse without quotation marks ?