Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex pattern for Registry_Record in Status definition allows empty value (Counter API json defintion) #302

Open
HugoImaios opened this issue Feb 6, 2025 · 0 comments

Comments

@HugoImaios
Copy link

In the JSON API definition, for the Status schema, there is a Registry_Record attribute, which is said to match the following pattern :
^(https://registry.countermetrics.org/(platform|usage-data-host)/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|)$
which allows for an empty value when its description states that Report providers who do not have a Registry record MUST omit this element.
I think the pattern may have been duplicated from the other Registry_Record definition in the Base_Report_Header element, but this one one legitimately allows empty values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant