Common: Remove `class Meta` from marshmallow schemas

`RAISE` is the default behavior, so there's no need to copy/paste this
all over the place.
This commit is contained in:
Mike Salvatore 2022-06-16 20:01:28 -04:00
parent afd3160c2f
commit db9d57a526
1 changed files with 1 additions and 10 deletions

View File

@ -1,7 +1,7 @@
from dataclasses import dataclass
from typing import Dict, List
from marshmallow import RAISE, Schema, fields, post_load
from marshmallow import Schema, fields, post_load
from marshmallow_enum import EnumField
from common import OperatingSystems
@ -16,9 +16,6 @@ class CustomPBAConfiguration:
class CustomPBAConfigurationSchema(Schema):
class Meta:
unknown = RAISE
linux_command = fields.Str()
linux_filename = fields.Str()
windows_command = fields.Str()
@ -36,9 +33,6 @@ class PluginConfiguration:
class PluginConfigurationSchema(Schema):
class Meta:
unknown = RAISE
name = fields.Str()
options = fields.Mapping()
@ -68,9 +62,6 @@ class ExploiterConfiguration:
class ExploiterConfigurationSchema(Schema):
class Meta:
unknown = RAISE
name = fields.Str()
options = fields.Mapping()
supported_os = fields.List(EnumField(OperatingSystems))