add example

This commit is contained in:
Tom Kralidis
2019-05-14 16:42:42 -04:00
parent 967dc180be
commit f486f90a73
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -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
+8 -1
View File
@@ -68,7 +68,14 @@ PROCESS_METADATA = {
'mimeType': 'application/json'
}]
}
}]
}],
'example': {
'inputs': [{
'id': 'name',
'value': 'hi there',
'type': 'text/plain'
}]
}
}