Validate JSON-LD
web.validate_json_ld
Overview
You send a JSON-LD document and we confirm it parses as JSON-LD — duplicate keys and all — then, if you name a profile, check the node against a pinned copy of the schema.org rules for an Article, a Product, or an Organization, or against property rules you supply yourself. You get back the types we saw, the contexts the document names, and a finding for every required property that is missing and every recommended one worth adding. A remote @context is noted but never fetched, so this is a completeness check rather than semantic reasoning.
A structured-data check that reaches out to schema.org to do its job is a check that gives you a different answer when the network has a bad day.
Reliability
The same document and the same profile always give the same findings, and nothing leaves the platform — the schema.org rules are a pinned copy held here, so no address is contacted even when the document names one. Worth knowing about scope: the required, recommended, and unknown-property checks look at one node — the first entry of @graph if there is one, otherwise the object itself or the first element of an array — while the type check accepts a match from anywhere in the document. Four failures can stop the call. JSON_LD_INVALID_JSON and JSON_LD_DUPLICATE_KEY mean the text is not valid JSON, or the same key appears twice in one object: fix the document and send it again, and the message names the spot. JSON_LD_NODE_LIMIT_EXCEEDED means it nests past 128 levels or holds more than 10000 objects, so split it before retrying, because the same input fails the same way. JSON_LD_CONTEXT_REMOTE_FORBIDDEN means you asked for remote contexts on a document that names one: turn resolveRemoteContexts off and the same call succeeds with a warning. Bad input is rejected outright too — a missing document, one that is not an object or an array of objects, an unrecognised profile, or a non-boolean switch.
Context footprint
The reply carries findings and type names, never a copy of the document, so it stays small; strictUnknownProperties on a wide node is the one thing that grows it, and maxErrors caps that. A successful call costs 1 execution credit.
When to use it
When you hold the markup and want to know if it parses and looks complete.
When you need a real JSON-LD processor, remote contexts, or HTML pulled apart.
Runs on Jackson, set to reject duplicate keys, over a pinned schema.org rule set.
Scope
Non-goals
- Does not fetch a remote @context, and refuses to pretend otherwise
- Does not expand, flatten, or reason over the graph the way a JSON-LD processor would
- Does not fetch a page or pull the markup out of HTML for you
- Does not check every schema.org type — only the three pinned profiles and your own rules
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
What this means
This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.
Squillify guarantees
- Runs inside Squillify
- This skill runs inside Squillify.
- Payloads are not sent to an external service by this skill.
- Squillify does not permanently store submitted payloads.
- Telemetry records metadata only, not submitted content.
- Submitted payloads are not used for training.
- Submitted payloads are not reviewed by humans.
- This skill does not target sensitive data.
- The response does not contain submitted content.
Your responsibility
Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| document | object | Yes | Purpose-bound JSON-LD document object with caller-defined vocabulary properties — unconstrained RFC 8259 JSON items. |
| profile | string | No | Validation profile; omit it for syntax_only. |
| customRules | object | No | Purpose-bound custom rule object; omit it when no extra required terms apply. It contains from 0 through 256 purpose-bound properties — unconstrained RFC 8259 JSON items. |
| options | object | No | Purpose-bound bounded validation option object; omit it to use safe defaults. It contains from 0 through 256 purpose-bound properties — unconstrained RFC 8259 JSON items. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| valid | boolean | Yes | Whether no error-severity JSON-LD finding exists. |
| profileValid | boolean | Yes | Whether the selected profile requirements pass. |
| findings | array | Yes | Bounded array of structured JSON-LD findings. The item shape is defined by the nested schema and the array contains from 0 through 20000 items. |
| nodeTypes | array | Yes | Bounded array of discovered JSON-LD node types. The item shape is defined by the nested schema and the array contains from 0 through 20000 items. |
| contextIdentifiers | array | Yes | Bounded array of discovered JSON-LD context identifiers. The item shape is defined by the nested schema and the array contains from 0 through 20000 items. |
| warnings | array | Yes | Bounded array of non-fatal safe warning strings. The item shape is defined by the nested schema and the array contains from 0 through 20000 items. |
| _meta | object | Yes | Closed validation metadata receipt with counts, profile, and truncation flags. Its documented web receipt properties are bounded to 128 entries — unconstrained RFC 8259 JSON items. |
API contract
POST /v1/executecurl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"web.validate_json_ld","input":{"document":{"@type":"Organization","name":"Acme"}}}'import { Squillify } from "@squillify/sdk";
const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });
const { output } = await sq.execute("web.validate_json_ld", {"document":{"name":"Acme","@type":"Organization","@context":"https://schema.org"},"profile":"schema_org_organization"});Errors
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
| JSON_LD_INVALID_JSON | 400 | No | The request payload failed this skill's input validation. |
| JSON_LD_DUPLICATE_KEY | 400 | No | The request payload failed this skill's input validation. |
| JSON_LD_NODE_LIMIT_EXCEEDED | 429 | No | A size, quota, rate, or time limit was exceeded. |
| JSON_LD_CONTEXT_REMOTE_FORBIDDEN | 422 | No | The input was rejected as unsafe. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 KiB |
Limitations
- Does not fetch a remote @context, and refuses to pretend otherwise
- Does not expand, flatten, or reason over the graph the way a JSON-LD processor would
- Does not fetch a page or pull the markup out of HTML for you
- Does not check every schema.org type — only the three pinned profiles and your own rules
- Resolving or expanding a remote @context
- Reasoning about what the data means rather than what it contains
How to call
POST /v1/execute (requires authentication)
{
"skillKey": "web.validate_json_ld",
"input": {
"document": {
"name": "Acme",
"@type": "Organization",
"@context": "https://schema.org"
},
"profile": "schema_org_organization"
}
}Examples
An Organization that passes but could say more
{
"document": {
"name": "Acme",
"@type": "Organization",
"@context": "https://schema.org"
},
"profile": "schema_org_organization"
}{
"findings": [
{
"details": {},
"path": "/url",
"code": "PROFILE_RECOMMENDED_MISSING",
"message": "missing recommended property: url",
"severity": "warning"
},
{
"details": {},
"path": "/logo",
"code": "PROFILE_RECOMMENDED_MISSING",
"message": "missing recommended property: logo",
"severity": "warning"
}
],
"nodeTypes": [
"Organization"
],
"_meta": {
"nodeCount": 1,
"profile": "schema_org_organization",
"vocabularyProfile": "schema-org-pinned-1"
},
"profileValid": true,
"valid": true,
"contextIdentifiers": [
"https://schema.org"
],
"warnings": [
"Remote @context recognized but not resolved: https://schema.org"
]
}Checking only that a small node parses
{
"document": {
"@type": "Thing",
"name": "Example"
},
"profile": "syntax_only"
}{
"findings": [],
"nodeTypes": [
"Thing"
],
"_meta": {
"nodeCount": 1,
"profile": "syntax_only",
"vocabularyProfile": "schema-org-pinned-1"
},
"profileValid": true,
"valid": true,
"contextIdentifiers": [],
"warnings": []
}Recommended use cases
- Catch missing schema.org properties before a page goes live
- Hold structured data to your own house rules as part of a build
- Check what web.extract_json_ld pulled out of a page
Avoid for
- Resolving or expanding a remote @context
- Reasoning about what the data means rather than what it contains
Related skills
Composable with
Safety & privacy
- Runs without calling any external service.
- Your payloads are never stored permanently.
- Telemetry captures metadata only — never your payload contents.
- We never train models on your payloads.
- No human reviews your payloads.