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

queryParameters in nested traits are not handled well #558

Open
@techpavan

Description

@techpavan

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

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