Enums could not be yaml'd for the docs build. Also fixed some use of strings where enum values were meant.
10 lines
332 B
Python
10 lines
332 B
Python
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
|
|
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
|
|
|
|
from pydantic import BaseModel as PydanticBaseModel
|
|
|
|
|
|
class BaseModel(PydanticBaseModel):
|
|
class Config:
|
|
use_enum_values = True
|