You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/2020-12/core/defs.markdown
+36-77Lines changed: 36 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,102 +20,61 @@ related:
20
20
keyword: $dynamicRef
21
21
---
22
22
23
-
The `$defs` keyword provides a standardized way to define reusable subschemas within a single schema document, promoting modularity, reducing code duplication, and improving schema organization. Each subschema within `$defs` has a unique name, acting as a location for referencing, without directly affecting validation.
23
+
The `$defs` keyword is a container for storing re-usable schemas within a
24
+
schema resource, which can be referenced using the [`$ref`]({{< ref
25
+
"2020-12/core/ref" >}}) or [`$dynamicRef`]({{< ref "2020-12/core/dynamicref"
26
+
>}}) keywords. From a software engineering point of view, this keyword is
27
+
analogous to defining _internal_ helper functions as part of a larger program.
24
28
25
-
## Examples
29
+
{{<best-practice>}}
26
30
27
-
{{<schema `Schema that describes the age of a person`>}}
0 commit comments