Skip to content

Commit

Permalink
fix: jans-cli info for ConfigurationAgamaFlow (#2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Oct 7, 2022
1 parent 17b5647 commit 2c446a7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,8 +2019,13 @@ def help_for(self, op_name):
schema_path = path['requestBody']['content'][apptype]['schema']['items']['$ref']
print(' Schema: Array of {}'.format(schema_path[1:]))
else:
schema_path = path['requestBody']['content'][apptype]['schema']['$ref']
print(' Schema: {}'.format(schema_path[1:]))
spparent = path['requestBody']['content'][apptype]['schema']
schema_path = spparent.get('$ref')
if schema_path:
print(' Schema: {}'.format(schema_path[1:]))
else:
print(' Data type: {}'.format(spparent.get('type')))


if schema_path:
print()
Expand Down

0 comments on commit 2c446a7

Please sign in to comment.