{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-validate-code-body-schema.json",
  "title": "ValidateCodeBody",
  "description": "Strcuture to request code verification",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-otp-management-api-openapi.yml#/components/schemas/ValidateCodeBody",
  "type": "object",
  "properties": {
    "authenticationId": {
      "$ref": "#/$defs/AuthenticationId"
    },
    "code": {
      "$ref": "#/$defs/Code"
    }
  },
  "required": [
    "authenticationId",
    "code"
  ],
  "$defs": {
    "AuthenticationId": {
      "type": "string",
      "description": "unique id of the verification attempt the code belongs to.",
      "maxLength": 36
    },
    "Code": {
      "type": "string",
      "description": "temporal, short code to be validated",
      "maxLength": 10
    }
  }
}