Skip to content

comicbox.formats.comicvine_api.schema ΒΆ

ComicVine API response schema.

Pass-through schema mirroring the simyan Issue.model_dump(mode="json") shape under the comicvine_api root tag. Field-level mapping happens in comicbox/formats/comicvine_api/transform.py; the schema here only carries the dict through unchanged.

ComicVineApiSchema ΒΆ

Bases: JsonSchema

Top-level schema for ComicVine API responses.

Source code in comicbox/formats/comicvine_api/schema.py
15
16
17
18
19
20
21
22
23
24
25
26
class ComicVineApiSchema(JsonSchema):
    """Top-level schema for ComicVine API responses."""

    ROOT_TAG: str = "comicvine_api"
    ROOT_KEYPATH: str = "comicvine_api"

    comicvine_api = Raw()

    class Meta(JsonSchema.Meta):
        """Allow unknown to bypass through the Raw field."""

        unknown = "include"

Meta ΒΆ

Bases: Meta

Allow unknown to bypass through the Raw field.

Source code in comicbox/formats/comicvine_api/schema.py
23
24
25
26
class Meta(JsonSchema.Meta):
    """Allow unknown to bypass through the Raw field."""

    unknown = "include"