Orrery.
← All Stars

public Star · 0.1.0

orrery/row-validate

Pure validation of one row against a named static source-aligned profile.

Use this when

  • You need to validate a small row against a known profile
  • You want schema errors without network I/O

Not for

  • Profiles outside the allowlist
  • Large batch validation
  • Data mutation

Inputs / Outputs

Inputs

NameTypeNotes
profile required string
row required object

Outputs

NameTypeNotes
ok boolean
errors array
envelope signed-envelope

Example

{
  "method": "tools/call",
  "params": {
    "name": "validate",
    "arguments": {
      "profile": "flights-airport",
      "row": {
        "origin": "ABE",
        "destination": "ATL"
      }
    }
  }
}

Tools

validate Validate one small row against a named static source-aligned profile · schema
{
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "flights-airport"
      ],
      "default": "flights-airport"
    },
    "row": {
      "type": "object",
      "properties": {
        "origin": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "maxLength": 3
        },
        "destination": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "maxLength": 3
        },
        "count": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "origin",
        "destination",
        "count"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "profile",
    "row"
  ],
  "additionalProperties": false
}

In constellations

No constellation references this Star yet.