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.

NoteWhereWhat uftp does
SS-01FlexSettlement extends the response typeIt carries a Result that makes no sense for a request; uftp keeps it as a field, Accepted in practice
SS-02FlexSettlement needs at least one ContractSettlementA settlement without contracts is invalid. Decoding can be relaxed with DecodeOptions::allow_empty_contract_settlement; encoding cannot
SS-03TestMessageResponse has no ResultOnly an accepted TestMessage is answered
SS-04D-Prognosis ISP Start/Duration are xs:integer, elsewhere positivePositive is required everywhere
SS-05The wrapper's docs mention roles BRP and MDCOnly AGR, CRO and DSO exist
SS-06The text allows extension elements; no XSD sequence has xs:anyElements in an explicit foreign namespace are skipped
SS-07Endpoint path /USEF/2019/SignedMessage vs. /shapeshifter/api/v3/messageBoth are named in transport
SS-08No target namespaceMessages are in no namespace
SS-09The zone pattern allows only Africa, America, Australia, Europe, PacificOther zones are refused
SS-10The example CS1 key in Appendix 4 is not a valid Ed25519 pointStrict verification refuses it
SS-11"Mandatory if Unsolicited=false" is prose onlyEnforced when Unsolicited is false
SS-12DSOPortfolioUpdateResponse's reference is called DSOPortfolioUpdateResponseMessageIDRead and written under that name; it holds the update's id
SS-13No role schema includes the metering schemaValidated with all schemas together
SS-14Metering values: xs:decimal in the XSD, "Integer" in the textDecimal
SS-15AGRPortfolioUpdate Connection: 0…n in the text, 1…n in the XSDAt least one
SS-16AGRPortfolioQuery's TimeZone: omitted in the text, required in the XSDRequired
SS-17"Already Submitted" is a rejection reason for a copy that counts as submittedReported as a rejection with that reason
SS-18A Rejected AGRPortfolioQueryResponse cannot be XSD-valid (DSO-View is required)Written and read without views
SS-19A Rejected FlexSettlementResponse must still list order statusesEvery order settlement is disputed, with the reason
SS-20FlexSettlement 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-21The reference library ships a metering schema with 16-digit EANs (fixed in 3.6.0)uftp follows the specification's 18 digits
SS-22The FlexOrder use case lists Disposition reasons; FlexOrder ISPs have no DispositionNot applied to orders
SS-23The PDF's FlexSettlementResponse has ContractSettlementStatus; the XSD does notNot sent or read
SS-24OrderReference is optional on the settlement in the XSD, required in the PDFRead as optional; the constructors set it; check_against disputes an item without one
SS-25No sign for DeliveredFlexPower, PowerDeficiency and Penalty; the §2.6.2 example uses magnitudesDelivered and deficiency take OrderedFlexPower's sign, Penalty is positive; see Settling
SS-26Partial 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 listThe 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.