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
Copy file name to clipboardExpand all lines: fern/products/api-def/ferndef-pages/types.mdx
+1-25Lines changed: 1 addition & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,7 +282,7 @@ interface Person {
282
282
283
283
### Validating types
284
284
285
-
You can add validation constraints to your types (both aliases and references) to ensure data integrity. Validation constracts are automatically enforced in generated SDKs.
285
+
You can add validation constraints to your types (both aliases and references) to ensure data integrity. These validation constraints are included in generated SDKs for documentation purposes, but actual validation is deferred to the server.
286
286
287
287
<CodeBlock title="Fern Definition">
288
288
```yaml {8-11, 15-17}
@@ -305,30 +305,6 @@ types:
305
305
max: 150
306
306
```
307
307
</CodeBlock>
308
-
<CodeBlock title="Generated TypeScript SDK from Fern Definition">
309
-
310
-
```typescript
311
-
interface Person {
312
-
/** The person's full name */
313
-
name: string;
314
-
/** Age in years */
315
-
age: number;
316
-
}
317
-
318
-
// Validation is automatically enforced when creating Person objects
0 commit comments