mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 09:05:54 +03:00
[GH-ISSUE #1710] Code generator for Swift OpenAPI #1703
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1703
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sparklydust on GitHub (Jul 6, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1710
Description
WWDC23 show us a new way to work with HTTP server APIs. Could it be possible to implement it within the Code Generator feature of Proxyman?
Why this feature/change is important?
As it is a new feature from Apple to develop Swift application, it would be very helpful to have the Code Generator feature on Proxyman for this solution.
It can help us understand faster how to create a request with this new package plugin.
@NghiaTranUIT commented on GitHub (Jul 7, 2023):
I'm not sure if it's possible 🤔
From what I know, Swift OpenAPI requires the
openapi.yamland some runtime packages in order to generate the code. It's a lot of work if I support it in Proxyman app.You can copy your URL as cURL, then using it on Swift OpenAPI ?
@Sparklydust commented on GitHub (Jul 7, 2023):
This tikcet was just a suggestion of adding a new feature in Proxyman as I was reading the documentation and ran into the Code Generator section.
Feel free to close the issue if you think that it would be too much work.
@NghiaTranUIT commented on GitHub (Oct 26, 2023):
Hi @Sparklydust May I ask:
@Sparklydust commented on GitHub (Oct 26, 2023):
Hi @NghiaTranUIT
Yes, I meant to generate the
yamlfile for the OpenAPI feature like it is mentioned in the [Proxyman Documentation(https://docs.proxyman.io/advanced-features/code-generator) for theSwift + URLSessionas an example.@NghiaTranUIT commented on GitHub (Oct 26, 2023):
Thanks. I guess I can support it by converting to HAR or cURL, then converting back to OpenAPI 3.0. The reason is there are some npm libraries can easily do it.