Closed Narkhip closed 8 years ago
What version of the parser do you use?
v0.2.5-rc2, using it from the API Designer
According to what I see from your sample it seems that parser behaves pretty correctly.
As you may see from:
https://github.com/raml-org/raml-spec/blob/raml-10-rc2/versions/raml-10/raml-10.md#single-example and from https://github.com/raml-org/raml-spec/issues/239
using value:
as the top level element of examples serves as a sign that actual example content is located inside, so it validates string "Silver" against Org
and correctly complains that value of example should be an object.
P.S. Please let me know if you see any other kind of problems with it.
Regards, Pavel
In the following example the parser throws a problem in line 29. If the
value
property is renamed to something differently it works.