feat: add JSON string support for ABAC enforcement#59
Conversation
|
|
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
|
@copilot don't add README, don't add any new test code, keep the code diff minimized |
…lity Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Done. Removed README changes, all test files, and examples. Only kept the core functionality change in |
|
@copilot fix failed CI check: |
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
... Fixed. Applied |
# [1.8.0](v1.7.0...v1.8.0) (2025-12-07) ### Features * add JSON string support for ABAC enforcement ([#59](#59)) ([b4eb1f9](b4eb1f9))
Minimized code changes to only include the core JSON string support functionality in CasbinEvaluator.
Changes
CasbinEvaluator.evalMemberExpression()to handle JSON strings, Maps, and AbacClass objectsjsonDecode()before property access.toMap()for backward compatibilityFiles Changed
lib/src/utils/utils.dart- Added JSON string parsing support with proper formattingAll 452 existing tests pass. Backward compatible with existing
AbacClassimplementations.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.