From 2c446a7ce64407274e35639dda7e9a48f926988b Mon Sep 17 00:00:00 2001 From: Devrim Date: Fri, 7 Oct 2022 12:39:27 +0300 Subject: [PATCH] fix: jans-cli info for ConfigurationAgamaFlow (#2561) --- jans-cli/cli/config_cli.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jans-cli/cli/config_cli.py b/jans-cli/cli/config_cli.py index 039f79f93ee..f17f36ada09 100755 --- a/jans-cli/cli/config_cli.py +++ b/jans-cli/cli/config_cli.py @@ -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()