ovo 0.0.2 copy "ovo: ^0.0.2" to clipboard
ovo: ^0.0.2 copied to clipboard

OvO is a Dart-first schema declaration and validation library.

example/main.dart

import 'package:ovo/ovo.dart' as ovo;

final schema = ovo.Object({
  'name': ovo.AnyOf([
    ovo.String(),
    ovo.Array(ovo.String()).unique().size(2),
  ]),
});

final data1 = {
  'name': 'John Doe',
};
final data2 = {
  'name': ['John', 'Doe'],
};

void main() async {
  print(await schema.parse(data1));
  print(await schema.parse(data2));
}
4
likes
150
pub points
0%
popularity

Publisher

unverified uploader

OvO is a Dart-first schema declaration and validation library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on ovo