Skip to content

Commit

Permalink
Merge pull request #23 from cloudblue/LITE-25051-add-openapi-specs
Browse files Browse the repository at this point in the history
Revert "LITE-25051 add app_type and openapi_specs attrs to setup requ…
  • Loading branch information
ffaraone authored Sep 8, 2022
2 parents 4f992b7 + cd9c632 commit 45c8873
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions connect/eaas/core/proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ class Repository(BaseModel):

class SetupRequest(BaseModel):
# for version 1 'capabilities' renaming to 'event_subscriptions'
app_type: Literal['events', 'web', 'anvil'] = 'events'
event_subscriptions: Optional[dict]
ui_modules: Optional[dict]
openapi_specs: Optional[dict]
icon: Optional[str]
variables: Optional[list]
schedulables: Optional[List[Schedulable]]
Expand Down Expand Up @@ -218,7 +216,6 @@ def deserialize(cls, raw):
version=version,
message_type=MessageType.SETUP_REQUEST,
data=SetupRequest(
app_type='events',
event_subscriptions=raw_data['capabilities'],
runner_version=raw_data.get('runner_version'),
variables=raw_data.get('variables'),
Expand Down
2 changes: 0 additions & 2 deletions tests/connect/eaas/core/test_proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@
SETUP_REQUEST_DATA = {
'ui_modules': None,
'icon': None,
'app_type': 'events',
'openapi_specs': None,
'event_subscriptions': {'test': 'data'},
'variables': [{'foo': 'value', 'bar': 'value'}],
'schedulables': [{'method': 'method_name', 'name': 'Name', 'description': 'Description'}],
Expand Down

0 comments on commit 45c8873

Please sign in to comment.