{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://s3client.com/schemas/s3client-provider-preset-v1.schema.json",
  "title": "S3Client provider preset",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "kind",
    "schemaVersion",
    "preset"
  ],
  "properties": {
    "kind": {
      "const": "s3client-provider-preset"
    },
    "schemaVersion": {
      "$ref": "#/$defs/version"
    },
    "software": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name",
        "website"
      ],
      "properties": {
        "name": {
          "const": "S3Client"
        },
        "website": {
          "const": "https://s3client.com"
        }
      }
    },
    "preset": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "serviceProfile"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*$",
          "maxLength": 128
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096,
          "pattern": "^(?![\\u0009-\\u000d\\u0020\\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000])(?![\\s\\S]*\\u0000)(?:[\\s\\S]*[^\\u0009-\\u000d\\u0020\\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000])?(?![\\s\\S])"
        },
        "serviceProfile": {
          "$ref": "https://s3client.com/schemas/s3client-service-profile-v1.schema.json"
        }
      }
    }
  },
  "$defs": {
    "version": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "major",
        "minor"
      ],
      "properties": {
        "major": {
          "const": 1
        },
        "minor": {
          "const": 0
        }
      }
    }
  }
}
