Refactor PDU definitions to reduce duplication (#2070)
First of all, all PDU definitions were based on the v1 PDU definition with a few fields overwritten to change the format with needed. While that works when rendering the spec, this is semantically incorrect because it means that the objects must match both schemas, which is impossible. So now we make a base with only the common fields, and we add the others as needed by the room version. Note that there is no more "unsigned PDU" definition since it is not used directly, and hashes and signatures are the same across all versions. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
ae06f37470
commit
60339adb2d
21 changed files with 190 additions and 283 deletions
|
@ -0,0 +1 @@
|
|||
Refactor PDU definitions to reduce duplication.
|
Loading…
Add table
Add a link
Reference in a new issue