Validate entities after setting fields in registries #70
Labels
c/application server
This is related to the Application Server
c/identity server
This is related to the Identity Server
c/join server
This is related to the Join Server
c/network server
This is related to the Network Server
Summary:
Validate entities after setting fields in registries, before storing it.
Why do we need this?
We need to verify that an entity doesn't get in an invalid state after setting individual fields, i.e. depending fields or conflicting things.
What is already there? What do you see now?
No validation in the registries.
What is missing? What do you want to see?
Validation in each registry.
How do you propose to implement this?
After
SetFields()
, callValidate()
and return the error if any.Original issue: https://github.com/TheThingsIndustries/lorawan-stack/issues/1348 by @johanstokking
The text was updated successfully, but these errors were encountered: