Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 2.92 KB

File metadata and controls

42 lines (34 loc) · 2.92 KB

Changelog

Unreleased

  • 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 by PolicySet.parsePolicies when policy text fails to parse. It is a subclass of InternalException, so existing catch blocks and getMessage() are unaffected, and adds getDetailedErrors() 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

4.3.1

Added

  • Added Zig version validation for publishing artifacts #306

4.3.0

Added

  • Introduced new model classes for improved type safety and functionality:
    • com.cedarpolicy.model.Context - Policy context representation (will replace Map<String,Value>) #286
    • com.cedarpolicy.model.entity.Entities - Entity collection management (will replace Set<Entity>) #293
  • Enhanced AuthorizationError with 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

Planned Improvements

  • The following authorization parameters will be updated in a future release:
    • Map<String,Value> for context will be replaced by com.cedarpolicy.model.Context
    • Set<Entity> for entities will be replaced by com.cedarpolicy.model.entity.Entities

3.0

  • Reworked interface of com.cedarpolicy.value.EntityUID to support namespaces
  • Modified com.cedarpolicy.model.AuthorizationRequest to use com.cedarpolicy.value.EntityUID instead of Strings
  • Removes all use of the deprecated __expr syntax in JSON
  • Added com.cedarpolicy.value.EntityTypeName which represents namespaced types
  • Added com.cedarpolicy.value.EntityIdentifier which represents Entity Ids

2.0.0

Initial release of CedarJava.