diff --git a/fern/products/docs/docs.yml b/fern/products/docs/docs.yml index fbcabce93..fcb838ff2 100644 --- a/fern/products/docs/docs.yml +++ b/fern/products/docs/docs.yml @@ -111,6 +111,10 @@ navigation: - page: Runnable endpoint path: ./pages/component-library/default-components/runnable-endpoint.mdx icon: fa-duotone fa-play-circle + - page: Schema + path: ./pages/component-library/default-components/schema.mdx + icon: fa-duotone fa-brackets-curly + hidden: true - page: Step path: ./pages/component-library/default-components/steps.mdx icon: fa-duotone fa-list-ol @@ -325,4 +329,7 @@ navigation: paginated: false api-name: mcp-tools slug: fern-api-reference + # must be included to use the schema component + - api: API reference + api-name: docs-yml diff --git a/fern/products/docs/pages/component-library/default-components/endpoint-schema-snippet.mdx b/fern/products/docs/pages/component-library/default-components/endpoint-schema-snippet.mdx index 563fc8ed1..45ec92090 100644 --- a/fern/products/docs/pages/component-library/default-components/endpoint-schema-snippet.mdx +++ b/fern/products/docs/pages/component-library/default-components/endpoint-schema-snippet.mdx @@ -5,6 +5,8 @@ description: 'Reference an endpoint schema from your API Reference' The `` component displays endpoint schemas from your API Reference. By default, it renders the complete schema, or you can use the `selector` prop to display specific parts like request body, response, path parameters, or query parameters. +To display any type definition by name (not limited to endpoint schemas), use the [``](/docs/writing-content/components/schema) component. + Markdown-rich field descriptions aren't yet supported and will display as plain text. See the [Request path](#request-path) example below. diff --git a/fern/products/docs/pages/component-library/default-components/schema.mdx b/fern/products/docs/pages/component-library/default-components/schema.mdx new file mode 100644 index 000000000..bb7147e96 --- /dev/null +++ b/fern/products/docs/pages/component-library/default-components/schema.mdx @@ -0,0 +1,36 @@ +--- +title: Schema +description: Display any type definition from your API Reference +--- + +The `` component displays type definitions from your API Reference anywhere in your documentation. Use it to reference data models, request objects, or response types outside of your API Reference pages. Field descriptions support markdown formatting. + +Similar to [``](/docs/writing-content/components/endpoint-schema-snippet), but accepts any type name rather than being limited to endpoint-specific schemas. + + + The component only discovers types referenced by endpoints. Types exclusively used by websockets or webhooks won't be available. If multiple APIs have the same type name, the component returns the first match. + + +## Usage + +The component works with [API references already configured in your `docs.yml`](/learn/docs/api-references/generate-api-ref). This example displays the `AIChatConfig` type from the `docs-yml` API: + +
+
+ +
+
+ +```jsx Markdown + +``` + +## Properties + + + The name of the type to display. The component will search for this type across all endpoints in your API definition. + + + + Optional CSS class name for custom styling. + \ No newline at end of file diff --git a/fern/products/sdks/overview/php/changelog/2025-11-25.mdx b/fern/products/sdks/overview/php/changelog/2025-11-25.mdx index 3272545da..c0e2ae54d 100644 --- a/fern/products/sdks/overview/php/changelog/2025-11-25.mdx +++ b/fern/products/sdks/overview/php/changelog/2025-11-25.mdx @@ -3,7 +3,7 @@ ## 1.22.2 -**`(fix):`** Add missing