{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-oauth-client-registration-request-schema.json",
  "title": "OauthClientRegistrationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-oauth-api-openapi.yml#/components/schemas/OauthClientRegistrationRequest",
  "type": "object",
  "properties": {
    "client_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "redirect_uris": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "minItems": 1,
      "maxItems": 10
    },
    "grant_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token"
        ]
      },
      "default": [
        "authorization_code",
        "refresh_token"
      ]
    },
    "scope": {
      "type": "string",
      "default": ""
    },
    "token_endpoint_auth_method": {
      "type": "string",
      "enum": [
        "none",
        "client_secret_basic",
        "client_secret_post"
      ],
      "default": "none"
    },
    "contact": {
      "type": "string",
      "format": "email"
    }
  },
  "required": [
    "client_name",
    "redirect_uris"
  ]
}