From 469d0a2b683ef6968611e955efdb95c12c4d4aaf Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Tue, 9 May 2023 11:31:29 -0400 Subject: [PATCH] rename R to RDescriptionFile in generator Signed-off-by: Will Murphy --- schema/json/generate.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schema/json/generate.go b/schema/json/generate.go index bf3daea1301..e81cff02030 100644 --- a/schema/json/generate.go +++ b/schema/json/generate.go @@ -29,6 +29,9 @@ can be extended to include specific package metadata struct shapes in the future // not matter as long as it is exported. // TODO: this should be generated from reflection of whats in the pkg package +// Should be created during generation below; use reflection's ability to +// create types at runtime. +// should be same name as struct minus metadata type artifactMetadataContainer struct { Alpm pkg.AlpmMetadata Apk pkg.ApkMetadata @@ -56,7 +59,7 @@ type artifactMetadataContainer struct { PythonPackage pkg.PythonPackageMetadata PythonPipfilelock pkg.PythonPipfileLockMetadata PythonRequirements pkg.PythonRequirementsMetadata - R pkg.RDescriptionFileMetadata + RDescriptionFile pkg.RDescriptionFileMetadata Rebar pkg.RebarLockMetadata Rpm pkg.RpmMetadata RustCargo pkg.CargoPackageMetadata