Skip to content

Commit

Permalink
Add pointer templates to specification pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gnidan committed Sep 28, 2024
1 parent 29df1e1 commit 788e297
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/web/spec/pointer/template.mdx
Original file line number Diff line number Diff line change
@@ -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.

<SchemaViewer
schema={{
id: "schema:ethdebug/format/pointer/template"
}}
/>
4 changes: 4 additions & 0 deletions packages/web/src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 788e297

Please sign in to comment.