Field Encode
This structural rule validates that decoded MISB ST 0601 field values can be re-encoded under the resolved schema without violating field constraints.
What This Test Does
The rule:
- decodes known MISB ST 0601 fields to typed values
- re-encodes those values through the schema-aware field encoder
- reports UTF-8 violations, string length violations, type mismatches, and other schema constraint failures
- preserves nested paths when the violation occurs inside amend local sets or delegated nested metadata
✅ Pass Criteria
The test passes when all decoded MISB ST 0601 field values re-encode successfully within the schema constraints for their tag.
❌ Fail Criteria
The test fails when a decoded MISB ST 0601 field cannot be re-encoded because the value violates schema constraints such as text encoding or field length.
Notes
This rule is especially useful for values that are technically decodable but still non-conformant, such as overlength operational strings or invalid UTF-8 payloads.