Skip to content

SectionRule macro code generation #515

@Mr-Leshiy

Description

@Mr-Leshiy

Summary

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

Description

  • Add a corresponding fn section_rule(spec: &CatalystSignedDocSpec) -> anyhow::Result<TokenStream> function under its separate section.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

No one assigned

    Labels

    squad: gatekeepersCatalyst App Backend, System Development & Integration Team

    Type

    Projects

    Status

    🔖 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions