An issue originating from improper input validation, allowing non-numeric inputs to cause a server error during the card number validation process.

In this example, the server errors when it attempts to convert non-numeric characters to integers, which is not properly handled in the card number validation process.

post/internal-server-errors/improper-input-type-handling

Request

  • Base URL: https://example.schemathesis.io
  • URL: https://example.schemathesis.io/internal-server-errors/improper-input-type-handling
  • Auth: api_key (a scheme the document does not define)

Request body

numberstring required

The credit card number to validate.

Example request

{
  "number": "1234567812345670"
}

Response

Card number validation result

successboolean required

Indicates whether the card number is valid.

errorstring

Error text if any.

Changes

No recorded changes to this operation across all 1 revision of this API.