Swift OpenAPI Generator generates the Swift client or server code needed to make API calls or implement API servers. Credit: Per Grunditz / Shutterstock Apple has released the stable 1.0 version of the Swift OpenAPI Generator 1.0, for generating Swift client and server code from an OpenAPI document, Swift developers announced on January 31. Swift OpenAPI Generator generates the code needed to make API calls or implement API servers. The code is generated automatically at build time, so it is in sync with the OpenAPI document and does not need to be committed to a source repository. OpenAPI is an open standard for describing the behavior of HTTP services, and features an ecosystem of tools. Swift OpenAPI Generator works with OpenAPI Specification versions 3.0 and 3.1. It supports streaming request and response bodies, backed by AsyncSequence, enabling use cases such as large payloads without buffering and JSON event streams. It supports common content types including JSON, URL-encoded form, Base64, plain text, and raw bytes, all of which are represented as value types with type-safe properties, and offers flexible client, server, and middleware abstractions, decoupling the generated code from the HTTP client library and web framework. With Swift OpenAPI Generator, code can be generated to make type-safe requests to an API server with any HTTP client library. The plugin also can generate code to bootstrap an HTTP server with any web framework using business logic that is decoupled from network requests. Related content news Go language evolving for future hardware, AI workloads The Go team is working to adapt Go to large multicore systems, the latest hardware instructions, and the needs of developers of large-scale AI systems. By Paul Krill Nov 15, 2024 3 mins Google Go Generative AI Programming Languages analysis And the #1 Python IDE is . . . PyCharm, VS Code, and five other popular Python IDEs duke it out. Which one do you think takes home the prize? By Serdar Yegulalp Nov 15, 2024 2 mins Python Programming Languages Software Development news JDK 24: The new features in Java 24 21 features are proposed for the next version of Java including quantum-resistant cryptographic keys designed to secure Java apps against future quantum computing attacks. By Paul Krill Nov 15, 2024 11 mins Java Programming Languages Software Development news Rust Foundation moves forward on C++ and Rust interoperability Problem statement released to address the challenges to making cross-language development with C++ and Rust more accessible and approachable. By Paul Krill Nov 14, 2024 2 mins C++ Rust Programming Languages Resources Videos