{"repo":"apple/swift-openapi-runtime","free":true,"listed":false,"github":"https://github.com/apple/swift-openapi-runtime","clone":"git clone https://github.com/apple/swift-openapi-runtime.git","description":"API package for code generated by Swift OpenAPI Generator.","language":"Swift","stars":271,"topics":["middleware","openapi","swift","transport"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Swift OpenAPI Generator Runtime This library provides common abstractions and helper functions used by the client and server code generated by [Swift OpenAPI Generator][0]. Overview It contains: - Common types used in the code generated by the swift-openapi-generator package plugin. - Protocol definitions for pluggable layers, including ClientTransport , ServerTransport , ClientMiddleware , and ServerMiddleware . Many of the HTTP currency types used are defined in the Swift HTTP Types library. Tip: Check out the example projects focused on middlewares. Usage Add the package dependency in your Package.swift : Next, in your target, add OpenAPIRuntime to your dependencies: The next step depends on your use case. Using Swift OpenAPI Generator for code generation The generated code depends on types from this library. Check out the adoption guides in the [Swift OpenAPI Generator documentation][1] to see how the packages fit together. Implementing transports and middlewares Swift OpenAPI Generator generates client and server code that is designed to be used with pluggable transports and middlewares. Implement a new transport or middleware by providing a type that adopts one of the protocols from the runtime library: ClientTransport ClientMiddleware ServerTransport ServerMiddleware You can also publish your transport or middleware as a Swift package to allow others to use it with their generated code. Documentation To learn more, check out the full [documentation][2]. [0]: https://gi","default_branch":null,"files":null,"tree":[],"storefront":"/r/apple","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apple/swift-openapi-runtime/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}