- Added Schema conversion APIs #325
- Added Level Validation #327
- Added DateTime extension support #328
- Added Duration extension support #331
- Added Offset function support #331
- Added PolicySet to JSON conversion API #329
- Added Cedar Schema support for Entity Validation #332
- Added
PolicyParseException, thrown byPolicySet.parsePolicieswhen policy text fails to parse. It is a subclass ofInternalException, so existingcatchblocks andgetMessage()are unaffected, and addsgetDetailedErrors()returning Cedar's structured diagnostics - source span, expected tokens, and help text - for each error.getErrors()now carries one entry per parse error rather than a single entry for the whole document #367
- Added Zig version validation for publishing artifacts #306
- Introduced new model classes for improved type safety and functionality:
- Enhanced
AuthorizationErrorwith public getters and.toString()method #294 - Added JSON parsing support for
Entity#292 - Implemented additional constructors to improve instantiation options for
Entity#288 - Added support for policy annotations #296
- The following authorization parameters will be updated in a future release:
Map<String,Value>for context will be replaced bycom.cedarpolicy.model.ContextSet<Entity>for entities will be replaced bycom.cedarpolicy.model.entity.Entities
- Reworked interface of
com.cedarpolicy.value.EntityUIDto support namespaces - Modified
com.cedarpolicy.model.AuthorizationRequestto usecom.cedarpolicy.value.EntityUIDinstead of Strings - Removes all use of the deprecated
__exprsyntax in JSON - Added
com.cedarpolicy.value.EntityTypeNamewhich represents namespaced types - Added
com.cedarpolicy.value.EntityIdentifierwhich represents Entity Ids
Initial release of CedarJava.