-
-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Labels
bug 🔥Something isn't workingSomething isn't workingclientClient package relatedClient package related
Description
Description
In our application using hey-api with Nuxt, we are encountering an issue where the body of a POST request is being stringified before it undergoes validation with Zod. This results in Zod throwing an error, as it expects an body of type object but receives a body of type string instead.
Reproducible example or configuration
const pet = {
name: "biggy",
photoUrls: [""],
};
await addPet({
composable: "$fetch",
body: pet,
})OpenAPI specification (optional)
System information (optional)
No response
Metadata
Metadata
Assignees
Labels
bug 🔥Something isn't workingSomething isn't workingclientClient package relatedClient package related