addedOutput schema / anyOf
Added value: +[
+ {
+ "oneOf": [
+ {
+ "properties": {
+ "confirmation": {
+ "properties": {
+ "expiresAt": {
+ "type": "number"
+ },
+ "planHash": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "token": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "token",
+ "planHash",
+ "expiresAt"
+ ],
+ "type": "object"
+ },
+ "dryRun": {
+ "const": true
+ },
+ "plan": {
+ "type": "object"
+ }
+ },
+ "required": [
+ "dryRun",
+ "plan",
+ "confirmation"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "dryRun": {
+ "const": false
+ },
+ "operationOutcome": {
+ "properties": {
+ "evidence": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1
+ },
+ "status": {
+ "enum": [
+ "applied",
+ "outcome_unknown",
+ "postconditions_failed",
+ "pending_postconditions",
+ "pending_user_action"
+ ]
+ }
+ },
+ "required": [
+ "schemaVersion",
+ "status",
+ "reason",
+ "evidence"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "dryRun",
+ "operationOutcome"
+ ],
+ "type": "object"
+ }
+ ],
+ "properties": {
+ "dryRun": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "dryRun"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "unknown",
+ "not_executed"
+ ]
+ }
+ },
+ "required": [
+ "message",
+ "outcome"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]