Specification notes
Where the UFTP 3.1.0 XSDs, the specification text and the reference library disagree, and what uftp does in each case.
uftp follows the XSDs of the Shapeshifter specification (branch V3.x, pinned to a commit; copies under xsd/). Where the XSDs and the text disagree, uftp handles the disagreement explicitly and records it here; it never resolves one silently. The ids appear in the API documentation and in rejection rules.
| Note | Where | What uftp does |
|---|---|---|
| SS-01 | FlexSettlement extends the response type | It carries a Result that makes no sense for a request; uftp keeps it as a field, Accepted in practice |
| SS-02 | FlexSettlement needs at least one ContractSettlement | A settlement without contracts is invalid. Decoding can be relaxed with DecodeOptions::allow_empty_contract_settlement; encoding cannot |
| SS-03 | TestMessageResponse has no Result | Only an accepted TestMessage is answered |
| SS-04 | D-Prognosis ISP Start/Duration are xs:integer, elsewhere positive | Positive is required everywhere |
| SS-05 | The wrapper's docs mention roles BRP and MDC | Only AGR, CRO and DSO exist |
| SS-06 | The text allows extension elements; no XSD sequence has xs:any | Elements in an explicit foreign namespace are skipped |
| SS-07 | Endpoint path /USEF/2019/SignedMessage vs. /shapeshifter/api/v3/message | Both are named in transport |
| SS-08 | No target namespace | Messages are in no namespace |
| SS-09 | The zone pattern allows only Africa, America, Australia, Europe, Pacific | Other zones are refused |
| SS-10 | The example CS1 key in Appendix 4 is not a valid Ed25519 point | Strict verification refuses it |
| SS-11 | "Mandatory if Unsolicited=false" is prose only | Enforced when Unsolicited is false |
| SS-12 | DSOPortfolioUpdateResponse's reference is called DSOPortfolioUpdateResponseMessageID | Read and written under that name; it holds the update's id |
| SS-13 | No role schema includes the metering schema | Validated with all schemas together |
| SS-14 | Metering values: xs:decimal in the XSD, "Integer" in the text | Decimal |
| SS-15 | AGRPortfolioUpdate Connection: 0…n in the text, 1…n in the XSD | At least one |
| SS-16 | AGRPortfolioQuery's TimeZone: omitted in the text, required in the XSD | Required |
| SS-17 | "Already Submitted" is a rejection reason for a copy that counts as submitted | Reported as a rejection with that reason |
| SS-18 | A Rejected AGRPortfolioQueryResponse cannot be XSD-valid (DSO-View is required) | Written and read without views |
| SS-19 | A Rejected FlexSettlementResponse must still list order statuses | Every order settlement is disputed, with the reason |
| SS-20 | FlexSettlement has no TimeZone or ISP-Duration (#38) | Its ISPs are read in the market's grid (Market::check); each Period must lie in PeriodStart…PeriodEnd |
| SS-21 | The reference library ships a metering schema with 16-digit EANs (fixed in 3.6.0) | uftp follows the specification's 18 digits |
| SS-22 | The FlexOrder use case lists Disposition reasons; FlexOrder ISPs have no Disposition | Not applied to orders |
| SS-23 | The PDF's FlexSettlementResponse has ContractSettlementStatus; the XSD does not | Not sent or read |
| SS-24 | OrderReference is optional on the settlement in the XSD, required in the PDF | Read as optional; the constructors set it; check_against disputes an item without one |
| SS-25 | No sign for DeliveredFlexPower, PowerDeficiency and Penalty; the §2.6.2 example uses magnitudes | Delivered and deficiency take OrderedFlexPower's sign, Penalty is positive; see Settling |
| SS-26 | Partial activation: §2.4.4 and §3.8.5 scale the order's ISPs and price; §4.2.24 requires both copied from the offer unchanged, and the AGR "must" reject a changed list | The order copies (as Shapeshifter's validators require); the ActivationFactor scales OrderedFlexPower and Price once, at settlement; see Settling |
Findings about the reference library (SH-01 to SH-10) are on Interoperability.