Skip to content

BUG: enumerations not correctly read from CSV data dictionaries #38

Description

@gaurav

With heal-sdk==1.1.1, I tried to transform a CSV data dictionary with the following field:

name description enum
total_modules_qrt Total modules Q1=0|Q2=1-9|Q3=10-31|Q4=>=32

Which produced the following JSON output:

    {
      "name": "total_modules_qrt",
      "description": "Total modules",
      "constraints": {
        "enum": [
          "Q1=0",
          "Q2=1-9",
          "Q3=10-31",
          "Q4=>=32"
        ]
      }
    }

However, as per the VLMD schema examples, I would expect to see:

    {
      "name": "total_modules_qrt",
      "description": "Total modules",
      "constraints": {
        "enum": [
          "Q1",
          "Q2",
          "Q3",
          "Q4"
        ]
      },
      "enumLabels": {
         "Q1": "0",
         "Q2": "1-9",
         "Q3": "10-31",
         "Q4": ">=32"
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions