From 42658c50ba4c8ecfe8d7a13444d043331a13a042 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 23 Dec 2024 08:30:03 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20add=20inference=20?= =?UTF-8?q?section=20for=20JSON=20schema=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/content/docs/reference/scripts/schemas.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/content/docs/reference/scripts/schemas.mdx b/docs/src/content/docs/reference/scripts/schemas.mdx index 473d6a9f7..b8bfbff09 100644 --- a/docs/src/content/docs/reference/scripts/schemas.mdx +++ b/docs/src/content/docs/reference/scripts/schemas.mdx @@ -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,