Skip to content

transformers, persisters, verifiers #86

@matt-beanland

Description

@matt-beanland

Currently the instance/party (and place if done yet) extension DSL is just purely introspected.

We should use transformers, persisters and validators according to https://github.com/ash-project/spark/blob/main/documentation/how_to/writing-extensions.md

The transformers can inject useful methods onto the extended resource.
The persisters can make introspection data we find useful, perhaps to other enhanced resource's transformed methods.
The verifiers should raise at extended resource compile time to provide useful guidance.

Extended resources are unknown to each other at their respective compile times.

Refactor so action helpers are not needed. Most test cases should be unchanged, but not a pure refactoring as we'll include negative tests of the verifiers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions