File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11from flask import url_for
22from apispec import APISpec
3- from apispec .ext .marshmallow import MarshmallowPlugin
3+
4+ # from apispec.ext.marshmallow import MarshmallowPlugin
45
56from .names import (
67 EXTENSION_NAME ,
1415from .logging import LabThingLogger
1516from .representations import LabThingsJSONEncoder
1617from .spec .apispec import rule_to_apispec_path
18+ from .spec .apispec_plugins import MarshmallowPlugin
1719from .spec .utilities import get_spec
1820from .spec .td import ThingDescription
1921from .decorators import tag
@@ -82,13 +84,15 @@ def __init__(
8284 self .log_handler = LabThingLogger ()
8385 logging .getLogger ().addHandler (self .log_handler )
8486
87+ # API Spec
8588 self .spec = APISpec (
8689 title = self .title ,
8790 version = self .version ,
8891 openapi_version = "3.0.2" ,
8992 plugins = [MarshmallowPlugin ()],
9093 )
9194
95+ # Thing description
9296 self .thing_description = ThingDescription (self .spec )
9397
9498 if app is not None :
You can’t perform that action at this time.
0 commit comments