{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://astrocollabapi.com/schemas/JoinRequest.schema.json",
  "title": "JoinRequest",
  "type": "object",
  "properties": {
    "hours": {
      "type": "number",
      "format": "double",
      "minimum": 0,
      "maximum": 24,
      "description": "Hours per filter to give, capped by the project's goal. 0 takes the goal.",
      "default": 0
    },
    "exposure": {
      "type": "number",
      "format": "double",
      "minimum": 0,
      "maximum": 3600,
      "description": "Sub length for a filter with no entry in `exposures`. 0 takes the middle of the project's range.",
      "default": 0
    },
    "exposures": {
      "type": "object",
      "unevaluatedProperties": {
        "type": "number",
        "format": "double"
      },
      "description": "The rig's own sub length per filter, seconds."
    },
    "night": {
      "$ref": "NightName.schema.json",
      "description": "The night the rig is in, so the first deal is tonight's.",
      "default": ""
    },
    "moon": {
      "anyOf": [
        {
          "type": "number",
          "format": "double"
        },
        {
          "type": "null"
        }
      ],
      "minimum": 0,
      "maximum": 1,
      "description": "How much of the Moon is lit tonight, 0–1."
    },
    "moonUp": {
      "anyOf": [
        {
          "type": "number",
          "format": "double"
        },
        {
          "type": "null"
        }
      ],
      "minimum": 0,
      "maximum": 1,
      "description": "The fraction of the dark hours the Moon is up, 0–1."
    }
  }
}
