Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mgax opened this issue Sep 24, 2024 · 0 comments
Open

Comments

@mgax
Copy link
Member

mgax commented Sep 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant