apple / apple/swift-openapi-generator
Support parameter names with +, with extra allowed characters
Open
area/generator
kind/enhancement
- Dominant language
- Swift
- Stars
- 2k
- Forks
- 182
- Avg merge
- 13h 28m
- Merged PRs (30d)
- 5
Description
Support parameter names with +, with extra allowed characters.
Some OpenAPI documents use e.g. `/foo/{+bar}`, which means the `bar` variable has a larged allowed character set.
But the generator today rejects it because it looks for the parameter named exactly `+bar`, and that's not found.
Contributor guide
Research direction
Start in the generator's parameter lookup for OpenAPI path templates, reproducing the issue with `/foo/{+bar}` and a `bar` parameter. Trace why the `+` form is not matched; done means generation accepts the template and preserves the expanded character allowance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, swift
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100