Dominux / planimetrics_tasks_diagrams_generator

planimetrics tasks diagrams generator
0 stars 0 forks source link

Changing output format to JSON #1

Open Dominux opened 6 months ago

Dominux commented 6 months ago

Example:

[
  {
    "type": "triangle",
    "name": "ABC"
  },
  {
    "type": "line",
    "name": "AB",
    "length": 7
  },
  {
     "type": "line",
     "name": "BC"
  },
  {
    "type": "relation",
    "rel_type": "equality",
    "objects": [
      "AB",
      "BC"
    ]
  }
]
Dominux commented 6 months ago

I think Im gonna go with dataclasses with custom marshall/unmarshall methods implementations instead of taking a whole pydantic lib since pydantic is bloat and it's a validation lib firstly