changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "kind": {
- "const": "code"
- },
- "providers": {
- "items": {
- "properties": {
- "count": {
- "type": "integer"
- },
- "instances": {
- "items": {
- "properties": {
- "line": {
- "type": "integer"
- },
- "match": {
- "type": "string"
- }
- },
- "required": [
- "line",
- "match"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "provider": {
- "type": "string"
- }
- },
- "required": [
- "provider",
- "count",
- "instances"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "recommendation": {
- "type": "string"
- },
- "summary": {
- "type": "string"
- },
- "totalDetections": {
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "summary",
- "providers",
- "totalDetections"
- ],
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "type": [
- "string",
- "object"
- ]
- },
- "kind": {
- "const": "error"
- }
- },
- "required": [
- "kind",
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "kind": {
+ "const": "code"
+ },
+ "providers": {
+ "items": {
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "instances": {
+ "items": {
+ "properties": {
+ "line": {
+ "type": "integer"
+ },
+ "match": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "line",
+ "match"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "provider": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "provider",
+ "count",
+ "instances"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recommendation": {
+ "type": "string"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "totalDetections": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "summary",
+ "providers",
+ "totalDetections"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "kind": {
+ "const": "error"
+ }
+ },
+ "required": [
+ "kind",
+ "error"
+ ],
+ "type": "object"
+ }
+]