Skip to content

ContentRule macro code generation #511

@Mr-Leshiy

Description

@Mr-Leshiy

Summary

Implement a corresponding macro for statically instantiate a ContentRule for a specific document type.

Description

  • Add a corresponding fn content_rule(spec: &CatalystSignedDocSpec) -> anyhow::Result<TokenStream> function under its separate content.rs mod file which should be under the rules mod.
  • Update CatalystSignedDocSpec with the corresponding and required missing info based on the specs/signed_doc.json

Note

It is probable that the our current implementation would diverge with latest definition of some validation rules or description of something in the design specs is not accurate or something is missing.
In this case, create as a separate issue to updating the validation rule implementation or for updating design specs.

Metadata

Metadata

Assignees

Labels

squad: gatekeepersCatalyst App Backend, System Development & Integration Team

Type

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions