Skip to content

Commit

Permalink
fix again for patch job update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Nov 11, 2024
1 parent e1eaa8c commit dcfc22e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weaver/wps_restapi/swagger_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6754,12 +6754,13 @@ class JobTitleNullable(OneOfKeywordSchema):
]


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

0 comments on commit dcfc22e

Please sign in to comment.