You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid properties are checked for incorrectly, causing them to bubble up through the component tree for similarly named fields.
For example, naming an inverter with an invalid name* will trigger an error on the system name field due to the naive matching approach used here:
Errors refer to the location of the offending value in two different formats:
Ajv provides the dataPath field, with a string path using / separators, e.g. /arrays/0/modules_per_string
API responses contain a loc key which is an array of paths. typically for a model error, preceded by body indicating that the error originates from the posted request body.
It would probably be best to create a unified error handler and coax these into a similar format.
The text was updated successfully, but these errors were encountered:
Invalid properties are checked for incorrectly, causing them to bubble up through the component tree for similarly named fields.
For example, naming an inverter with an invalid
name*
will trigger an error on the system name field due to the naive matching approach used here:solarperformanceinsight/dashboard/src/components/ModelBase.vue
Line 36 in 0d9f4aa
Errors refer to the location of the offending value in two different formats:
dataPath
field, with a string path using/
separators, e.g./arrays/0/modules_per_string
loc
key which is an array of paths. typically for a model error, preceded bybody
indicating that the error originates from the posted request body.It would probably be best to create a unified error handler and coax these into a similar format.
The text was updated successfully, but these errors were encountered: