Skip to content

Commit

Permalink
feat: jans-cli tabulate attribute list (#1313)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
devrimyatar committed May 9, 2022
1 parent 97723d5 commit a684484
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions jans-config-api/docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a684484

Please sign in to comment.