Skip to content
Snippets Groups Projects
Commit 8255e5a4 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

UPD: swagger: show format on strings

parent 094280e3
No related branches found
No related tags found
No related merge requests found
Pipeline #271669 passed with warnings
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment