Skip to content

Refactor manifest generation #72

@marcelamelara

Description

@marcelamelara

There's significant duplication between create_manifest and create_oms_manifest. Both functions share manifest creation and cross-reference logic. We could add task to refactor it.

enum ManifestFormat {
    Standalone,
    OMS,
    // Future formats...
}

impl ManifestFormat {
    fn create(&self, config: ManifestCreationConfig) -> Result<()> {
        match self {
            Self::Standalone => create_c2pa_manifest(config),
            Self::OMS => create_oms_manifest(config),
        }
    }
}

Originally posted by @sandlbn in #54 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions