Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

OpenAPI Validator

schema.validate_openapi

ProductionEngine wrapper (Class A)Deterministicstrictfastv1.0.0
File inputNo network

Overview

You send an OpenAPI 3.0.x or 3.1.x document as JSON or YAML, inline or as a file reference, and we tell you whether it holds together structurally. Every complaint the parser raises comes back as a message, split into errors and warnings, alongside the detected specification version, the API title, and how many operations the document declares. We read the document as written and never follow a $ref off to the network. To turn a good document into a list of operations, use schema.extract_openapi_operations. Accepts file input via file_ref — no need to extract file content first.

A structurally broken document breaks gateways, generators and docs quietly and far downstream. You find out here instead, in one call, before anyone builds on it.

Reliability

Deterministic: the same document always produces the same verdict and the same messages, and we never reach out to the network. Note that valid is true only when there is no message at all, so you can see valid false with errorCount zero if everything raised was a warning. We reject the call, and an unchanged retry will not help, when neither document nor file_ref is present, when maxErrors is not an integer, when the content is over 2097152 bytes, when a referenced file is missing, unreadable or over 5000000 bytes, or when the YAML trips our safety limits — an over-long line, more than 50 alias expansions, or nesting deeper than 64 levels.

Context footprint

Content is capped at 2097152 characters whether it arrives inline or through a file reference, and the response carries at most maxErrors short messages. Upload a file first if you would rather not escape a large document inline. A successful call costs 1 execution credit.

When to use it

Before you publish, deploy, or hand off an OpenAPI document, or right after you receive one from someone else.

When the document is already known good and you just want its operations, or when you need references to other documents followed.

Powered by Swagger Parser, the reference OpenAPI parser maintained by the Swagger/OpenAPI community.

Scope

Note
One structural verdict on one OpenAPI 3.0.x or 3.1.x document, in JSON or YAML, with every parser complaint split into errors and warnings.

Non-goals

  • We never list the operations for you — that is schema.extract_openapi_operations
  • We never generate client or server code from the document
  • We never follow a $ref off to another document or to the network

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

parsingvalidation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input2 MBMax file size4.8 MB

File limits

Constraints this skill applies to your input and generated files. The “Limited by” column shows the static source of each cap; none of these can be raised by upgrading your plan.

LimitValueLimited by
Maximum size per input file4.8 MiBSkill maximum

How we handle your data

Sensitive input, safe output
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.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
documentstringNoOpenAPI 3.0.x or 3.1.x document as JSON or YAML text, 1 to 2097152 characters. Required unless file_ref is provided.
file_refstringNoTenant-owned OpenAPI file reference; omit it to read document. When both are sent this one wins.
maxErrorsintegerNoHow many parser messages to keep across errors and warnings; omit it for 100.

Output schema

FieldTypeRequiredDescription
validbooleanYesTrue only when the parser produced a document and raised no message at all.
versionstringNoDeclared specification version such as 3.0.3; omit it when the document could not be parsed.
titlestringNoAPI title from the info block; omit it when none is declared or the document could not be parsed.
operationCountintegerNoHow many operations the document declares; omit it when there is no paths block.
errorCountintegerYesHow many entries the errors array holds after the cap.
errorsarrayYesParser defects, 0 through 10000 closed {message} objects in parser order.
warningCountintegerYesHow many entries the warnings array holds after the cap.
warningsarrayYesParser warnings, 0 through 10000 closed {message} objects whose text contained warn.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"schema.validate_openapi","input":{"document":"openapi: 3.0.3\ninfo:\n  title: Billing API\n  version: 2.1.0\npaths: {}","maxErrors":50}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("schema.validate_openapi", {"document":"openapi: '3.0.3'\ninfo:\n  title: Pet Store\n  version: '1.0.0'\npaths: {}"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • We never list the operations for you — that is schema.extract_openapi_operations
  • We never generate client or server code from the document
  • We never follow a $ref off to another document or to the network
  • Listing the operations a document declares (schema.extract_openapi_operations)
  • Generating client libraries or server stubs
  • Validating a plain JSON Schema, a CSV file, or any non-OpenAPI document

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "schema.validate_openapi",
  "input": {
    "document": "openapi: '3.0.3'\ninfo:\n  title: Pet Store\n  version: '1.0.0'\npaths: {}"
  }
}

Examples

Minimal document passes cleanly

Inputjson
{
  "document": "openapi: '3.0.3'\ninfo:\n  title: Pet Store\n  version: '1.0.0'\npaths: {}"
}
Expected outputjson
{
  "version": "3.0.3",
  "title": "Pet Store",
  "operationCount": 0,
  "errors": [],
  "valid": true,
  "warnings": [],
  "warningCount": 0,
  "errorCount": 0
}

Document is missing its paths block

Inputjson
{
  "document": "openapi: '3.0.3'\ninfo:\n  title: Pet Store\n  version: '1.0.0'",
  "maxErrors": 25
}
Expected outputjson
{
  "title": "Pet Store",
  "warningCount": 0,
  "valid": false,
  "version": "3.0.3",
  "errors": [
    {
      "message": "attribute paths is missing"
    }
  ],
  "errorCount": 1,
  "warnings": []
}
  • Catch a broken API document before you publish it to a gateway or a catalog
  • Gate a pipeline on the document staying structurally sound
  • Sanity-check a document a partner sent you before you build anything on it

Avoid for

  • Listing the operations a document declares (schema.extract_openapi_operations)
  • Generating client libraries or server stubs
  • Validating a plain JSON Schema, a CSV file, or any non-OpenAPI document

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.

Tags

parsingvalidation