Describe the bug
When I implement the RESTFuel-style API using the mixin method, I cannot obtain the expected OpenAPI document. The display is abnormal, and unexpected results other than medical ones occur when clicked.
Expected behavior
Hope that the RESTful API implemented using mixins can be displayed normally, routes can be displayed correctly, and the openapi swagger document that meets expectations can be generated correctly.Hope that the RESTful API implemented using mixins can be displayed normally, routes can be displayed correctly, and the openapi swagger document that meets expectations can be generated correctly.
Environment (please complete the following information):
OS: [All]
Browser [chrome, firefox]
Version [23.12.0]
Additional context
Through my own investigation, I found that this problem is actually related to the view_class of the view class and mixin classes. Once a mixin class is inherited, the memory pointers in other view classes are the same. After I made changes to several locations in the file, it can work normally.
Describe the bug When I implement the RESTFuel-style API using the mixin method, I cannot obtain the expected OpenAPI document. The display is abnormal, and unexpected results other than medical ones occur when clicked.
Screenshots This is the display effect.
To Reproduce
Expected behavior Hope that the RESTful API implemented using mixins can be displayed normally, routes can be displayed correctly, and the openapi swagger document that meets expectations can be generated correctly.Hope that the RESTful API implemented using mixins can be displayed normally, routes can be displayed correctly, and the openapi swagger document that meets expectations can be generated correctly.
Environment (please complete the following information):
Additional context Through my own investigation, I found that this problem is actually related to the view_class of the view class and mixin classes. Once a mixin class is inherited, the memory pointers in other view classes are the same. After I made changes to several locations in the file, it can work normally.
sanic_ext/utils/route.py
sanic_ext/extensions/openapi/blueprint.py