@@ -3,12 +3,14 @@ import { Dependencies } from "./types/Dependencies.js";
33import { createHelpers , Helpers } from "./helper.js" ;
44import { createProductionDeps } from "./create-deps.js" ;
55
6+ const blankEnumValue = "" as never ;
7+
68const baselineCodeJSON : Partial < CodeJSON > = {
79 name : "" ,
810 version : "" ,
911 description : "" ,
1012 longDescription : "" ,
11- status : undefined ,
13+ status : blankEnumValue ,
1214 permissions : {
1315 licenses : [
1416 {
@@ -21,8 +23,8 @@ const baselineCodeJSON: Partial<CodeJSON> = {
2123 } ,
2224 organization : "Centers for Medicare & Medicaid Services" ,
2325 repositoryURL : "" ,
24- repositoryHost : undefined ,
25- repositoryVisibility : undefined ,
26+ repositoryHost : blankEnumValue ,
27+ repositoryVisibility : blankEnumValue ,
2628 homepageURL : "" ,
2729 downloadURL : "" ,
2830 disclaimerURL : "" ,
@@ -35,9 +37,9 @@ const baselineCodeJSON: Partial<CodeJSON> = {
3537 } ,
3638 platforms : [ ] ,
3739 categories : [ ] ,
38- softwareType : undefined ,
40+ softwareType : blankEnumValue ,
3941 languages : [ ] ,
40- maintenance : undefined ,
42+ maintenance : blankEnumValue ,
4143 contractNumber : [ ] ,
4244 SBOM : "" ,
4345 relatedCode : [ ] ,
@@ -56,9 +58,9 @@ const baselineCodeJSON: Partial<CodeJSON> = {
5658 feedbackMechanism : "" ,
5759 AIUseCaseID : "0" ,
5860 localisation : false ,
59- repositoryType : undefined ,
61+ repositoryType : blankEnumValue ,
6062 userInput : false ,
61- fismaLevel : undefined ,
63+ fismaLevel : blankEnumValue ,
6264 group : "" ,
6365 projects : [ ] ,
6466 systems : [ ] ,
@@ -151,7 +153,7 @@ async function getMetaData(
151153 return {
152154 name : partialCodeJSON . name ,
153155 description : description ,
154- status : status ,
156+ status : status ?? blankEnumValue ,
155157 repositoryURL : partialCodeJSON . repositoryURL ,
156158 repositoryVisibility : partialCodeJSON . repositoryVisibility ,
157159 laborHours : partialCodeJSON . laborHours ,
0 commit comments