From a684484d403f9ed52e4c6749f21bd255523a134e Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Mon, 9 May 2022 17:40:13 +0300 Subject: [PATCH] feat: jans-cli tabulate attribute list (#1313) * feat: jans-cli tabulate attribute list * fix: jans-cli schema_name patch * feat: jans-cli tabulate clients * feat: jans-cli tabulate scopes * fix: jans-config-api add example to path of PatchRequest --- jans-cli/cli/config_cli.py | 5 +++++ jans-config-api/docs/jans-config-api-swagger.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/jans-cli/cli/config_cli.py b/jans-cli/cli/config_cli.py index 2625eefe3d7..afd5718f4d9 100755 --- a/jans-cli/cli/config_cli.py +++ b/jans-cli/cli/config_cli.py @@ -42,6 +42,9 @@ tabulate_endpoints = { 'jca.get-config-scripts': ['scriptType', 'name', 'enabled', 'inum'], 'jca.get-user': ['inum', 'userId', 'mail','sn', 'givenName', 'jansStatus'], + 'jca.get-attributes': ['inum', 'name', 'displayName', 'status', 'dataType', 'claimName'], + 'jca.get-oauth-openid-clients': ['inum', 'displayName', 'clientName', 'applicationType'], + 'jca.get-oauth-scopes': ['inum', 'displayName', 'scopeType'] } my_op_mode = 'scim' if 'scim' in os.path.basename(sys.argv[0]) else 'jca' @@ -1509,8 +1512,10 @@ def process_patch(self, endpoint): for item in schema['properties']: if not 'type' in schema['properties'][item]: schema['properties'][item]['type'] = 'string' + schema['__schema_name__'] = 'PatchOperation' else: schema = self.cfg_yml['components']['schemas']['PatchRequest'].copy() + schema['__schema_name__'] = 'PatchRequest' model = getattr(swagger_client.models, 'PatchRequest') url_param_val = None diff --git a/jans-config-api/docs/jans-config-api-swagger.yaml b/jans-config-api/docs/jans-config-api-swagger.yaml index 4d3f09c09b0..c175064bac4 100644 --- a/jans-config-api/docs/jans-config-api-swagger.yaml +++ b/jans-config-api/docs/jans-config-api-swagger.yaml @@ -4848,6 +4848,7 @@ components: path: type: string description: A JSON-Pointer + example: '/client/customattribute/[0]' value: type: object description: The value to be used within the operations.