From 788e2971c41a966a1fc7f4263c1b7818b57091fa Mon Sep 17 00:00:00 2001 From: "g. nicholas d'andrea" Date: Thu, 29 Aug 2024 14:03:02 +0200 Subject: [PATCH] Add pointer templates to specification pages --- packages/web/spec/pointer/template.mdx | 18 ++++++++++++++++++ packages/web/src/schemas.ts | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 packages/web/spec/pointer/template.mdx diff --git a/packages/web/spec/pointer/template.mdx b/packages/web/spec/pointer/template.mdx new file mode 100644 index 0000000..6f7109e --- /dev/null +++ b/packages/web/spec/pointer/template.mdx @@ -0,0 +1,18 @@ +--- +sidebar_position: 7 +--- + +import SchemaViewer from "@site/src/components/SchemaViewer"; + +# Pointer templates + +This format provides the concept of a **pointer template** to allow +deduplicating representations. Pointer templates are defined to specify the +variables they expect in scope and the pointer definition that uses those +variables. + + diff --git a/packages/web/src/schemas.ts b/packages/web/src/schemas.ts index a7b8f60..65a2a87 100644 --- a/packages/web/src/schemas.ts +++ b/packages/web/src/schemas.ts @@ -116,6 +116,10 @@ export const schemaIndex: SchemaIndex = { href: "/spec/pointer/expression" }, + "schema:ethdebug/format/pointer/template": { + href: "/spec/pointer/template" + }, + ...Object.entries({ Literal: { title: "Literal values schema",