cedar-policy / cedar

Implementation of the Cedar Policy Language
https://www.cedarpolicy.com
Apache License 2.0
897 stars 80 forks source link

Delete schema-based parsing for action attribtues #1194

Closed john-h-kastner-aws closed 2 months ago

john-h-kastner-aws commented 2 months ago

Description of changes

Schema based parsing currently supports parsing action attributes according to their types, but the Cedar schema format does not support defining actions with their attributes or declaring the type of their attributes, so this code is not reachable by consumers of the Cedar library.

By deleting this code we can remove a caller of schematype_of_partialvalue which is known to be buggy for set and records.

Note that action entities are compared against the action entities from the schema when constructing an Entities object, so we still report an error if an action entity contains unexpected attributes.

Issue #, if available

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

I confirm that this PR (choose one, and delete the other options):

I confirm that cedar-spec (choose one, and delete the other options):