Skip to content

Conversation

@JornC
Copy link
Member

@JornC JornC commented Sep 25, 2025

This change is actually somewhat debatable; the previous implementation was simpler and arguably more robust, however strictly speaking it was too broad by also validating the heat content when the heat content type is set to FORCED (in which case heat content is not used, but the outflow values are).

The implementation in this PR makes the validation assert precisely the valid/invalid conditions, although on the surface it is slightly more complex.


Of note: the check is inclusive, @Min and @Max was also inclusive, despite the previous message stating it as exclusive

The @JsonIgnore is to keep the json response from being altered

Added a new method to validate heat content based on its type, ensuring that for non-forced heat content types, the heat content is present and falls within the defined limits. Removed the previous min/max annotations from the getHeatContent method to streamline validation logic.
Copy link
Member

@Hilbrand Hilbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JornC JornC merged commit 14b6fbf into aerius:main Sep 25, 2025
1 check 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.

2 participants