Skip to content
Fourohtwo

code.halowerk.com/v1/openapi-examples-fill

Fill missing examples in an OpenAPI 3.0/3.1 document (responses, request bodies, parameters, optionally component schemas) with schema-valid placeholders and report existing examples that violate their schema. Walks every media type of responses and request bodies, every parameter with a schema and, if requested, every component schema.

BaseAnswering
POSThttps://code.halowerk.com/v1/openapi-examples-fill

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://code.halowerk.com/v1/openapi-examples-fill", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"spec":{"info":{"title":"Users","version":"1"},"openapi":"3.0.3","paths":{"/users":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"email":{"format":"email","type":"string"},"id":{"minimum":1,"type":"integer"}},"required":["id","email"],"type":"object"}}},"description":"ok"}}}}}}}),
});
console.log(await res.json());

Example input

{
  "spec": {
    "info": {
      "title": "Users",
      "version": "1"
    },
    "openapi": "3.0.3",
    "paths": {
      "/users": {
        "get": {
          "responses": {
            "200": {
              "content": {
                "application/json": {
                  "schema": {
                    "properties": {
                      "email": {
                        "format": "email",
                        "type": "string"
                      },
                      "id": {
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "email"
                    ],
                    "type": "object"
                  }
                }
              },
              "description": "ok"
            }
          }
        }
      }
    }
  }
}