Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ The component works with [API references already configured in your `docs.yml`](
<Schema type="AIChatConfig" />
```

### Filtering fields

Use `include` to display only specific fields, or `exclude` to hide certain fields:

```jsx Markdown
{/* Only show these two fields */}
<Schema type="AIChatConfig" include={["model", "provider"]} />

{/* Show all fields except these */}
<Schema type="AIChatConfig" exclude={["model"]} />
```

## Properties

<ParamField path="type" type="string" required={true}>
Expand All @@ -39,6 +51,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.
</ParamField>

<ParamField path="include" type="string[]" required={false}>
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.
</ParamField>

<ParamField path="exclude" type="string[]" required={false}>
A list of field names to exclude from the rendered schema.
</ParamField>
Expand Down