Skip to content

Commit

Permalink
docs: ✏️ add inference section for JSON schema generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 23, 2024
1 parent 43ed7f3 commit 42658c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/content/docs/reference/scripts/schemas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ const schema = defSchema(...)
$`Use ${schema} for the JSON schema.`
```

## inference

Use `JSONSchema.infer` to generate a JSON schema from a JSON object.

## Validation

When a JSON/YAML payload is generated with the schema identifier,
Expand Down

0 comments on commit 42658c5

Please sign in to comment.