File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1041
1041
"type" : " string" ,
1042
1042
"description" : " Names of the pre-validation errors that can occur in the project" ,
1043
1043
"allowedValues" : [
1044
- " No pom.xml file found " ,
1045
- " No Java project found " ,
1046
- " Mixed Java project and another language found " ,
1047
- " Project selected is not Java 8 or Java 11 " ,
1048
- " Only Maven projects supported " ,
1049
- " Empty project " ,
1050
- " Non SSO login " ,
1051
- " Project running on backend "
1044
+ " NoPom " ,
1045
+ " NoJavaProject " ,
1046
+ " MixedLanguages " ,
1047
+ " UnsupportedJavaVersion " ,
1048
+ " NonMavenProject " ,
1049
+ " EmptyProject " ,
1050
+ " NonSsoLogin " ,
1051
+ " RemoteRunProject "
1052
1052
]
1053
1053
},
1054
1054
{
Original file line number Diff line number Diff line change @@ -81,10 +81,7 @@ function getArgsFromMetadata(m: MetadataType): string {
81
81
name,
82
82
kind : StructureKind . TypeAlias ,
83
83
isExported : true ,
84
- type : m . allowedValues . map ( v => {
85
- const modifiedVal = typeof v === "string" ? v . replace ( / \s / g, "_" ) : v ;
86
- return `'${ modifiedVal } '`
87
- } ) . join ( ' | ' ) ,
84
+ type : m . allowedValues . map ( v => `'${ v } '` ) . join ( ' | ' ) ,
88
85
} )
89
86
}
90
87
You can’t perform that action at this time.
0 commit comments