Skip to content

[MCCS-1667] Allocate schema not compliant with ADR-62

Tom Moynihan requested to merge mccs-1667 into main

The allocate schema currently checks for aperture ID in the form "APXX.YY" where XX >=0 and YY >= 0. According to ADR-62 it should be of the form "APXXX.YY" where XXX > 0 and YY >=0. This MR updates the Json schema in accordance with this.

The validation pattern works as follows: ^AP(?!0{3})\d{3}\.\d{2}$

AP = Literal "AP"

(?!0{3}) = A check that the number this is acting on is greater than 0

\d{3} = A 3 digit padded number (escaped to work as a string)

\. = Literal "." (Escaped for literal character)

\d{2} = A 2 digit padded number (escaped to work as a string)

Edited by Tom Moynihan

Merge request reports