Tochukwu
Tochukwu
@magedhelmy1 I dont quite get your question. Can you explain more please?
```python from ninja_jwt.authentication import JWTAuth ... @router.get("/protected", response={200: MessageSchema, 403: ErrorResponse}, auth=JWTAuth()) def protected_message(request): if not request.auth: return ErrorResponse(message="User is not authenticated"), 403 return get_message("This is a protected message.") ```
@geclick Sorry I didn't get notified of this issue on time. I am just seeing it now. I am currently looking into it at the moment
@geclick the problem is the `resolve_permission` method. I don't use the `resolver` method provided in the `Ninja` model schema. The problem with that being called twice is likely a problem...
@geclick can you close this issue if the problem is resolved?
@pirate Controllers can not be registered to routers because it does not follow a full Ninja router interface. Also, controllers do not support nesting with routers or other controllers. But...
You can still use your event controller without mixing it with a router. If I am to implement this, with your route paths setup, I would do the following: `api/urls.py`:...
@kosuke-zhang I will try and look into this
@DrJfrost ninja-schema compiles to django model fields to pydantic fields with validations based on the field in question. For example, an email field won't result to just a string type...
There are other features too if you check the readme.md