Skip to content

Commit e5cf97e

Browse files
author
Joel Collins
committed
Support generic LabThings Views
1 parent ed4ef9d commit e5cf97e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/labthings/apispec/plugins.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ..json.schemas import schema_to_json
1010
from ..schema import build_action_schema, EventSchema
1111
from ..utilities import get_docstring, get_summary, merge
12-
from ..views import ActionView, PropertyView, EventView
12+
from ..views import ActionView, PropertyView, EventView, View
1313

1414

1515
class ExtendedOpenAPIConverter(OpenAPIConverter):
@@ -257,4 +257,6 @@ def operation_helper(self, path, operations, **kwargs):
257257
ops = self.spec_for_action(interaction)
258258
elif issubclass(interaction, EventView):
259259
ops = self.spec_for_event(interaction)
260+
elif issubclass(interaction, View):
261+
ops = self.spec_for_interaction(interaction)
260262
operations.update(ops)

0 commit comments

Comments
 (0)