Skip to content

Commit 223b019

Browse files
dmealingclaude
andcommitted
feat(fixtures): migrate error fixtures to FR5a envelope shape
Rewrites every `error-*` fixture's `expected-errors.json` from the legacy `[{code}]` array to the ADR-0009 envelope: { errors: [ { code, source: { format, files, jsonPath } } ], warnings: [] } Coverage: - 25 fixtures under fixtures/conformance/ - 3 fixtures under fixtures/yaml-conformance/ JSONPath / source.format / source.files come from the actual envelope each TS ParseError emits at load time. TS is the FR5a reference port; cross-port drift surfaced by this migration is documented in each port's ledger. Includes scripts/migrate-error-fixtures.ts — the one-shot tool that did the bulk migration by loading every fixture through the TS loader and writing the resulting envelope back to disk. Kept in-tree for re-running if the envelope shape evolves. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d85baf6 commit 223b019

29 files changed

Lines changed: 654 additions & 125 deletions

File tree

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_ATTR_VALUE"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_ATTR_VALUE",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.users.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[1]['identity.primary']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_ATTR_FILTER"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_ATTR_FILTER",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.users.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[5]['layout.dataGrid']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_ATTR_FILTER"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_ATTR_FILTER",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.users.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[4]['layout.dataGrid']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_ATTR_VALUE"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_ATTR_VALUE",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.users.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[4]['layout.dataGrid']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_MISSING_REQUIRED_ATTR"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_MISSING_REQUIRED_ATTR",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.users.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[1]['identity.primary']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_ATTR_VALUE"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_ATTR_VALUE",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.users.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[3]['layout.dataGrid']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_DEFAULT_SORT_FIELD"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_DEFAULT_SORT_FIELD",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.users.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[3]['layout.dataGrid']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_ATTR_VALUE"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_ATTR_VALUE",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.enums.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[1]['field.enum']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_BAD_ATTR_VALUE"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_BAD_ATTR_VALUE",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.enums.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[1]['field.enum']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
[
2-
{
3-
"code": "ERR_MISSING_REQUIRED_ATTR"
4-
}
5-
]
1+
{
2+
"errors": [
3+
{
4+
"code": "ERR_MISSING_REQUIRED_ATTR",
5+
"source": {
6+
"format": "json",
7+
"files": [
8+
"meta.enums.json"
9+
],
10+
"jsonPath": "$['metadata.root'].children[0]['object.entity'].children[1]['field.enum']"
11+
}
12+
}
13+
],
14+
"warnings": []
15+
}

0 commit comments

Comments
 (0)