Skip to content

grid

Validates a GRId (Global Release Identifier) used to identify music releases.

Options

OptionTypeDefaultDescription
messagestringlocale defaultCustom error message

Playground

Valid values

ValueNotes
"A1-2425G-ABC1234002-M"Valid GRId with hyphens
"A12425GABC1234002M"Valid GRId without hyphens

Invalid values

ValueReason
"A1-2425G-ABC1234002-N"Fails check character
"INVALID"Does not match GRId format

Notes

  • Empty string ("") always returns valid: true. Combine with notEmpty to require a value.
  • GRId format: scheme identifier (2) + issuer code (5) + release number (10) + check character (1).

Released under the MIT License.