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

fix(o2k): limit path-param names to 32 chars #153

Merged
merged 2 commits into from
Feb 15, 2024
Merged

fix(o2k): limit path-param names to 32 chars #153

merged 2 commits into from
Feb 15, 2024

Commits on Feb 15, 2024

  1. fix(o2k): limit path-param names to 32 chars

    the path-parameter-names need to be predictable, because they might reuse them in other
    places (request-transformer template for example). So truncation or truncation and replacing
    the last x-chars with a hash for uniqueness, will not work, since the names become unpredictable.
    
    Then I think the only alternative is to throw an error in OAS2kong, and have the user preprocess
    them to shorter names, such that they are well informed about the new names in use. More work,
    but no surprises.
    Tieske committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    2360fd5 View commit details
    Browse the repository at this point in the history
  2. add tests

    Tieske committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    df4de54 View commit details
    Browse the repository at this point in the history