Skip to content

Matching rule with superfluous chars #122

Description

@pherk

It may be due to my lack of understanding as a non-expert in Open-API spec, but I have a basic problem.
My observation:

  • given following rule in api.json
    "/Patient": {
      "get": {
        "tags": [
          "query",
          "Patient"
        ],
        "operationId": "npatient:search",
        "summary": "search Patient type",
        "parameters": [ 
  ...snip...
  • rule is matched by url: $base/Patient12345
    My expectation would be that an error is thrown. Actually the slash is missing for another rule "/Patient/{id}".
    The function router:create-regexp seems anchoring at the beginning but not the end of string

regards
Peter

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