@@ -10,7 +10,10 @@ Cedar Language Version: 3.1.0
10
10
11
11
### Added
12
12
13
- - Implementation of the human-readable schema format: ` SchemaFragment::from_*_natural ` , ` SchemaFragment::as_natural ` , and ` Schema::from_*_natural ` (#557 , implementing [ RFC #24 ] ( https://github.com/cedar-policy/rfcs/blob/main/text/0024-schema-syntax.md ) )
13
+ - Implementation of the human-readable schema format proposed in
14
+ [ RFC 24] ( https://github.com/cedar-policy/rfcs/blob/main/text/0024-schema-syntax.md ) .
15
+ New public APIs ` SchemaFragment::from_*_natural ` ,
16
+ ` SchemaFragment::as_natural ` , and ` Schema::from_*_natural ` (#557 )
14
17
- ` PolicyId::new() ` (#587 , resolving #551 )
15
18
- ` EntityId::new() ` (#583 , resolving #553 )
16
19
- ` AsRef<str> ` implementation for ` PolicyId ` (#504 , resolving #503 )
@@ -19,9 +22,9 @@ Cedar Language Version: 3.1.0
19
22
- ` AuthorizationError::id() ` to get the id of the policy associated with an
20
23
authorization error (#589 )
21
24
- For the ` partial-eval ` experimental feature: added
22
- ` Authorizer::evaluate_policies_partial() ` (#593 , resolving #474 )
25
+ ` Authorizer::evaluate_policies_partial() ` (#593 , resolving #474 )
23
26
- For the ` partial-eval ` experimental feature: added
24
- ` json_is_authorized_partial() ` (#571 , resolving #570 )
27
+ ` json_is_authorized_partial() ` (#571 , resolving #570 )
25
28
26
29
### Changed
27
30
@@ -54,10 +57,12 @@ Cedar Language Version: 3.1.0
54
57
` RequestBuilder ` 's ` principal ` , ` action ` , ` resource ` , ` context ` and
55
58
` schema ` functions ` #[must_use] ` . (#502 )
56
59
- For the ` partial-eval ` experimental feature: make ` RequestBuilder::schema `
57
- return a ` RequestBuilder<&Schema> ` so the ` RequestBuilder<&Schema>::build `
58
- method checks the request against the schema provided and the
59
- ` RequestBuilder<UnsetSchema>::build ` method becomes infallible. (#591 , resolving #559 )
60
- - For the ` permissive-validate ` experimental feature: ` X in [] ` is typed ` False ` for all ` X ` , including unspecified ` X ` . (#615 )
60
+ return a ` RequestBuilder<&Schema> ` so the ` RequestBuilder<&Schema>::build `
61
+ method checks the request against the schema provided and the
62
+ ` RequestBuilder<UnsetSchema>::build ` method becomes infallible. (#591 ,
63
+ resolving #559 )
64
+ - For the ` permissive-validate ` experimental feature: ` X in [] ` is typed ` False `
65
+ for all ` X ` , including unspecified ` X ` . (#615 )
61
66
62
67
### Fixed
63
68
@@ -66,14 +71,17 @@ method checks the request against the schema provided and the
66
71
- Variables qualified by a namespace with a single element are correctly
67
72
rejected. E.g., ` foo::principal ` is an error and is not parsed as
68
73
` principal ` . Variables qualified by a namespace of any size comprised entirely
69
- of Cedar keywords are correctly rejected. E.g., ` if::then::else::principal ` is an error.
70
- (#594 and #597 )
74
+ of Cedar keywords are correctly rejected. E.g., ` if::then::else::principal ` is
75
+ an error. (#594 and #597 )
71
76
- The entity type tested for by an ` is ` expression may be an identifier shared
72
77
with a builtin variable. E.g., ` ... is principal ` and ` ... is action ` are now
73
78
accepted by the Cedar parser. (#595 , resolving #558 )
74
- - Policies containing the literal ` i64::MIN ` can now be properly converted to the JSON policy format. (#601 , resolving #596 )
75
- - ` Policy::to_json ` does not error on policies containing special identifiers such as ` principal ` , ` then ` , and ` true ` . (#628 , resolving #604 )
76
- - ` Template::from_json ` errors when there are slots in template conditions. (#626 , resolving #606 )
79
+ - Policies containing the literal ` i64::MIN ` can now be properly converted to
80
+ the JSON policy format. (#601 , resolving #596 )
81
+ - ` Policy::to_json ` does not error on policies containing special identifiers
82
+ such as ` principal ` , ` then ` , and ` true ` . (#628 , resolving #604 )
83
+ - ` Template::from_json ` errors when there are slots in template conditions.
84
+ (#626 , resolving #606 )
77
85
78
86
## [ 3.0.1] - 2023-12-21
79
87
Cedar Language Version: 3.0.0
0 commit comments