Skip to content

Commit fd9cb18

Browse files
committed
docs: fix readme
1 parent c793fbd commit fd9cb18

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,14 @@ Please note that these benchmarks refer to validation only. _json-schema-library
168168

169169
## SchemaNode methods
170170

171-
[**addRemoteSchema**](#addremote) ·
171+
[**addRemoteSchema**](#addremoteschema) ·
172172
[**compileSchema**](#compileSchema-1) ·
173173
[**createSchema**](#createSchema) ·
174174
[**getChildSelection**](#getchildselection) ·
175175
[**getData**](#getdata) ·
176176
[**getNode**](#getnode) ·
177-
[**getNodeChild**](#getchild) ·
178-
[**getNodeRef**](#getref) ·
177+
[**getNodeChild**](#getnodechild) ·
178+
[**getNodeRef**](#getnoderef) ·
179179
[**getNodeRoot**](#getnoderoot) ·
180180
[**reduceNode**](#reducenode) ·
181181
[**toDataNodes**](#todatanodes) ·
@@ -355,6 +355,8 @@ const childNodes: JsonSchema[] = jsonSchema.getChildSelection("content");
355355
expect(childNodes.map((n) => n.schema)).to.deep.equal([{ type: "string" }, { type: "number" }]);
356356
```
357357

358+
</details>
359+
358360
### getData
359361

360362
`getData` creates input data from a JSON Schema that is valid to the schema. Where possible, the JSON Schema `default` property will be used to initially setup input data. Otherwise, the first values encountered (enum values, initial values, etc.) are used to build up the json-data.
@@ -674,6 +676,8 @@ const schema = root.getNodeChild("title", { title: 4 })?.schema;
674676
expect(schema).to.deep.eq({ type: "number" });
675677
```
676678

679+
</details>
680+
677681
### getNodeRef
678682

679683
`getNodeRef` retrieves the SchemaNode of a `$ref` string.

0 commit comments

Comments
 (0)