-
Notifications
You must be signed in to change notification settings - Fork 492
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
NAS-131559 / 25.04 / Remove accepts style decorator from apps plugin #15225
base: master
Are you sure you want to change the base?
Conversation
|
||
|
||
class AppConfigResult(BaseModel): | ||
result: AppConfig |
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.
To save the extra model this could be result: dict
, same as AlertEntry.metadata
unless we know at least one of the fields in AppConfig
.
result: AppEntry | ||
|
||
|
||
class AppUpdate(BaseModel): |
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.
No ForUpdateMetaclass
? Setting defaults here may clear out the fields not provided in the call params depending on how app.update
updates the fields.
pass | ||
|
||
|
||
class AppContainerIDResult(BaseModel): |
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.
We should try and keep Args
and Result
model pairs together.
Context
Removes accept style decorator from app plugin.