Skip to content

add validate pages script and report generation - #26

Merged
DanaBenGigi merged 2 commits into
mainfrom
task_tis0om/validate-pages-script
Jul 29, 2026
Merged

add validate pages script and report generation#26
DanaBenGigi merged 2 commits into
mainfrom
task_tis0om/validate-pages-script

Conversation

@DanaBenGigi

@DanaBenGigi DanaBenGigi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

validate page script
npm start - for receiving errors output in the terminal
npm run report - for generating an html report that displays the errors there

image image

{ headers }
);
const result = validateRes.data;
if (!(result.valid ?? true)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need the fallback to true?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent is to only flag pages the API explicitly reports as invalid (valid: false). If the field is absent e.g. an unexpected response shape, or a future API version that omits valid - we prefer to choose the safer approach, and not flooding the report with pages that may actually be fine.

@DanaBenGigi
DanaBenGigi merged commit a2e8789 into main Jul 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants