raml-java-parser
raml-java-parser copied to clipboard
Issue getting query parameters from resourceType
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
Looking into this tonight.