Skip to content

Commit e24f925

Browse files
Documentation updates from Promptless
1 parent 195504e commit e24f925

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

fern/products/sdks/overview/python/configuration.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,19 @@ groups:
149149
<ParamField path="skip_formatting" type="bool" default="false" required={false} toc={true}>
150150
</ParamField>
151151
152+
<ParamField path="skip_validation" type="bool" default="false" required={false} toc={true}>
153+
<Warning>This is an experimental feature that should be used sparingly.</Warning>
154+
155+
When enabled, disables Pydantic validation for API responses. This ensures that Pydantic does not immediately fail if the model being returned from an API does not exactly match the Pydantic model.
156+
157+
This is meant to add flexibility should your SDK fall behind your API, but should be used sparingly, as the type-hinting for users will still reflect the Pydantic model exactly.
158+
159+
```yaml
160+
config:
161+
skip_validation: true
162+
```
163+
</ParamField>
164+
152165
<ParamField path="timeout_in_seconds" type="number | 'infinity'" default="60" required={false} toc={true}>
153166
By default, the generator generates a client that times out after 60 seconds. You can customize this value by providing a different number or setting to `infinity` to get rid of timeouts.
154167
</ParamField>

0 commit comments

Comments
 (0)