From b14c7898e5acdf95fee0f32b4403f9e6961c933d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 21 Feb 2026 11:44:31 +0000 Subject: [PATCH 1/2] docs: document include prop for Schema component --- .../default-components/schema.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/fern/products/docs/pages/component-library/default-components/schema.mdx b/fern/products/docs/pages/component-library/default-components/schema.mdx index 36e98ad1a..ccac1e207 100644 --- a/fern/products/docs/pages/component-library/default-components/schema.mdx +++ b/fern/products/docs/pages/component-library/default-components/schema.mdx @@ -25,6 +25,20 @@ The component works with [API references already configured in your `docs.yml`]( ``` +### Filtering fields + +Use `include` to display only specific fields, or `exclude` to hide certain fields: + +```jsx Markdown +{/* Only show these two fields */} + + +{/* Show all fields except these */} + +``` + +When both `include` and `exclude` are specified, a field must be in the `include` list **and** not in the `exclude` list to be displayed. + ## Properties @@ -39,6 +53,10 @@ The component works with [API references already configured in your `docs.yml`]( If `true`, includes the type definition's description above the schema fields. This is useful for displaying comments associated with the type, such as Protobuf message comments. + + A list of field names to include in the rendered schema. When specified, only the listed fields will be displayed. This is useful when you want to explicitly control which fields appear, avoiding the need to update an `exclude` list whenever the underlying type gains new fields. + + A list of field names to exclude from the rendered schema. From 65acdc04a3fc00842063e2a2793f56663f83f1a1 Mon Sep 17 00:00:00 2001 From: Catherine Deskur <46695336+chdeskur@users.noreply.github.com> Date: Mon, 23 Feb 2026 09:01:11 -0500 Subject: [PATCH 2/2] Update schema.mdx --- .../docs/pages/component-library/default-components/schema.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/fern/products/docs/pages/component-library/default-components/schema.mdx b/fern/products/docs/pages/component-library/default-components/schema.mdx index ccac1e207..3f3b7dc4e 100644 --- a/fern/products/docs/pages/component-library/default-components/schema.mdx +++ b/fern/products/docs/pages/component-library/default-components/schema.mdx @@ -37,8 +37,6 @@ Use `include` to display only specific fields, or `exclude` to hide certain fiel ``` -When both `include` and `exclude` are specified, a field must be in the `include` list **and** not in the `exclude` list to be displayed. - ## Properties