Skip to content

Conversation

htunnicliff
Copy link
Member

Changes

Disallow extra properties in swr-openapi init types, closes #2410.

Original changes proposed and created by @yashpandit (many thanks!)

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

@htunnicliff htunnicliff requested a review from a team as a code owner August 18, 2025 16:27
@htunnicliff htunnicliff requested a review from kerwanp August 18, 2025 16:27
Copy link

changeset-bot bot commented Aug 18, 2025

🦋 Changeset detected

Latest commit: c51427a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swr-openapi Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for openapi-ts canceled.

Name Link
🔨 Latest commit c51427a
🔍 Latest deploy log https://app.netlify.com/projects/openapi-ts/deploys/68a364706de0220008e23141

Copy link
Contributor

github-actions bot commented Aug 18, 2025

size-limit report 📦

Path Size
packages/openapi-fetch/dist/index.mjs 6.7 KB (0%)

Copy link
Contributor

@yashpandit yashpandit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it, thanks! will close my PR :)

@htunnicliff htunnicliff force-pushed the htunnicliff/swr-openapi/exact-properties branch from 569ae2f to c51427a Compare August 18, 2025 17:35
} from "swr/infinite";
import type { TypesForGetRequest } from "./types.js";
import { useCallback, useDebugValue } from "react";
import type { Exact } from "type-fest";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to know about this lib!

@htunnicliff htunnicliff merged commit 48134b5 into main Aug 18, 2025
14 checks passed
@htunnicliff htunnicliff deleted the htunnicliff/swr-openapi/exact-properties branch August 18, 2025 20:36
@openapi-ts-bot openapi-ts-bot mentioned this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhanced Type Safety for Query and Path Parameters in swr-openapi
2 participants