Added
- A reusable, pre-parsed
Schemahandle, completing the handle trio alongsidePolicySetandEntities. Parse a schema once withSchema.from_str(cedar_text)orSchema.from_json_str(json_text)and pass the handle tois_authorized,is_authorized_batch,is_authorized_partial, orvalidate_policiesanywhere a schema string is accepted — skipping the per-call parse. Theschemaparameter widens fromstr | dict | Nonetostr | dict | Schema | None; existing string/dict callers are unchanged, so this is a pure, opt-in addition. The handle is immutable, releases its memory when the last Python reference is dropped, supportsstr()(the schema rendered to Cedar schema syntax, whichever format it was constructed from), and raisesValueErrorat construction on unparseable schemas. On a successful evaluation the resultmetricsgain aschema_pre_parsedflag (1for the handle path,0otherwise). Mirrors thePolicySet/Entitieshandle APIs (#103). Thanks @swenger!
Full Changelog: v4.8.6...v4.8.7