Skip to content

v0.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Oct 18:45
· 54 commits to main since this release
2a6cbe8

Minor Changes

  • #9 6364870 Thanks @christoph-fricke! - Added installation and complete usage guide to the documentation.

  • #5 d15a0c2 Thanks @christoph-fricke! - Added createOpenApiHttp(...) to create a thin, type-safe wrapper around MSW's http that uses openapi-ts paths:

    import type { paths } from "./openapi-ts-definitions";
    
    const http = createOpenApiHttp<paths>();
    
    // Define handlers with fully typed paths, path params, and request/response bodies
    const handler = http.get("/pets/{id}", () => {
      /* ... */
    });
    
    // Fallback to default http implementation
    const catchAll = http.untyped.all("*", () => {
      /* ... */
    });