changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "ok": {
+ "const": true
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "then": {
+ "required": [
+ "ok",
+ "analysis"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "ok": {
+ "const": false
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "then": {
+ "required": [
+ "ok",
+ "error",
+ "message"
+ ]
+ }
+ }
+ ],
+ "description": "ok true carries the hosted analyzer body in analysis. ok false carries error and message. The content text is unchanged either way.",
+ "properties": {
+ "analysis": {
+ "additionalProperties": true,
+ "description": "Analyzer JSON. The content text is a one-line summary plus this object.",
+ "properties": {
+ "analyzed": {
+ "description": "true on this branch.",
+ "type": "boolean"
+ },
+ "engine": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "findings": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "stored": {
+ "description": "false. Nothing is stored.",
+ "type": "boolean"
+ },
+ "summary": {
+ "additionalProperties": true,
+ "properties": {
+ "critical": {
+ "type": "number"
+ },
+ "files_analyzed": {
+ "type": "number"
+ },
+ "files_received": {
+ "type": "number"
+ },
+ "high": {
+ "type": "number"
+ },
+ "low": {
+ "type": "number"
+ },
+ "medium": {
+ "type": "number"
+ },
+ "total_issues": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "analyzed",
+ "summary",
+ "findings",
+ "stored"
+ ],
+ "type": "object"
+ },
+ "error": {
+ "description": "Failure code when ok is false. invalid_json when the analyzer body was not JSON.",
+ "type": "string"
+ },
+ "message": {
+ "description": "Same string as content[0].text when ok is false.",
+ "type": "string"
+ },
+ "ok": {
+ "description": "true when the engine returned analyzed: true.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+}