{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmos/json-schema/farmos-server-info-schema.json",
  "title": "ServerInfo",
  "description": "farmOS server metadata",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/farmos-server-info-api-openapi.yml#/components/schemas/ServerInfo",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "links": {
          "type": "object",
          "description": "Available resource type endpoints",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "href": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        },
        "farm": {
          "type": "object",
          "description": "Farm details",
          "properties": {
            "name": {
              "type": "string",
              "description": "Farm name"
            },
            "url": {
              "type": "string",
              "format": "uri",
              "description": "Farm URL"
            },
            "version": {
              "type": "string",
              "description": "farmOS version string"
            },
            "system_of_measurement": {
              "type": "string",
              "enum": [
                "metric",
                "us"
              ],
              "description": "Measurement system"
            }
          }
        },
        "user": {
          "type": "object",
          "description": "Authenticated user details",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid"
            },
            "type": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}