raml-java-parser icon indicating copy to clipboard operation
raml-java-parser copied to clipboard

Issue getting query parameters from resourceType

Open juanchib opened this issue 5 years ago • 1 comments

Given this raml

#%RAML 1.0
title: test-date-spec
version: v1
baseUri: http://localhost:8081

resourceTypes:
  read:
    get:
    
traits:
  searchable:
    usage: Apply this trait to resources which supports datetime range searching
    queryParameters:
      dateFrom:
        type: date-only
        example: "2017-10-02"
        required: false
      dateTo:
        type: date-only
        example: "2018-10-02"
        required: false

/testuri:
  is: [searchable]
  type: read

Is not possible to get the query parameters from the method, I've added a PR with a test https://github.com/raml-org/raml-java-parser/pull/683

juanchib avatar Mar 05 '20 13:03 juanchib

Looking into this tonight.

jpbelang avatar Mar 16 '20 18:03 jpbelang