Skip to content

Commit

Permalink
add back annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Mar 9, 2024
1 parent 7bbe42d commit 0963cca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import 'package:cedar/cedar.dart';
import 'package:json_annotation/json_annotation.dart';

/// The decision of an authorization request.
enum CedarAuthorizationDecision { allow, deny }
enum CedarAuthorizationDecision {
@JsonValue('Allow')
allow,

@JsonValue('Deny')
deny,
}

/// {@template cedar.cedar_authorization_response}
/// The response to a [CedarAuthorizer] request.
Expand Down
1 change: 1 addition & 0 deletions packages/cedar/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
built_collection: ^5.1.1
built_value: ^8.9.1
collection: ^1.18.0
json_annotation: ^4.8.1
meta: ^1.11.0

dev_dependencies:
Expand Down

0 comments on commit 0963cca

Please sign in to comment.