add example
This commit is contained in:
@@ -345,6 +345,8 @@ def get_oas_30(cfg):
|
||||
}
|
||||
}
|
||||
}
|
||||
if 'example' in p.metadata:
|
||||
paths['{}/jobs'.format(process_name_path)]['post']['requestBody']['content']['application/json']['example'] = p.metadata['example'] # noqa
|
||||
|
||||
oas['paths'] = paths
|
||||
|
||||
|
||||
@@ -68,7 +68,14 @@ PROCESS_METADATA = {
|
||||
'mimeType': 'application/json'
|
||||
}]
|
||||
}
|
||||
}]
|
||||
}],
|
||||
'example': {
|
||||
'inputs': [{
|
||||
'id': 'name',
|
||||
'value': 'hi there',
|
||||
'type': 'text/plain'
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user