Colectica / cogs

Convention-based Ontology Generation System
http://cogsdata.org
MIT License
18 stars 8 forks source link

Allow derived class content to be serialized/deserialized correctly in all publishers #172

Open jeremyiverson opened 6 years ago

jeremyiverson commented 6 years ago
DanSmith commented 6 years ago

for xml publisher, also investigate using xsi:type declarations

DanSmith commented 6 years ago

As of e677cf31919b40d933f25c4fc8374b2a9914116b the json schema, csharp, and csharp json serializer support this. Xml and csharp json deserialization are still to be done.

The on disk format of the csv must be updated to the current version with new columns by running the cogs rewrite command, and the AllowSubtypes column for a property should be set to true where type discriminators are to be allowed.

DanSmith commented 6 years ago

As of 4f736e2d9b293992f0adf66b4284f425ccfc57c2 the csharp target will parse type discriminated json.

Review of XML is still needed