apple / apple/swift-openapi-generator

Support parameter names with +, with extra allowed characters

Open
#386 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.