Skip to content

Commit

Permalink
Support generic LabThings Views
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Sep 9, 2020
1 parent ed4ef9d commit e5cf97e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/labthings/apispec/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ..json.schemas import schema_to_json
from ..schema import build_action_schema, EventSchema
from ..utilities import get_docstring, get_summary, merge
from ..views import ActionView, PropertyView, EventView
from ..views import ActionView, PropertyView, EventView, View


class ExtendedOpenAPIConverter(OpenAPIConverter):
Expand Down Expand Up @@ -257,4 +257,6 @@ def operation_helper(self, path, operations, **kwargs):
ops = self.spec_for_action(interaction)
elif issubclass(interaction, EventView):
ops = self.spec_for_event(interaction)
elif issubclass(interaction, View):
ops = self.spec_for_interaction(interaction)
operations.update(ops)

0 comments on commit e5cf97e

Please sign in to comment.