How to test an eFTI XSD update without losing your baseline
Run the same XML fixtures against the old and new schemas before changing the mapper. Then run the updated mapper against the new schema. The first comparison isolates the schema change; the second measures whether your mapping fix works.
Pin the route, schema and mapper independently.
- Route: Record the operation version, direction and API document digest. A description can cover more than one operation version.
- Schema: Save the archive hash and exact entry point. Fingerprint every included or imported schema the entry point depends on. A changed ZIP hash alone does not tell you which schema changed.
- Mapper: Pin the adapter build and fixture inputs. Disable external schema resolution; treat an unresolved dependency as an incomplete test, not a document rejection.
Matching OpenAPI files did not make V0 and V1 interchangeable.
The Fintraffic API catalogue supplies separate schema packages. In our 1 December offline comparison, the three OpenAPI files matched byte for byte, but the identifier fixtures passed only against their own version’s schema. The shared problem-response schema was unchanged within the tested scope.
| Fixed fixture | V0 | V1 | Decision |
|---|---|---|---|
| Legacy identifier example | Valid | Rejected | Retest the identifier mapping. |
| Minimal V1 upload request | Rejected | Valid | Review the new structure and test business rules separately. |
| V1 request missing its message | Rejected | Rejected | Keep it as a negative case. |
| Shared problem response with numeric status | Valid | Valid | No schema-driven retest for this unchanged scope. |
Here, “valid” means the local XML validator accepted the fixture. The test did not submit a document or verify Fintraffic’s runtime.
Repeat the affected tests and retain the old evidence.
Report the fixture ID, schema entry point, dependency digest, build and observed result on both versions. Add a structurally valid but semantically wrong case to the mapper suite. For example, a valid address in the wrong transport role might pass XSD but fail role validation. Preserve the old result instead of rewriting it for the newer bundle.