OpenAPITools / OpenAPITools/openapi-generator

[REQ][Swift] Date as URLQueryItem

Open
#6,906 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

When sending a date as URL query param and using ISO 8601 date formatter the resulting string may contain a plus ('+') sign. As per apple documentation this plus sign isn't percent encoded. Most of web servers will translate this plus sign into space and backend will receive invalid date format.

Describe the solution you'd like

Enhance current implementation to replace plus signs in date strings with percent encoded value (%2B).

Describe alternatives you've considered

Another feature request might be adding a possibility to specify multiple date formatter per request body/params and response.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the Swift client implementation that formats dates for URL query parameters, then inspect how ISO 8601 values containing plus signs are encoded. Done means the plus sign is sent as %2B without breaking other query parameters, with coverage for the affected date value.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.