Reputation: 1750
I have a JSON object that should be JSON-LD. I would like to programatically validate that is the case. The JSON-LD Spec has a @context
and a @type
that point a description document. In my particular use case, it is the very common schema.org. Supposedly these documents more describe what the data is, not what it looks like, but those two seem to be heavily related, especially with Schema.org even referencing types in their schema. It would be great to ensure properties and value types are validated.
I basically would like a self-hosted/Javascript version of: https://validator.schema.org/
Is there a Javascript implementation of this sort of validation?
[Related: https://stackoverflow.com/questions/51224386/validate-json-ld-against-schema-org]
Upvotes: 0
Views: 311
Reputation: 1750
This Blog post from Schema.org (and this GitHub issue have some links to some tools:
These seem to be relatively abandoned but might be a good starting place.
Upvotes: 0