Commit 8255e5a4 authored by janis.streib's avatar janis.streib 🦉
Browse files

UPD: swagger: show format on strings

parent 094280e3
Pipeline #64152 passed with stages
in 5 minutes and 48 seconds
......@@ -272,8 +272,10 @@ swagger['paths'] = {f"/{f['system']}/{f['object_type']}/{f['name']}":
def renderDataType(d):
dat = {'type': d['dataType']['json_name'],
'description': d['description']
'description': d['description'],
}
if d['dataType']['format_literal'] is not None and d['dataType']['json_name'] == 'string':
dat['format'] = d['dataType']['format_literal']
if d['dataType']['name'] == 'text_array':
dat['items'] = {
'type': 'string'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment