diff --git a/src/aaz_dev/command/controller/command_tree.py b/src/aaz_dev/command/controller/command_tree.py index e180737d..b4361d39 100644 --- a/src/aaz_dev/command/controller/command_tree.py +++ b/src/aaz_dev/command/controller/command_tree.py @@ -597,7 +597,7 @@ def verify_updated_command_tree(self): if not group: details[' '.join(group_names)] = { 'type': 'group', - 'help': "Miss short summary." + 'help': "Group not found." } elif not group.help or not group.help.short: details[' '.join(group.names)] = { @@ -610,7 +610,7 @@ def verify_updated_command_tree(self): if not cmd: details[' '.join(cmd_names)] = { 'type': 'command', - 'help': "Miss short summary." + 'help': "Command not found." } elif not cmd.help or not cmd.help.short: details[' '.join(cmd.names)] = { diff --git a/src/aaz_dev/command/controller/workspace_manager.py b/src/aaz_dev/command/controller/workspace_manager.py index 27a58193..34d62603 100644 --- a/src/aaz_dev/command/controller/workspace_manager.py +++ b/src/aaz_dev/command/controller/workspace_manager.py @@ -1088,7 +1088,7 @@ def generate_to_aaz(self): # Merge the commands of subresources which exported in aaz but not exist in current workspace self._merge_sub_resources_in_aaz() - # in memory worspace folder does not support client cfg + # in memory workspace folder does not support client cfg if not self.is_in_memory: # update client config editor = self.load_client_cfg_editor() diff --git a/src/aaz_dev/swagger/model/schema/cmd_builder.py b/src/aaz_dev/swagger/model/schema/cmd_builder.py index e24ad962..79497241 100644 --- a/src/aaz_dev/swagger/model/schema/cmd_builder.py +++ b/src/aaz_dev/swagger/model/schema/cmd_builder.py @@ -409,14 +409,10 @@ def build_cmd_string_format(schema): if schema.pattern is not None: try: _ = re.compile(schema.pattern) # verify schema pattern + fmt.pattern = schema.pattern + fmt_assigned = True except Exception as err: - raise exceptions.InvalidSwaggerValueError( - msg=f"Invalid regex expression", - key=[schema.traces], - value=[schema.pattern] - ) - fmt.pattern = schema.pattern - fmt_assigned = True + logger.warning('Invalid regex expression: traces: {}, pattern: {}'.format(str([schema.traces]), schema.pattern)) if schema.max_length is not None: fmt.max_length = schema.max_length fmt_assigned = True