Rebuild deterministic country data core - #1
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 831879c118
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| try: | ||
| value = int(value) | ||
| except (TypeError, ValueError) as exc: |
There was a problem hiding this comment.
Reject fractional population values before storing them
When the source supplies a JSON number with a fractional component, such as 123.9, int(value) silently normalizes it to 123 rather than raising SourceValidationError. This lets malformed source data pass the stated integer validation and stores a corrupted population value; verify that numeric inputs are integral before converting them.
Useful? React with 👍 / 👎.
Summary
refresh-dataFlask CLI commandValidation target
Repository rename
After this change is merged, the repository should be renamed from
flask-ai-country-apitoflask-country-data-apiso the public name matches the implementation.