-
Notifications
You must be signed in to change notification settings - Fork 310
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
as: Sync normalized payload data model and validation to the latest schema #6154
as: Sync normalized payload data model and validation to the latest schema #6154
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks
CI is broken, will make sure this lands in 3.25.2. |
@pablojimpas can you rebase on latest |
Done! Let's see if it works now. |
I am not sure if the rebase was entirely correct - I would've have expected to see only your original 3 commits. Could you try to Edit: Seems the syntax is not ok anyway https://github.com/TheThingsNetwork/lorawan-stack/actions/runs/4700691397/workflow . I will check again. |
a06361e
to
855b3ba
Compare
Sorry @adriansmares, it's fixed now. I will rebase again once the CI issue is solved. |
Great ! I have merged #6156 - let's see if CI is happier now, after you rebase again. |
Sync Air's data model and validation with the latest JSON schema
These kind of of validation checks are so common and might appear even more as the schema grows. In the same way that definitions are used in the JSON schema for defining these types, here I've abstracted them to separate functions to facilitate the maintenance down the road. I've also added some test to increase coverage and explicitly test the latest additions.
855b3ba
to
76a4ecd
Compare
In TheThingsNetwork#6154 the new Soil object from the normalized payload schema was added to the Application Server. This commit shows that new object in the event view of the Console.
Summary
References TheThingsNetwork/lorawan-devices#395
While responding to a TTN forum thread, I've discovered that the current version of TTS does not support all the normalized payload properties that are present in the schema at this moment. This PR updates the data model and the validation code in TTS to keep in sync with the current JSON schema.
Changes
CO2
andLightIntensity
properties to theAir
object.Soil
object with all of its properties.Testing
Regressions
Notes for Reviewers
Checklist
README.md
for the chosen target branch.CHANGELOG.md
.CONTRIBUTING.md
, there are no fixup commits left.