Skip to content

Conversation

@pankaj-bind
Copy link
Contributor

Description:
This PR adds robust input validation to the RouteParams.from_file method in WeatherRoutingTool/routeparams.py. Previously, malformed JSON input files could lead to runtime errors when loading route parameters. The updated method now includes comprehensive checks for required fields and their data types, raising descriptive ValueError exceptions. This improves the application's stability and prevents crashes from invalid route data.

Files Modified:

  • WeatherRoutingTool/routeparams.py

**Description:**
This PR adds robust input validation to the `RouteParams.from_file` method in `WeatherRoutingTool/routeparams.py`. Previously, malformed JSON input files could lead to runtime errors when loading route parameters. The updated method now includes comprehensive checks for required fields and their data types, raising descriptive `ValueError` exceptions. This improves the application's stability and prevents crashes from invalid route data.

**Files Modified:**
* `WeatherRoutingTool/routeparams.py`
@pankaj-bind
Copy link
Contributor Author

Hey @kdemmich, would you please review this PR?

@kdemmich
Copy link
Collaborator

Hi @pankaj-bind, due to the holiday season, PR reviews might take a bit longer than usual. We apologise and will address your PR as soon as possible.

@pankaj-bind
Copy link
Contributor Author

Hey @kdemmich, any update?

@kdemmich
Copy link
Collaborator

kdemmich commented Oct 8, 2025

Hi @pankaj-bind , thank you for your PR. We appreciate the time and effort that was put into it but, unfortunately, we decided to decline the PR due to its limited added value to the tool. We apologize for the belated review.

In this context, I would like to take the chance to point you to our updated guidelines for software contributions which require to follow 52 North's CLA guidlines for all future PRs.

@kdemmich kdemmich closed this Oct 8, 2025
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.

2 participants