> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-a46887cf.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatFormatJSONSchemaConfig - Go SDK

> ChatFormatJSONSchemaConfig type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

JSON Schema response format for structured outputs

## Fields

| Field        | Type                                                                                                             | Required             | Description                      | Example                                                                                                                                                                                                                                |
| ------------ | ---------------------------------------------------------------------------------------------------------------- | -------------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `JSONSchema` | [components.ChatJSONSchemaConfig](/client-sdks/go/api-reference/models/chatjsonschemaconfig)                     | :heavy\_check\_mark: | JSON Schema configuration object | `{"description": "A mathematical response","name": "math_response","schema": {"properties": {"answer": {"type": "number"}`<br />},<br />"required": \[<br />"answer"<br />],<br />"type": "object"<br />},<br />"strict": `true<br/>`} |
| `Type`       | [components.ChatFormatJSONSchemaConfigType](/client-sdks/go/api-reference/models/chatformatjsonschemaconfigtype) | :heavy\_check\_mark: | N/A                              |                                                                                                                                                                                                                                        |
