Skip to content

SuddenDevelopment/SuddenSchema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuddenSchema

Determine the ranges and data types for a number of records given samples.

constructs a schema that can be used for json data

API:

Create Schema : Given an array of objects, determine all of the keys, data types and ranges
Update Schema : Given a schema and an array of objects, update the schema with the new objects for range

FEATURES:

  • Gives all of the keys found, across all objects, recursively
  • Gives generic data types per key: number, string, boolean
  • Arrays have all of the data types defined within them including obejct definitions, mixed data tpyes included.
  • Attempts to identify more specific data types: UnixTime, JSTime, IP, Email, URL, Domain, auto incrementing ID
  • Gives cardinality, how many unique values exist vs count.
  • Gives sample values
  • If Cardinality < values.length it's vrey useful to use for spliting into groups

About

Discover a JSON schema given a number of objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •