swift-openapi-generator
swift-openapi-generator copied to clipboard
[Generator] Add support of deepObject style in query params
Motivation
The generator changes for: apple/swift-openapi-generator
Depends on https://github.com/apple/swift-openapi-runtime/pull/100 landing first and getting released, and the version dependency being bumped here.
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
Adapted snippet tests (SnippetBasedReferenceTests)
Thanks @kstefanou52 for taking the time to tackle this. We'll park this PR review until we land the runtime PR.
@kstefanou52 Ok please bump the runtime dependency to 1.4.0 in Package.swift and you should be able to finish the generator changes.
@czechboy0 Done! I have created some tests, but I'm not sure if you would like to add more. Could you please suggest any additional tests you think might be necessary? Thank you!
Just checking in on this one. Is it ready for review again? (Thanks for the effort here!)
Hi @simonjbeaumont! Unfortunately some tests are failing, I'll work on this on weekend and I'll let you know. Cheers!
Hi @kstefanou52 - do you expect to be able to come back to finish this? š It's also okay if you can't and someone else will pick up where you left off.
@czechboy0 I'm apologising for my late response. I'll try to catch up and complete the PR by the end of the week.
Hi @kstefanou52 - let us know if you need any help with this? I think it just needs to be updated from the main branch and a conflict resolved, but otherwise might be good to go?
Hello @czechboy0 and @arthurcro, I've made some progress, but I'm facing an issue with one of the unit tests. The code appears to work as expected, but I suspect there may be a problem with the runtime library. Iād appreciate your thoughts on this; more details can be found here.
~~Can you elaborate? The link doesn't really say what the issue is - what are you seeing and what are you expecting?~~
Never mind, found your other comment.
Hey @czechboy0, I just opened the runtime PR. Please let me know if there are any additional tests we should add. Thanks!