Skip to content

Commit 7e5aebf

Browse files
authored
Merge pull request #2723 from jeremykohn/api-typos
Fix typos in API.md ('Names links' -> 'Named links', 'unknownMisees' -> 'unknownMisses')
2 parents 2cde8a3 + a10ea85 commit 7e5aebf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ Supports the methods of the [`any()`](#any) type.
19991999

20002000
When links are combined with `any.when()` rules, the rules are applied after the link is resolved to the linked schema.
20012001

2002-
Names links are recommended for most use cases as they are easy to reason and understand, and when mistakes are made, they simply error with invalid link message. Relative links are often hard to follow, especially when they are nested in array or alternatives rules. Absolute links are useful only when the schema is never reused inside another schema as the root is the run-time root of the schema being validated, not the current schema root.
2002+
Named links are recommended for most use cases as they are easy to reason and understand, and when mistakes are made, they simply error with invalid link message. Relative links are often hard to follow, especially when they are nested in array or alternatives rules. Absolute links are useful only when the schema is never reused inside another schema as the root is the run-time root of the schema being validated, not the current schema root.
20032003

20042004
Note that named links must be found in a direct ancestor of the link. The names are searched by iterating over the chain of schemas from the current schema to the root. To reach an uncle or cousin, you must use the name of a common ancestor such as a grandparent and then walk down the tree.
20052005

@@ -3582,7 +3582,7 @@ Additional local context properties:
35823582
```ts
35833583
{
35843584
knownMisses: Array<string>, // Labels of all the missing values
3585-
unknownMisees: number // Count of missing values that didn't have a label
3585+
unknownMisses: number // Count of missing values that didn't have a label
35863586
}
35873587
```
35883588

@@ -3604,7 +3604,7 @@ Some values were expected to be present in the array and are missing. This error
36043604
Additional local context properties:
36053605
```ts
36063606
{
3607-
unknownMisees: number // Count of missing values that didn't have a label
3607+
unknownMisses: number // Count of missing values that didn't have a label
36083608
}
36093609
```
36103610

0 commit comments

Comments
 (0)