2

Library - Validate CBOR structs according to the cddl schema for `nodes/models/t...

 9 months ago
source link: https://github.com/build-trust/ockam/issues/6694
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Comments

Member

The ockam_api crate exchanges many structs with the Controller. Those structs are serialized using CBOR and should conform to the cddl schema.

Currently there are only a handful of structs tested for conformance to the schema:

The purpose of this issue is to complete the testing by:

  • adding more quickcheck properties similar to the ones above
  • adding missing schema.cddl definitions where necessary
  • additionally remove the lifetime annotations on structs, like this one (and replace CowStr<'a> with String)

To the following list of structs:

  • nodes/models/transport/request/CreateTcpConnection
  • nodes/models/transport/request/CreateTcpListener
  • nodes/models/transport/request/DeleteTransport
  • nodes/models/transport/response/TransportStatus
  • nodes/models/transport/response/TransportList
  • nodes/models/workers/WorkerStatus
  • nodes/models/workers/WorkerList

Related epic: #6235


We love helping new contributors! ❤️
If you have questions or need help as you explore, please join us on Discord. If you're looking for other issues to contribute to, please checkout our good first issues.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK