TypeSpec · JSON Structure

Typespec Model Structure

Structural definition of a TypeSpec model type

Type: object Properties: 8
API DesignCode GenerationOpenAPIProtocol BuffersSpecification Language

Typespec Model Structure is a JSON Structure definition published by TypeSpec, describing 8 properties. It conforms to the https://json-schema.org/draft/2020-12/schema meta-schema.

Properties

kind name namespace properties baseModel indexer decorators isFinished

Meta-schema: https://json-schema.org/draft/2020-12/schema

JSON Structure

typespec-model-structure.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TypeSpec Model Structure",
  "description": "Structural definition of a TypeSpec model type",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": ["Model"],
      "description": "TypeSpec node kind"
    },
    "name": {
      "type": "string",
      "description": "Model type name"
    },
    "namespace": {
      "type": "object",
      "description": "Containing namespace"
    },
    "properties": {
      "type": "object",
      "description": "Map of property names to ModelProperty nodes",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "name": {"type": "string"},
          "type": {"type": "object"},
          "optional": {"type": "boolean"},
          "decorators": {"type": "array"}
        }
      }
    },
    "baseModel": {
      "type": "object",
      "description": "Extended base model (via `extends`)"
    },
    "indexer": {
      "type": "object",
      "description": "Index signature for record types"
    },
    "decorators": {
      "type": "array",
      "description": "Applied decorators"
    },
    "isFinished": {
      "type": "boolean",
      "description": "Whether the model has been fully resolved"
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/typespec-model-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.