{ "schemaVersion": 2, "cases": [ { "id": "tolerant-reader-optional-field", "expected": "additive", "before": { "required": ["id"], "properties": { "id": {} } }, "after": { "required": ["id"], "properties": { "id": {}, "displayName": {} } } }, { "id": "strict-reader-optional-field", "expected": "breaking", "before": { "required": ["APP_ENV"], "properties": { "APP_ENV": {} }, "additionalProperties": false }, "after": { "required": ["APP_ENV"], "properties": { "APP_ENV": {}, "OPTIONAL_FLAG": {} }, "additionalProperties": false } }, { "id": "required-field-added", "expected": "breaking", "before": { "required": ["buildId"], "properties": { "buildId": {} } }, "after": { "required": ["buildId", "assetManifestHash"], "properties": { "buildId": {}, "assetManifestHash": {} } } }, { "id": "field-removed", "expected": "breaking", "before": { "properties": { "theme": {} } }, "after": { "properties": {} } }, { "id": "type-changed", "expected": "breaking", "before": { "properties": { "id": { "type": "string" } } }, "after": { "properties": { "id": { "type": "number" } } } }, { "id": "enum-narrowed", "expected": "breaking", "before": { "properties": { "state": { "enum": ["A", "B"] } } }, "after": { "properties": { "state": { "enum": ["A"] } } } }, { "id": "nullable-added", "expected": "breaking", "before": { "properties": { "note": { "type": "string" } } }, "after": { "properties": { "note": { "type": ["string", "null"] } } } }, { "id": "unchanged", "expected": "none", "before": { "required": ["id"], "properties": { "id": { "type": "string" } } }, "after": { "properties": { "id": { "type": "string" } }, "required": ["id"] } } ] }