raml-org / raml-java-parser

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

queryParameters in nested traits are not handled well #558

Open techpavan opened 6 years ago

techpavan commented 6 years ago

Nested traits are not parsed while processing the queryParameter property.

Reproducer: https://github.com/techpavan/raml-java-parser-issues/tree/master/1

Below are the raml and parsing result from reproducer for quick reference:

RAML

traits:
  trait1:
    queryParameters:
      param1:
        type: string
      param2:
        type: string
        required: false

  trait2:
    is: trait1

/resource1:
  get:
    is: trait1

/resource2:
  get:
is: trait2

Output

Path: /resource1
    Parameter: param1
    Parameter: param2

Path: /resource2

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

Paulo-Branco commented 6 years ago

Any updates on this?