"Error parsing: while validating trait properties
resource type cannot define child resources". I am getting this error while parsing RAML using raml-js-parser.
Seems to be working fine in Java but getting this issues in Javascript one.
Sample RAML:
/abc:
type: Sample
description: individual-to-party relationships
- Sample:
is: []
.<>
/{key}: Key is child resources here to Sample resource Type
is: []
.<>
It throws following error
Error parsing: while validating trait properties
resource type cannot define child resources
in "1.1.4/ramlName", line 690, column 7:
/{key}:
^
Seems RAML specification is correct as per RAML0.8 but parser gives errror