{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/invoicepdfs-com/json-schema/invoicepdfs-com-code-list-response-schema.json",
  "title": "CodeListResponse",
  "description": "A coded list from a standard, and whether it is the whole of one.\n\n`exhaustive` is the field that changes what a client does. `true` means a\nvalue outside `data` is wrong, so the list can back a picker with no escape\nhatch. `false` means `data` is a shortlist of the codes an invoice usually\nneeds — the API accepts any code, nothing validates against this, and\ntreating it as closed rejects values that are perfectly valid.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invoicepdfs-com-reference-api-openapi.yml#/components/schemas/CodeListResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/CodeOut"
      },
      "type": "array",
      "title": "Data"
    },
    "standard": {
      "type": "string",
      "title": "Standard",
      "description": "The code list these values come from."
    },
    "exhaustive": {
      "type": "boolean",
      "title": "Exhaustive",
      "description": "Whether `data` is the complete list. When false it is a shortlist and other codes remain valid."
    }
  },
  "type": "object",
  "required": [
    "data",
    "standard",
    "exhaustive"
  ],
  "$defs": {
    "CodeOut": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "label": {
          "type": "string",
          "title": "Label"
        }
      },
      "type": "object",
      "required": [
        "code",
        "label"
      ],
      "title": "CodeOut"
    }
  }
}