CreateExtractSchemaRequestBody
Schema definition for creating a reusable extraction template. Extraction schemas define the structure and validation rules for data extraction from files.
Example Usage
typescript
import { CreateExtractSchemaRequestBody } from "@meetkai/mka1/models/operations";
let value: CreateExtractSchemaRequestBody = {
name: "<value>",
schema: {
"key": "<value>",
"key1": "<value>",
"key2": "<value>",
},
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | ✔️ | Name of the extraction schema. Must be between 1 and 100 characters. Used to identify and reference the schema. |
description | string | ➖ | Optional description of the schema. Maximum 500 characters. Helps document the purpose and usage of the schema. |
schema | Record<string, any> | ✔️ | JSON Schema object defining the structure of data to extract. Specifies the fields, types, and validation rules for the extracted data. |
metadata | Record<string, any> | ➖ | Optional metadata for the schema. Can store additional information like version, author, or custom properties. |