{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/terminal49/json-schema/terminal49-terminal-single-schema.json",
  "title": "TerminalSingle",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/terminal49-terminals-api-openapi.yml#/components/schemas/TerminalSingle",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/TerminalResource"
    }
  },
  "$defs": {
    "TerminalAttributes": {
      "type": "object",
      "properties": {
        "nickname": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "firms_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "smdg_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "port_locode": {
          "type": "string"
        }
      }
    },
    "TerminalResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "terminal"
          ]
        },
        "attributes": {
          "$ref": "#/$defs/TerminalAttributes"
        }
      }
    }
  }
}