-
Notifications
You must be signed in to change notification settings - Fork 29
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
Extra attributes should be forbidden in nested Input models #809
Milestone
Comments
8 tasks
8 tasks
Nested input models are being moved over to |
This was referenced Nov 4, 2024
6 tasks
This was referenced Nov 25, 2024
This was referenced Dec 4, 2024
Open
6 tasks
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nested input models like
class BgpAfi(BaseModel)
don't inherit fromAntaTest.Input
meaning they don't forbid extra attributes. This could lead to unexpected behaviors for a user who wants to override a default value but accidently provides the wrong key.BGP tests for example. If a user provides
vrfs
instead ofvrf
, ANTA will silently ignorevrfs
and use the default value ofvrf
. An error should be raised to the user sincevrfs
is not supported.The text was updated successfully, but these errors were encountered: