Skip to content

address change request #1

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

Closed
wants to merge 11 commits into from
Closed

address change request #1

wants to merge 11 commits into from

Conversation

alephao
Copy link

@alephao alephao commented Apr 3, 2024

Hello @kstefanou52, this pull request addresses the change requests pending in your pull-request to the main repo apple#100

  • fix URISerializer for deepObject and its tests
  • add deepObject tests to URIParser
  • fix URICodingRoundtrip tests
  • remove parseBetweenCharacters function
  • add preconditionFailure to code that should not be reachable (serializeArray with deepObject)

kstefanou52 and others added 7 commits March 7, 2024 19:02
### Motivation

The runtime changes for:
apple/swift-openapi-generator#259

### Modifications

Added `deepObject` style to serializer & parser in order to support nested keys
on query parameters.

### Result

Support nested keys on query parameters.

### Test Plan

These are just the runtime changes, tested together with generated
changes.
This breaks the tests since the implementation is not correct
This makes URISerializer tests pass again, but breaks URICodingRoundtrip
add a preconditionFailure to a serialzieArray when style is deepObject. That code should not be reachable
### Motivation

The runtime changes for:
apple/swift-openapi-generator#259

### Modifications

Added `deepObject` style to serializer & parser in order to support nested keys
on query parameters.

### Result

Support nested keys on query parameters.

### Test Plan

These are just the runtime changes, tested together with generated
changes.
@kstefanou52 kstefanou52 force-pushed the feature/deep_object_style branch from 28265a7 to c2ab707 Compare April 4, 2024 14:16
alephao added 2 commits April 9, 2024 09:15
- using percent-encoded instead of plus for deepObject configuration
- throw errors for invalid state deepObject + explode=false
- add oai spec url to deepObject case doccomment
@kstefanou52 kstefanou52 force-pushed the feature/deep_object_style branch from c2ab707 to 76951d7 Compare April 9, 2024 14:39
@alephao alephao closed this Apr 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants