File: configurations.py

package info (click to toggle)
python-openapi-core 0.19.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,008 kB
  • sloc: python: 18,868; makefile: 47
file content (25 lines) | stat: -rw-r--r-- 745 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from dataclasses import dataclass
from typing import Optional

from openapi_core.unmarshalling.schemas.datatypes import (
    FormatUnmarshallersDict,
)
from openapi_core.unmarshalling.schemas.factories import (
    SchemaUnmarshallersFactory,
)
from openapi_core.validation.configurations import ValidatorConfig


@dataclass
class UnmarshallerConfig(ValidatorConfig):
    """Unmarshaller configuration dataclass.

    Attributes:
        schema_unmarshallers_factory
            Schema unmarshallers factory.
        extra_format_unmarshallers
            Extra format unmarshallers.
    """

    schema_unmarshallers_factory: Optional[SchemaUnmarshallersFactory] = None
    extra_format_unmarshallers: Optional[FormatUnmarshallersDict] = None