nidi3 / raml-tester

Test if a request/response matches a given raml definition
Apache License 2.0
71 stars 14 forks source link

Multiple URI parameters not recognized #81

Open urbanusjam opened 7 years ago

urbanusjam commented 7 years ago

Does the raml-tester support multiple URI parameters for the same resource? I have the following endpoint that defines two URI parameters in its path:

/Messages:
  /{MessageId}{mediaTypeExtension}:
    uriParameters:
      MessageSid:
        type: string
        required: true
      mediaTypeExtension:
        enum: [ .json, .xml ]
        type: string
        required: false

However, the validation fails with the error below:

Resource '/Messages/12345.json' is not defined

If I remove the {mediaTypeExtension}, the validation passes.