Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/schema/layout.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-15 02:12 +0000

1from marshmallow import Schema, fields 

2 

3 

4class LayoutSchema(Schema): 

5 name = fields.Str(required=True, metadata={"description": "Layout name"}) 

6 description = fields.Str(metadata={"description": "Description of layout"}) 

7 acronym = fields.Str(metadata={"description": "Layout acronym, used in url slug"}) 

8 icon = fields.Str(required=False) 

9 insidebar = fields.Bool(required=False) 

10 children = fields.List(fields.Dict(), required=True) 

11 error = fields.Str( 

12 metadata={"description": "Any errors found parsing the layout yaml"} 

13 )