Skip to content

Commit

Permalink
FIX: typo in validation>const keyword (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfiel authored Oct 15, 2024
1 parent b863c4a commit 5e37c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/2020-12/validation/const.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ related:
keyword: type
---

The `const` keyword in restricts an instance to a specific value. Its usage is functionally similar to an `enum` with a single value. Instances validate successfully only if their property value deeply matches the specified constant.
The `const` keyword restricts an instance to a specific value. Its usage is functionally similar to an `enum` with a single value. Instances validate successfully only if their property value deeply matches the specified constant.

* Applies to various JSON data types, including numbers, strings, booleans, objects, and arrays.
* Takes precedence over other validation keywords like `type` and `enum`.
Expand Down

0 comments on commit 5e37c0d

Please sign in to comment.