nfdi4plants / arc-validate-package-registry

A repository of validation packages for ARCs
https://avpr.nfdi4plants.org
MIT License
1 stars 2 forks source link

Add Extensions to ValidationPackage for conversion to ValidationPackageMetadata #28

Closed caroott closed 7 months ago

caroott commented 7 months ago

This PR adds extensions for the conversion of ValidationPackage to ValidationPackageMetadata and the subsequently required extensions for conversion of ValidationPackage to OntologyAnnotations and Authors.

kMutagene commented 7 months ago

@caroott i think it would also be nice to add the lambdas you are using for conversion of the types directly as extensions on Author and OntologyAnnotation, e.g. Author.AsIndexType that does Client.Author -> Index.Author

caroott commented 7 months ago

i added GetAuthors and GetOntologyAnnotations to the respective fields directly and renamed them. You can now call it like this: validationPackage.Authors.AsIndexType()