json_scheme_validator 1.0.0 copy "json_scheme_validator: ^1.0.0" to clipboard
json_scheme_validator: ^1.0.0 copied to clipboard

outdated

A utility class to validate json records against a scheme.

json_scheme_validator

the package consists of a single class JsonValidatorByScheme. aims to enables developer to validate a json record against a scheme.

example:

json scheme :

element name : list [data type, field mandatory or not]

{ "resourceType": ["String", true], "id": ["String", true], "meta": ["_InternalLinkedHashMap<String, dynamic>", false], "link": ["List

instantiate the class JsonValidatorByScheme passing to constructor the data target as well as the shceme.

JsonValidatorByScheme ValidationObj = JsonValidatorByScheme(scheme, data);

call the isValid method on the instance, which returns a bool indicating if json is valid or not

bool isValid=ValidationObj.isValid();

0
likes
0
pub points
25%
popularity

Publisher

unverified uploader

A utility class to validate json records against a scheme.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on json_scheme_validator