{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/genhttp-dev/json-schema/genhttp-dev-feature-response-schema.json",
  "title": "FeatureResponse",
  "description": "A feature: a change being worked on beside the lambda.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/genhttp-dev-v1-openapi.json#/components/schemas/FeatureResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "key": {
      "type": "string",
      "description": "What every call about it takes, and what its preview is reached by"
    },
    "name": {
      "type": "string",
      "description": "What it is, in a few words"
    },
    "branch": {
      "type": "string",
      "description": "The branch it is in the lambda's git repository - given when it starts, and kept when it is renamed"
    },
    "specification": {
      "type": [
        "string",
        "null"
      ],
      "description": "What the user wants from it and why"
    },
    "change": {
      "type": [
        "string",
        "null"
      ],
      "description": "What it changes, in one line"
    },
    "base": {
      "type": "integer",
      "description": "The version it is based on",
      "format": "int32"
    },
    "newest": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The newest version of the lambda",
      "format": "int32"
    },
    "mergeable": {
      "type": "boolean",
      "description": "Whether it can be merged: it is based on the newest version"
    },
    "origin": {
      "type": [
        "string",
        "null"
      ],
      "description": "How it was started: `api`, `agent` or `git`"
    },
    "created": {
      "type": "string",
      "description": "When it was started",
      "format": "date-time"
    },
    "modified": {
      "type": "string",
      "description": "When it was last saved or changed",
      "format": "date-time"
    },
    "online": {
      "type": "boolean",
      "description": "Whether its preview is online"
    },
    "current": {
      "type": "boolean",
      "description": "Whether its preview is online and serves what the feature holds now, rather than an earlier save"
    },
    "previewed": {
      "type": [
        "string",
        "null"
      ],
      "description": "When its preview was last put online, while it is",
      "format": "date-time"
    },
    "previewPath": {
      "type": "string",
      "description": "Where its preview answers on this site, whether it is online or not: `/features/{key}/`"
    },
    "revision": {
      "type": "integer",
      "description": "How many times its files were saved, counting the ones it began with. Passed back with a save, it keeps that save from replacing one made elsewhere.",
      "format": "int32"
    }
  }
}