-
Notifications
You must be signed in to change notification settings - Fork 129
Update server tutorial codebase, fixes #333 #338
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
Conversation
This is great, @tib, thank you! Would you be open to also updating the other 2 tutorials, to keep all 3 in sync? |
@swift-server-bot add to allowlist |
Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/server.main.2.swift
Outdated
Show resolved
Hide resolved
Yes, of course I can do that, do you want me to open separate PRs or alter this one? |
You can do it in this one. |
Ok with https://github.com/apple/swift-openapi-runtime/releases/tag/0.3.4 released, please see if you can simplify the example and it actually works for you :) |
let emoji = String(emojis.randomElement()!)
return .ok(.init(body: .plainText(.init(emoji)))) I already changed that. 😉 |
This pull request aims to fix the server tutorial sample code.
Sample snippets updated to use Swift 5.9 and Swift OpenAPI generator tools 0.3.0+