Skip to content

Add lower bounds for most numeric values in metadata #482 - #483

Merged
gkreitz merged 1 commit into
Kattis:masterfrom
gkreitz:482_lower_bounds_on_numbers_in_metadata
Aug 31, 2026
Merged

Add lower bounds for most numeric values in metadata #482#483
gkreitz merged 1 commit into
Kattis:masterfrom
gkreitz:482_lower_bounds_on_numbers_in_metadata

Conversation

@gkreitz

@gkreitz gkreitz commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Adds lower bounds for most numeric values in metadata (including time limit multiplier, as requested in #482).

I decided to add these as Pydantic checks. That means the error is rather rough (it's fatal, we'll simply stop parsing), but I think that's acceptable. I don't think it's a very common mistake to hit any of these limits.

Fixes #482

@gkreitz
gkreitz merged commit f0687b5 into Kattis:master Aug 31, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

Disallow time_multiplier < 1

2 participants