aptos
aptos copied to clipboard
:sunny: A tool for validating data using JSON Schema and converting JSON Schema documents into different data-interchange formats
Related to issue: https://github.com/pennsignals/aptos/issues/2 Objective: hoping to get advice about approach. Simple test: EDIT: fixed a small bug in object field names. ``` $ aptos convert -format parquet tests/schema/person message...
Currently, `aptos` supports converting JSON Schema documents into the Apache Avro data-interchange format. A proposed class in the [`visitor`](https://github.com/pennsignals/aptos/blob/master/aptos/schema/visitor.py) module (e.g `ParquetSchemaVisitor`) *should* yield the converted Parquet document.
Currently, `aptos` supports converting JSON Schema documents into the Apache Avro data-interchange format. A proposed class in the [`visitor`](https://github.com/pennsignals/aptos/blob/master/aptos/schema/visitor.py) module (e.g `ProtobufSchemaVisitor`) *should* yield the converted Protocol Buffers document.
**Description**: Related to https://github.com/pennsignals/aptos/issues/8. Created a Formatter class to handle to formatting logic outside the main. Added a builder for specific output messages as well as for generic message.
Currently, the [`__main__.py`](https://github.com/pennsignals/aptos/blob/master/aptos/__main__.py) module is a bit messy. I'd like to create a Formatter for successful and unsuccessful operations. I am open to using a module for term coloring instead...
It would be great if aptos supported parsing and validating data using the latest JSON Schema specification. Development of the JSON Schema [draft-07](https://github.com/json-schema-org/json-schema-spec/milestone/5) is currently in progress and the last...