Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/schema/samplescan.py: 100%
13 statements
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3from marshmallow import Schema, fields
5from daiquiri.core.schema.component import ComponentSchema
8# Config Schema
9class ScanSchema(Schema):
10 actor = fields.Str(required=True)
11 require_staff = fields.Bool()
12 implementor = fields.Str()
13 config = fields.Dict()
14 tags = fields.List(fields.Str())
17class ScanConfigSchema(ComponentSchema):
18 scans = fields.Nested(ScanSchema, many=True)
21# Endpoint Schema
22class AvailableScansSchema(Schema):
23 actor = fields.Str(required=True)
24 tags = fields.List(fields.Str())