You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn("--- Format: File was malformed -> fixed the issue");
118
+
console.warn("-- Format: File was malformed -> fixed the issue");
116
119
awaitfs.writeFile(file,expectedContent);
117
120
}
118
121
}
119
-
elseif(doLint){
120
-
console.warn("--- Lint: File is well-formed");
122
+
elseif(doLint&&verbose){
123
+
console.warn("-- Lint: File is well-formed");
121
124
}
122
125
}
123
126
}
124
127
}
125
128
catch(error){
126
-
console.error("-- "+error.message);
129
+
stats.invalid++;
130
+
stats.malformed++;
131
+
console.error("-- "+error.message+"\n");
127
132
continue;
128
133
}
129
134
@@ -132,12 +137,22 @@ async function run() {
132
137
if(Array.isArray(json.collections)){
133
138
entries=json.collections;
134
139
isApiList=true;
135
-
console.log(`--- The file is a /collections endpoint. Validating all ${entries.length} collections, but ignoring the other parts of the response.\n`);
140
+
if(verbose){
141
+
console.log(`-- The file is a /collections endpoint. Validating all ${entries.length} collections, but ignoring the other parts of the response.`);
142
+
if(entries.length>1){
143
+
console.log('');
144
+
}
145
+
}
136
146
}
137
147
elseif(Array.isArray(json.features)){
138
148
entries=json.features;
139
149
isApiList=true;
140
-
console.log(`--- The file is a /collections/:id/items endpoint. Validating all ${entries.length} items, but ignoring the other parts of the response.\n`);
150
+
if(verbose){
151
+
console.log(`-- The file is a /collections/:id/items endpoint. Validating all ${entries.length} items, but ignoring the other parts of the response.`);
152
+
if(entries.length>1){
153
+
console.log('');
154
+
}
155
+
}
141
156
}
142
157
else{
143
158
entries=[json];
@@ -151,42 +166,38 @@ async function run() {
151
166
id=`${data.id}: `;
152
167
}
153
168
if(typeofdata.stac_version!=='string'){
154
-
console.error(`---${id}Skipping; No STAC version found\n`);
169
+
console.error(`-- ${id}Skipping; No STAC version found\n`);
0 commit comments