We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439d999 commit f3d7555Copy full SHA for f3d7555
labthings/server/spec/td.py
@@ -1,5 +1,6 @@
1
from flask import url_for, request
2
from apispec import APISpec
3
+import weakref
4
5
from ..view import View
6
@@ -44,13 +45,17 @@ def find_schema_for_view(view: View):
44
45
46
class ThingDescription:
47
def __init__(self, apispec: APISpec):
- self.apispec = apispec
48
+ self._apispec = weakref.ref(apispec)
49
self.properties = {}
50
self.actions = {}
51
self.events = {}
52
self._links = []
53
super().__init__()
54
55
+ @property
56
+ def apispec(self):
57
+ return self._apispec()
58
+
59
@property
60
def links(self):
61
td_links = []
0 commit comments