Test First · JSON Structure

Test First Specification Structure

A test-first specification document that defines expected behavior before implementation, serving as both a test and a specification.

Type: object Properties: 11 Required: 4
Behavior-Driven DevelopmentBest PracticesMethodologySoftware DesignSoftware DevelopmentTesting

TestFirstSpecification is a JSON Structure definition published by Test First, describing 11 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id title description format version component scenarios status author created_at tags

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/test-first/refs/heads/main/json-structure/test-first-specification-structure.json",
  "name": "TestFirstSpecification",
  "description": "A test-first specification document that defines expected behavior before implementation, serving as both a test and a specification.",
  "properties": {
    "id": {
      "description": "Unique identifier for the specification.",
      "type": "string"
    },
    "title": {
      "description": "Title of the specification.",
      "type": "string"
    },
    "description": {
      "description": "Detailed description of the behavior being specified.",
      "type": "string"
    },
    "format": {
      "enum": [
        "gherkin",
        "openapi",
        "json-schema",
        "pact",
        "junit",
        "rspec",
        "jasmine"
      ],
      "description": "The format used to express the specification.",
      "type": "string"
    },
    "version": {
      "description": "Version of the specification.",
      "type": "string"
    },
    "component": {
      "description": "The software component or API this specification covers.",
      "type": "string"
    },
    "scenarios": {
      "items": {
        "$ref": "#/definitions/Scenario"
      },
      "description": "Individual test scenarios defined in this specification.",
      "type": "array"
    },
    "status": {
      "enum": [
        "draft",
        "active",
        "deprecated"
      ],
      "description": "Lifecycle status of the specification.",
      "type": "string"
    },
    "author": {
      "description": "Author of the specification.",
      "type": "string"
    },
    "created_at": {
      "description": "ISO 8601 timestamp when the specification was created.",
      "type": "datetime"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "description": "Tags for filtering and organizing specifications.",
      "type": "array"
    }
  },
  "required": [
    "id",
    "title",
    "format",
    "status"
  ],
  "definitions": {
    "Scenario": {
      "properties": {
        "name": {
          "description": "Name of the scenario.",
          "type": "string"
        },
        "given": {
          "description": "Precondition or initial context for the scenario.",
          "type": "string"
        },
        "when": {
          "description": "The action or event that triggers the behavior.",
          "type": "string"
        },
        "then": {
          "description": "The expected outcome or result.",
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "description": "Tags applied to this scenario.",
          "type": "array"
        }
      },
      "required": [
        "name",
        "then"
      ],
      "type": "object",
      "name": "Scenario"
    }
  },
  "type": "object"
}

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/test-first-specification-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 email required.

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