changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "operation": {
- "const": "folder",
- "type": "string"
- },
- "result": {
- "$ref": "#/$defs/__schema0"
- }
- },
- "required": [
- "operation",
- "result"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "operation": {
- "const": "category",
- "type": "string"
- },
- "result": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "apiMode": {
- "enum": [
- "unavailable",
- "global",
- "category"
- ],
- "type": "string"
- },
- "apiPermissionEdit": {
- "type": "boolean"
- },
- "apiPermissionRead": {
- "type": "boolean"
- },
- "apiPermissionWrite": {
- "type": "boolean"
- },
- "createdAt": {
- "type": "string"
- },
- "documentCount": {
- "type": "number"
- },
- "folderCount": {
- "type": "number"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "order": {
- "type": "number"
- },
- "updatedAt": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "order",
- "createdAt",
- "updatedAt",
- "apiMode",
- "apiPermissionRead",
- "apiPermissionEdit",
- "apiPermissionWrite"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "createdAt": {
- "type": "string"
- },
- "documentCount": {
- "type": "number"
- },
- "folderCount": {
- "type": "number"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "order": {
- "type": "number"
- },
- "updatedAt": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "order",
- "createdAt",
- "updatedAt"
- ],
- "type": "object"
- }
- ]
- }
- },
- "required": [
- "operation",
- "result"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "operation": {
- "const": "tag",
- "type": "string"
- },
- "result": {
- "additionalProperties": {},
- "properties": {
- "color": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "createdAt": {
- "type": "string"
- },
- "documentCount": {
- "type": "number"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "color"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation",
- "result"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "operation": {
+ "const": "folder",
+ "type": "string"
+ },
+ "result": {
+ "$ref": "#/$defs/__schema0"
+ }
+ },
+ "required": [
+ "operation",
+ "result"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "operation": {
+ "const": "category",
+ "type": "string"
+ },
+ "result": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "apiMode": {
+ "enum": [
+ "unavailable",
+ "global",
+ "category"
+ ],
+ "type": "string"
+ },
+ "apiPermissionEdit": {
+ "type": "boolean"
+ },
+ "apiPermissionRead": {
+ "type": "boolean"
+ },
+ "apiPermissionWrite": {
+ "type": "boolean"
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "documentCount": {
+ "type": "number"
+ },
+ "folderCount": {
+ "type": "number"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "order": {
+ "type": "number"
+ },
+ "updatedAt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "order",
+ "createdAt",
+ "updatedAt",
+ "apiMode",
+ "apiPermissionRead",
+ "apiPermissionEdit",
+ "apiPermissionWrite"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "createdAt": {
+ "type": "string"
+ },
+ "documentCount": {
+ "type": "number"
+ },
+ "folderCount": {
+ "type": "number"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "order": {
+ "type": "number"
+ },
+ "updatedAt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "order",
+ "createdAt",
+ "updatedAt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "operation",
+ "result"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "operation": {
+ "const": "tag",
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": {},
+ "properties": {
+ "color": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "documentCount": {
+ "type": "number"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "color"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation",
+ "result"
+ ],
+ "type": "object"
+ }
+]