- 
          
- 
        Couldn't load subscription status. 
- Fork 26
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
We have a TODO task:
django-modern-rest/django_modern_rest/validation.py
Lines 233 to 237 in 489038f
| def __call__(self, controller: 'type[Controller[BaseSerializer]]') -> bool: | |
| """Run the validation.""" | |
| # TODO: validate that sync controller have `MetaMixin` | |
| # and async ones have `AsyncMetaMixin` | |
| self._validate_components(controller) | 
It should not be possible to create
class My(MetaMixin, Controller[PydanticSerializer]):
    async def get(self) -> int: ...and
class My(AsyncMetaMixin, Controller[PydanticSerializer]):
    def get(self) -> int: ...Please, add a validation for this.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers