Skip to content

Require that custom page and snippet interfaces inherit from the defaults #408

Description

@mgax

When users of the library use a custom page interface by configuring PAGE_INTERFACE, or a custom snippet interface (which is being added in #405), the interface they provide should inherit from the default interface, so that it provides all the right fields. #405 (comment)

Add checks in get_page_interface and get_snippet_interface and raise a warning if the interface doesn't inherit from the default interface.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions