Baseten · Schema

JsonSchema

A JSON schema for structured output.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
name string The name of the schema.
description string A description of the schema.
schema object The JSON Schema definition.
strict boolean If `true`, enables strict schema adherence.
View JSON Schema on GitHub

JSON Schema

baseten-jsonschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JsonSchema",
  "title": "JsonSchema",
  "additionalProperties": false,
  "properties": {
    "name": {
      "title": "Name",
      "type": "string",
      "description": "The name of the schema."
    },
    "description": {
      "default": null,
      "title": "Description",
      "description": "A description of the schema.",
      "type": "string"
    },
    "schema": {
      "additionalProperties": true,
      "title": "Schema",
      "type": "object",
      "description": "The JSON Schema definition."
    },
    "strict": {
      "default": true,
      "title": "Strict",
      "description": "If `true`, enables strict schema adherence.",
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "schema"
  ],
  "type": "object",
  "description": "A JSON schema for structured output."
}