Skip to content

Commit

Permalink
Support different schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
SurajBDeore committed Oct 28, 2024
1 parent cc73301 commit 59c0bad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lobster/tools/codebeamer/codebeamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SupportedConfigKeys(Enum):

@classmethod
def as_set(cls) -> set:
return set([parameter.value for parameter in cls])
return {parameter.value for parameter in cls}


def add_refs_refrences(req, flat_values_list):
Expand Down Expand Up @@ -249,8 +249,12 @@ def to_lobster(cb_config, cb_item):
schema_config = get_schema_config(cb_config)

# Construct the appropriate object based on 'kind'
common_params = _create_common_params(schema_config["namespace"], cb_item, cb_config["root"], item_name, kind)
item = _create_lobster_item(schema_config["class"], common_params, item_name, status)
common_params = _create_common_params(
schema_config["namespace"], cb_item,
cb_config["root"], item_name, kind)
item = _create_lobster_item(
schema_config["class"],
common_params, item_name, status)

if cb_config.get(REFERENCES):
for reference_name, displayed_chosen_names in (
Expand Down

0 comments on commit 59c0bad

Please sign in to comment.