Skip to content

Commit 1ea1213

Browse files
committed
updated sdk version to 0.2.23
1 parent 758ccc9 commit 1ea1213

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

package-lock.json

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"homepage": "https://github.com/stackbit/stackbit-cli#readme",
4040
"dependencies": {
41-
"@stackbit/sdk": "^0.2.19",
41+
"@stackbit/sdk": "^0.2.23",
4242
"analytics-node": "^4.0.1",
4343
"chalk": "^4.1.0",
4444
"configstore": "^5.0.1",

src/validate.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export async function validate({ inputDir, configOnly, quiet }: ValidateOptions)
2929
const models = configResult.config?.models ?? [];
3030
console.group(`loaded ${models.length} models:`);
3131
(configResult.config?.models ?? []).forEach((model) => {
32+
if (model.name === '__image_model') {
33+
return;
34+
}
3235
if (model.__metadata?.invalid) {
3336
console.log(red(`✘ ${model.name} - invalid model`));
3437
} else {
@@ -119,7 +122,7 @@ async function validateContent({ dirPath, config, quiet, skipUnmodeledContent }:
119122
console.log(green('✔ content files are valid'));
120123
} else {
121124
console.group(red(`found ${result.errors.length} errors in content files:`));
122-
result.errors.forEach((error) => {
125+
result.errors.forEach((error: Error) => {
123126
if (error instanceof ContentValidationError) {
124127
console.log(`${redCross} ${error.filePath} (${error.modelName}): ${error.message}`);
125128
} else {

0 commit comments

Comments
 (0)