-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add documentation on how to add validation for custom types #499
Comments
This means that the descriptor file does not contain the struct being used. We have an oversight in this process. A user might want validation of a struct without doing auto-generation. Is that what is happening here? It might be better to make this warning message a debug message. |
we currently throw a warning when there is no valid entry for a custom struct validation. We want to add validation for the DynamicInverter and also make sure that the validations on the field values of components are conducted. |
My earlier statement was incorrect. You can define a validation descriptor for a struct that is not auto-generated by adding an entry here: https://github.com/NREL-SIIP/PowerSystems.jl/blob/master/src/descriptors/power_system_structs.json#L9581. There are a few options:
|
@jd-lara another stale issue -- we currently have very sparse documentation for validation, but this doesn't seem to be a documentation problem on its own. I'm removing the label. |
It isn't clear currently what's the process to avoid the warning
The text was updated successfully, but these errors were encountered: