Skip to content

Commit dcfc22e

Browse files
committed
fix again for patch job update schema
1 parent e1eaa8c commit dcfc22e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weaver/wps_restapi/swagger_definitions.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6754,12 +6754,13 @@ class JobTitleNullable(OneOfKeywordSchema):
67546754
]
67556755

67566756

6757-
class PatchJobBodySchema(ExecuteParameters):
6757+
class PatchJobBodySchema(ExecuteProcessParameters):
67586758
description = "Execution request contents to be updated."
67596759
# 'missing=null' ensures that, if a field is provided with an "empty" definition (JSON null, no-field dict, etc.),
67606760
# contents are passed down as is rather than dropping them (what 'missing=drop' would do due to DropableSchemaNode)
67616761
# this is to allow "unsetting" any values that could have been defined during job creation or previous updates
67626762
title = JobTitleNullable(missing=null)
6763+
mode = JobExecuteModeEnum(missing=drop, deprecated=True) # override without default 'auto'
67636764
subscribers = JobExecuteSubscribers(missing=null)
67646765
# all parameters that are not 'missing=drop' in original 'Execute' definition must be added to allow partial update
67656766
inputs = ExecuteInputValues(missing=drop, description="Input values or references to be updated.")

0 commit comments

Comments
 (0)