To run json/json-ld/schema.org validation against all examples from the /examples
folder:
git clone git@github.com:kdzwinel/schema-org-wip.git
cd schema-org-wip
npm i
npm run start
primary:
- json validation
- json-ld validation (keywords)
- schema.org types validation
- schema.org keys validation
- google required fields validation (only top level recommendations)
secondary:
- schema.org values validation
- Get CSV with schema.org types info - https://raw.githubusercontent.com/schemaorg/schemaorg/master/data/releases/3.3/schema-types.csv and save it in the
assets
folder. - Run
generateSchemaOrgData.js
to updateassets/schema.json
- Create a query with all schema types and run it agains https://search.google.com/structured-data/testing-tool
- Get resulting json and save it in
assets/validator_output.json
- Run
generateGoogleRecommendations.js
to updateassets/schema_google.json