Class GenerateSchemaFromRecord
java.lang.Object
com.northconcepts.datapipeline.foundations.tools.GenerateSchemaFromRecord
A utility class for generating SchemaDef code from a Record or JSON object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate()Builds an entity from the root record and one per nested record field, inferring boolean, numeric and date types from text values, and returns the schema.static voidPrints, as XML, the schema generated from the JSON file passed as the only argument.
-
Constructor Details
-
Method Details
-
main
Prints, as XML, the schema generated from the JSON file passed as the only argument. -
generate
Builds an entity from the root record and one per nested record field, inferring boolean, numeric and date types from text values, and returns the schema.
-