{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yawplet/json-schema/yawplet-oauth-client-registration-schema.json",
  "title": "OAuthClientRegistration",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yawplet-oauth-api-openapi.yml#/components/schemas/OAuthClientRegistration",
  "type": "object",
  "required": [
    "redirect_uris"
  ],
  "properties": {
    "redirect_uris": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "https, or http on localhost, 127.0.0.1 or [::1] (any port). No fragments."
    },
    "client_name": {
      "type": "string",
      "maxLength": 100,
      "description": "Shown to the account owner on the consent page."
    },
    "token_endpoint_auth_method": {
      "type": "string",
      "enum": [
        "none"
      ],
      "description": "Public clients only."
    },
    "grant_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token"
        ]
      }
    },
    "response_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "code"
        ]
      }
    }
  }
}