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: docs/openapi/quickstart.mdx
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ icon: 'rocket'
60
60
</Step>
61
61
62
62
<Steptitle="Define Paths and Operations">
63
-
Describe your API endpoints with `PathItem` and `Operation`. Use `Reference::to()` to point at component schemas rather than embedding them repeatedly.
63
+
Describe your API endpoints with `PathItem` and `Operation`. Use typed `Reference` shortcuts to point at component schemas rather than embedding them repeatedly.
@@ -260,7 +260,7 @@ Most objects provide named constructors so you rarely need `new`. Here's a quick
260
260
261
261
## Working with References
262
262
263
-
`Reference::to()` creates a `$ref`to any component registered in `Components`. Typed named constructors on `Reference` build the correct pointer automatically — no need to write out the full path.
263
+
Typed named constructors on `Reference` build the correct `$ref`pointer automatically — no need to write out the full path. Use `Reference::to()` as an escape hatch when you need to reference a path outside the standard component buckets.
0 commit comments