ie3-institute/powerFactory2psdm

SchemaGenerator generates invalid Schema

Closed this issue · 2 comments

Schema Generator identifies coords as Strings which should be doubles and therefore parsing the json file with the generated scehma fails.

Instead of
GPScoords: Option[List[Option[List[Option[String]]]]]
I would expect
GPScoords: Option[List[Option[List[Option[Double]]]]]

image

@johanneshiry would you mind to have a short look at this? 🙄 I will push a branch with the state where this occurs.

Here is the json of the grid:

pfGrid.zip

and the branch is

to/#60-invalid-schema

UPDATE:

As it turns out I probably don't need the Attribute as I can generate the geo position from the nodes that the lines connect. This Issue might still come up in other cases, but for know I guess we don't neccessarily need to worry about it.