Skip to content

Commit

Permalink
feat: Add description check
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Sep 20, 2022
1 parent 9fcddb0 commit 61e99bc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/pages/_cube-checker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ const checks: Check[] = [
}
},
},
{
name: "Has a description",
description: "Should have a description through schema:description",
run: async ({ cubeIri, loaders }) => {
const cube = await loaders.describeCubes.load(cubeIri);
const shape = cube.out(ns.schema.description).value;
if (shape) {
return { ok: true, message: "Has a description" };
} else {
return { ok: false, message: "No description" };
}
},
},
{
name: "Is published",
description:
Expand Down

0 comments on commit 61e99bc

Please sign in to comment.