changedOutput schema / anyOf
Previous value: -[
- {
- "description": "One knowledge base document and how far its reading got.",
- "properties": {
- "content_type": {
- "description": "The file's MIME type.",
- "title": "Content Type",
- "type": "string"
- },
- "created_at": {
- "description": "ISO 8601 timestamp.",
- "format": "date-time",
- "title": "Created At",
- "type": "string"
- },
- "error": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Why the document failed, in plain words. Null otherwise.",
- "title": "Error"
- },
- "id": {
- "description": "The document's id.",
- "format": "uuid",
- "title": "Id",
- "type": "string"
- },
- "name": {
- "description": "Display name.",
- "title": "Name",
- "type": "string"
- },
- "piece_count": {
- "description": "Searchable pieces made from the file (0 until indexed).",
- "title": "Piece Count",
- "type": "integer"
- },
- "size_bytes": {
- "description": "The file's size in bytes.",
- "title": "Size Bytes",
- "type": "integer"
- },
- "status": {
- "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. `failed`: see `error`.",
- "enum": [
- "pending",
- "processing",
- "ready",
- "failed"
- ],
- "title": "Status",
- "type": "string"
- },
- "tags": {
- "description": "Assigned tags, ordered by type.",
- "items": {
- "$ref": "#/$defs/KnowledgeDocumentTagResponse"
- },
- "title": "Tags",
- "type": "array"
- },
- "updated_at": {
- "description": "ISO 8601 timestamp.",
- "format": "date-time",
- "title": "Updated At",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "content_type",
- "size_bytes",
- "status",
- "error",
- "piece_count",
- "created_at",
- "updated_at",
- "tags"
- ],
- "title": "KnowledgeDocumentResponse",
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "description": "One knowledge base document and how far its reading got.",
+ "properties": {
+ "content_type": {
+ "description": "The file's MIME type.",
+ "title": "Content Type",
+ "type": "string"
+ },
+ "created_at": {
+ "description": "ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Created At",
+ "type": "string"
+ },
+ "error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Why the document failed, in plain words. Null otherwise.",
+ "title": "Error"
+ },
+ "id": {
+ "description": "The document's id.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "name": {
+ "description": "Display name.",
+ "title": "Name",
+ "type": "string"
+ },
+ "piece_count": {
+ "description": "Searchable pieces made from the file (0 until indexed).",
+ "title": "Piece Count",
+ "type": "integer"
+ },
+ "size_bytes": {
+ "description": "The file's size in bytes.",
+ "title": "Size Bytes",
+ "type": "integer"
+ },
+ "status": {
+ "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. `failed`: see `error`.",
+ "enum": [
+ "pending",
+ "processing",
+ "ready",
+ "failed"
+ ],
+ "title": "Status",
+ "type": "string"
+ },
+ "tags": {
+ "description": "Assigned tags, ordered by type, then value. A document can have several values of one type.",
+ "items": {
+ "$ref": "#/$defs/KnowledgeDocumentTagResponse"
+ },
+ "title": "Tags",
+ "type": "array"
+ },
+ "updated_at": {
+ "description": "ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Updated At",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content_type",
+ "size_bytes",
+ "status",
+ "error",
+ "piece_count",
+ "created_at",
+ "updated_at",
+ "tags"
+ ],
+ "title": "KnowledgeDocumentResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]