Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.1
-
None
-
None
Description
All the classes generated for java include a copy of their schema. The C++ classes do not.
Every generated java class has getClassSchema().
Something similar for C++ would be convenient.
During generation, the schema is available with n->printJson(..) which can then be passed through boost::algorithm::erase_all() to remove whitespace and new lines, and then boost::algorithm::replace_all() to add escape characters back.
and then given to avro::compileJsonSchemaFromString
Attachments
Issue Links
- links to