opencaesar / oml-vision

A VS Code extension providing UI viewpoints for OML models
Other
4 stars 2 forks source link

Change Schema of Tables, Trees, and Diagrams #83

Open pogi7 opened 1 month ago

pogi7 commented 1 month ago

Checklist before submitting a feature request

Is your feature request related to a problem? If yes, describe the problem

I am annoyed that the schema for the tables, trees, and diagrams can not be standardized and added to AJV

Describe the desired feature

I want to move the first key in the object to an id parameter

Before:

{
  "objectives": {
    "name": "Objectives",
    "diagrams": {
      "all-rows": "objectives-diagram"
    },
    "columnNames": {
      "o1_id": "Objective 1 ID",
      "o1_name": "Objective 1 Name",
      "o2_id": "Objective 2 ID",
      "o2_name": "Objective 2 Name"
    },
    "queries": {
      "obj-query": "objectives.sparql"
    },
    "rowMapping": {
      "id": "obj-query",
      "name": "Objectives",
      "labelFormat": "Objective"
    }
  }
}

After:

{
  "name": "Objectives",
  "id": "objectives",
  "diagrams": {
    "all-rows": "objectives-diagram"
  },
  "columnNames": {
    "o1_id": "Objective 1 ID",
    "o1_name": "Objective 1 Name",
    "o2_id": "Objective 2 ID",
    "o2_name": "Objective 2 Name"
  },
  "queries": {
    "obj-query": "objectives.sparql"
  },
  "rowMapping": {
    "id": "obj-query",
    "name": "Objectives",
    "labelFormat": "Objective"
  }
}

Additional context

[Any additional context]