diff --git a/packages/cedar_common/lib/src/policy/cedar_policy.dart b/packages/cedar_common/lib/src/policy/cedar_policy.dart index 43e03f6b..30af7390 100644 --- a/packages/cedar_common/lib/src/policy/cedar_policy.dart +++ b/packages/cedar_common/lib/src/policy/cedar_policy.dart @@ -7,7 +7,6 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:cedar_common/cedar_common.dart'; -import 'package:cedar_common/src/serializers.dart'; part 'cedar_policy.g.dart'; @@ -84,7 +83,7 @@ abstract class CedarPolicy implements Built { required CedarPolicyPrincipal principal, required CedarPolicyAction action, required CedarPolicyResource resource, - required List conditions, + List conditions = const [], Map? annotations, }) { return _$CedarPolicy._( diff --git a/packages/cedar_common/pubspec.yaml b/packages/cedar_common/pubspec.yaml index e5174697..bc114229 100644 --- a/packages/cedar_common/pubspec.yaml +++ b/packages/cedar_common/pubspec.yaml @@ -9,7 +9,7 @@ dependencies: built_collection: ^5.1.1 built_value: ^8.9.1 collection: ^1.18.0 - meta: ^1.12.0 + meta: ^1.11.0 dev_dependencies: build_runner: ^2.4.8