{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://omaflake.dev/schema/base/v2.json",
  "title": "omaflake macOS base",
  "description": "omaflake-base.json in a macOS base folder (bases/mac-base-<build>/ or, for a further credential of the same build, bases/mac-base-<build>-<credential>/; plan B166): the credential its guest user was created from or assigned – macOS image builds log in with its user and stored password. Written right after the base is cloned. v2 adds ownKey and version (a v1 file reads as ownKey false).",
  "type": "object",
  "properties": {
    "$schema": {
      "const": "https://omaflake.dev/schema/base/v2.json"
    },
    "credential": {
      "description": "The credential's ID in config.json (\"c-\" and 12 hex digits)",
      "type": "string"
    },
    "credentialName": {
      "description": "The credential's name when it was set",
      "type": "string"
    },
    "user": {
      "description": "The base's guest user",
      "type": "string"
    },
    "ownKey": {
      "description": "omaflake's own SSH key (plan B160) went into the guest's authorized_keys – false for bases made before it; their builds need the user's key in the ssh-agent",
      "type": "boolean"
    },
    "version": {
      "description": "The macOS version (\"27.0.1\") when it was known at creation (Apple's IPSW)",
      "type": "string"
    }
  },
  "required": [
    "$schema",
    "credential",
    "credentialName",
    "user"
  ],
  "additionalProperties": false
}
