Skip to content

Commit 5aaf843

Browse files
committed
feat: release version 1.6.1 with schema.clone method
1 parent 5888618 commit 5aaf843

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.6.1
2+
- Add `schema.clone()` method to return a new instance of `VineSchema`
3+
14
## 1.6.0
25
- Add `schema.example()` method to decorate OpenApi reporter
36

lib/src/vine.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ final class Validator implements ValidatorContract {
130130

131131
Validator(this._schema, this.errors);
132132

133+
VineSchema get schema => _schema.clone();
134+
133135
(ValidationException?, T?) tryValidate<T>(dynamic data) {
134136
try {
135137
final result = validate(data);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: vine
22
description: Vine is a robust, typed validation library for Dart/Flutter, designed to simplify and secure data management in applications
3-
version: 1.6.0
3+
version: 1.6.1
44
repository: https://github.com/LeadcodeDev/vine
55

66
platforms:

0 commit comments

Comments
 (0)