iaincollins / structured-data-testing-tool

A library and command line tool to help inspect and test for Structured Data.
https://www.npmjs.com/package/structured-data-testing-tool
ISC License
64 stars 14 forks source link

Add option to disable testing of automatically detected schemas #1

Closed iaincollins closed 5 years ago

iaincollins commented 5 years ago

The current default behaviour is to perform tests for all known schemas found when inspecting a page.

This should remain the default behaviour, but it should be possible to override this default behaviour (in both via CLI and API) so that only have tests (and presets) explicitly requested to run be tested.

Schemas should still always be automatically detected but tests for them should not be automatically run if an option requesting they not be is passed.

There is no proposal for what to call this option yet.

iaincollins commented 5 years ago

This option was added prior to 2.0.

It is -d or --disable-presets in the CLI, and disablePresets: true in the API.

Any presets explicitly specified are still respected.

The naming is potentially confusing, but felt that anything longer might be cumbersome and could not come up with a shorter satisfying alternative.