Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse path parameters with $ in their name #259

Open
bgilmour opened this issue Mar 4, 2021 · 0 comments
Open

Cannot parse path parameters with $ in their name #259

bgilmour opened this issue Mar 4, 2021 · 0 comments

Comments

@bgilmour
Copy link

bgilmour commented Mar 4, 2021

We're generating OAS specification sources from other sources where it's possible that we'll encounter identifiers with a dollar symbol as part of their name. In some cases these identifiers become path parameters. Consider the following snippet from an OAS specification:

paths:
  /some/path/{x$y}:
    get:
      ...
      parameters:
      - in: path
        name: x$y
        schema:
          type: string
        required: true
        description: Auto generated path parameter

Both the path template and the path parameter definition are accepted by the RepreZen Kaizen OpenAPI editor in Eclipse but the parser rejects the template with a message like the following:

[line:col]: No template for path parameter 'x$y' in path string

This is happening in version 4.0.4 of the parser. We believe that this should be a valid use case although it's perfectly possible that we missed something in the spec that says otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant