Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Error parsing: while validating trait properties resource type cannot define child resources #178

@priyavivek1

Description

@priyavivek1

"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions