You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For teams interested in working directly with the SDK's source files, our SDK
85
+
For teams interested in working directly with the SDK's source files, our SDK
86
86
leverages TypeScript `v5` features. To directly consume these source files,
87
87
your environment should support TypeScript version 5 or higher. This
88
88
requirement applies to scenarios where direct access to the source is
@@ -132,7 +132,7 @@ const result = await sdk.doTheThing({
132
132
The TypeScript SDK generates a type for each request, response, and shared model in your OpenAPI schema. Each model is backed by a [Zod](https://zod.dev/) schema that validates the objects at runtime.
133
133
134
134
<Callouttitle="Note"type="info">
135
-
It's important to note that data validation is run on user input when calling
135
+
It's important to note that data validation is run on user input when calling
136
136
an SDK method _and on the subsequent response data from the server_. If
137
137
servers are not returning data that matches the OpenAPI spec, then validation
138
138
errors are thrown at runtime.
@@ -187,9 +187,9 @@ All generated models have this overall structure. By pinning the types with runt
187
187
</Spotlight>
188
188
189
189
<Callouttitle="Note"type="info">
190
-
It's important to note that Zod is a peer dependency.
190
+
It's important to note that Zod is a peer dependency.
191
191
192
-
The reason for listing Zod as a peer dependency is to use the user's installation of Zod if they have it. Every popular package manager, except for Yarn, says, "If the user doesn't have a peer dependency installed, I'm gonna go ahead and install it and make it available".
192
+
The reason for listing Zod as a peer dependency is to use the user's installation of Zod if they have it. Every popular package manager, except for Yarn, says, "If the user doesn't have a peer dependency installed, I'm gonna go ahead and install it and make it available".
193
193
194
194
Why does Speakeasy use peer dependencies? There are situations where the `node_modules` tree ends up with multiple Zod versions if the user has a different version of Zod installed than what the SDK requires. For example:
0 commit comments