Skip to content

Commit ed6fa86

Browse files
committed
add filename in openapi-schema frontmatter docs
1 parent f0c6f1b commit ed6fa86

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

api-playground/openapi-setup.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,24 @@ openapi-schema: "schema-key"
508508

509509
</CodeGroup>
510510

511+
If you have the schemas with the same name in multiple files, you can also specify the OpenAPI file:
512+
513+
<CodeGroup>
514+
515+
```mdx Example
516+
---
517+
openapi-schema: en-schema.json OrderItem
518+
---
519+
```
520+
521+
```mdx Format
522+
---
523+
openapi-schema: "path-to-schema-file schema-key"
524+
---
525+
```
526+
527+
</CodeGroup>
528+
511529
## Webhooks
512530

513531
Webhooks are HTTP callbacks that your API sends to notify external systems when events occur. Webhooks are supported in OpenAPI 3.1+ documents.

0 commit comments

Comments
 (0)