Validar ISBN
isbn-validateValida un ISBN-10 (mod 11) o ISBN-13 (prefijo 978/979) y devuelve ambas formas cuando es posible. Cuándo: hay que verificar sin conexión el formato y el dígito de control de un identificador antes de usarlo. No para: validar un ISSN (issn-validate). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Validates an ISBN-10 (mod 11, X allowed) or ISBN-13 (EAN mod 10, 978/979 prefix) and returns both forms when convertible. When: an identifier's format and check digit have to be verified offline before it is used. Not for: validating an ISSN (issn-validate). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isbn | Yes | ISBN (string; required; up to 64 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| valid | No | ||
| isbn10 | No | ||
| isbn13 | No |