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

queryParameters in nested traits are not handled well #558

Open
techpavan opened this issue Sep 26, 2018 · 1 comment
Open

queryParameters in nested traits are not handled well #558

techpavan opened this issue Sep 26, 2018 · 1 comment

Comments

@techpavan
Copy link
Contributor

techpavan commented Sep 26, 2018

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
Copy link

Any updates on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants