16 lines
528 B
Python
16 lines
528 B
Python
from marshmallow import Schema, fields
|
|
|
|
|
|
class SkillSchema(Schema):
|
|
id = fields.Integer(dump_only=True)
|
|
name = fields.String(required=True)
|
|
version = fields.String()
|
|
description = fields.String(allow_none=True)
|
|
author = fields.String(allow_none=True)
|
|
repository = fields.String(allow_none=True)
|
|
config = fields.Dict(allow_none=True)
|
|
is_installed = fields.Boolean()
|
|
is_active = fields.Boolean()
|
|
created_at = fields.DateTime(dump_only=True)
|
|
updated_at = fields.DateTime(dump_only=True)
|