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

Fix broken config validation for required parameters #2683

Merged
merged 3 commits into from
Jan 15, 2022

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented Jan 14, 2022

The ConfigDescriptionValidator implementation did not iterate over the content of the ConfigDescription but over the content of the provided configuration. As a result parameters that were missing (and not just set to null) are not detected.

Tests results are re-ordered due to fixed typos.

Signed-off-by: Jan N. Klug github@klug.nrw

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jan N. Klug <github@klug.nrw>
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the bug! I have one small comment below.

Signed-off-by: Jan N. Klug <github@klug.nrw>
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Thanks!

@wborn wborn merged commit dff5fde into openhab:main Jan 15, 2022
@wborn wborn added this to the 3.3 milestone Jan 15, 2022
@wborn wborn added the bug An unexpected problem or unintended behavior of the Core label Jan 15, 2022
@wborn wborn changed the title fix broken config validation for required parameters Fix broken config validation for required parameters Jan 15, 2022
@J-N-K J-N-K deleted the bug-configvalidation branch January 15, 2022 13:41
wborn added a commit to wborn/openhab-addons that referenced this pull request Jan 15, 2022
The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
wborn added a commit to wborn/openhab-addons that referenced this pull request Jan 15, 2022
The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
wborn added a commit to wborn/openhab-addons that referenced this pull request Jan 15, 2022
The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
jlaur pushed a commit to openhab/openhab-addons that referenced this pull request Jan 15, 2022
#12056)

The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
moesterheld pushed a commit to moesterheld/openhab-addons that referenced this pull request Jan 18, 2022
openhab#12056)

The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
openhab#12056)

The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Apr 27, 2022
openhab#12056)

The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
openhab#12056)

The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
openhab#12056)

The validation did not fail previously because it was broken and fixed in openhab/openhab-core#2683

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
Signed-off-by: Jan N. Klug <github@klug.nrw>
GitOrigin-RevId: dff5fde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants