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 check for and test schemas by name #5

Closed iaincollins closed 4 years ago

iaincollins commented 5 years ago

How could the tool be better? Please describe. Add --schemas <schemas> option to test for specific schemas.

The purpose of this is to provide a way to validate schema markup to ensure it's correct according to the specifications, independent of considerations for specific implementations (e.g. irrespective of what Google considers 'valid'), so that it's more widely useful.

Describe the solution you'd like

This would work like the existing ---presets option, except it would only validate against the Schema.org spec (i.e. it would not consider what search engines consider 'required' fields or acceptable values for properties).

The command would fail if the schema specified was unknown.

A test for a specified schema would generate an error if:

A test for a specified schema would generate a warning if:

iaincollins commented 5 years ago

This was partially resolved by #8 but does not support explicitly checking properties are valid.

That will require additional work which needs to be spec'd out.

iaincollins commented 4 years ago

Marking this issue as closed, the remainder of this work is now part of the milestone plan for version 5.

iaincollins commented 4 years ago

See issue #14 to track the follow up work around validating Schema properties.