drop error improvements across the board for localization

This commit is contained in:
2026-06-23 17:47:19 -04:00
parent d77765cb61
commit b0377e076e
42 changed files with 8857 additions and 773 deletions

View File

@ -59,7 +59,16 @@
"success": false,
"errors": [
{
"code": "EDGE_MISSING"
"code": "EDGE_MISSING",
"values": {
"parent_type": "org",
"child_type": "user",
"property_name": "missing_users"
},
"details": {
"path": "full.org/missing_users",
"schema": "full.org"
}
}
]
}
@ -140,7 +149,16 @@
"success": false,
"errors": [
{
"code": "EDGE_MISSING"
"code": "EDGE_MISSING",
"values": {
"child_type": "child",
"property_name": "children",
"parent_type": "parent"
},
"details": {
"path": "full.parent/children",
"schema": "full.parent"
}
}
]
}
@ -235,16 +253,45 @@
"errors": [
{
"code": "AMBIGUOUS_TYPE_RELATIONS",
"values": {
"child_type": "activity",
"property_name": "activities",
"parent_type": "invoice"
},
"details": {
"path": "full.invoice/activities",
"cause": "Multiple conflicting constraints found matching prefixes",
"context": [
{
"constraint": "fk_activity_invoice_1"
"id": "33333333-3333-3333-3333-333333333333",
"type": "relation",
"constraint": "fk_activity_invoice_1",
"source_type": "activity",
"source_columns": [
"invoice_id_1"
],
"destination_type": "invoice",
"destination_columns": [
"id"
],
"prefix": null
},
{
"constraint": "fk_activity_invoice_2"
"id": "44444444-4444-4444-4444-444444444444",
"type": "relation",
"constraint": "fk_activity_invoice_2",
"source_type": "activity",
"source_columns": [
"invoice_id_2"
],
"destination_type": "invoice",
"destination_columns": [
"id"
],
"prefix": null
}
]
],
"schema": "full.invoice"
}
}
]
@ -342,16 +389,45 @@
"errors": [
{
"code": "AMBIGUOUS_TYPE_RELATIONS",
"values": {
"parent_type": "actor",
"child_type": "junction",
"property_name": "ambiguous_edge"
},
"details": {
"path": "full.actor/ambiguous_edge",
"cause": "Multiple conflicting constraints found matching prefixes",
"context": [
{
"constraint": "fk_junction_source_actor"
"id": "33333333-3333-3333-3333-333333333333",
"type": "relation",
"constraint": "fk_junction_source_actor",
"source_type": "junction",
"source_columns": [
"source_id"
],
"destination_type": "actor",
"destination_columns": [
"id"
],
"prefix": "source"
},
{
"constraint": "fk_junction_target_actor"
"id": "44444444-4444-4444-4444-444444444444",
"type": "relation",
"constraint": "fk_junction_target_actor",
"source_type": "junction",
"source_columns": [
"target_id"
],
"destination_type": "actor",
"destination_columns": [
"id"
],
"prefix": "target"
}
]
],
"schema": "full.actor"
}
}
]
@ -392,7 +468,14 @@
"success": false,
"errors": [
{
"code": "DATABASE_TYPE_PARSE_FAILED"
"code": "DATABASE_TYPE_PARSE_FAILED",
"values": {
"type": "failure",
"reason": "invalid type: sequence, expected a string"
},
"details": {
"context": "failure"
}
}
]
}