czlonkowski
2c536a25fd
refactor: improve resourceLocator validation based on code review
Implemented code review suggestions (score 9.5/10):
1. Added mode value validation (lines 267-274):
- Validates mode is 'list', 'id', or 'url'
- Provides clear error for invalid mode values
- Prevents runtime errors from unsupported modes
2. Added JSDoc documentation (lines 238-242):
- Explains resourceLocator structure and usage
- Documents common mistakes (string vs object)
- Helps future maintainers understand context
3. Added 4 additional test cases:
- Invalid mode value rejection
- Mode "url" acceptance
- Empty object detection
- Extra properties handling
Test Results:
- 29 tests passing (was 25)
- 100% coverage of validation logic
- All edge cases covered
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 16:59:43 +02:00
..
2025-10-07 07:59:00 +02:00
2025-10-07 09:30:49 +02:00
2025-09-22 23:16:24 +02:00
2025-10-07 16:59:43 +02:00
2025-07-30 14:13:19 +02:00
2025-07-30 13:44:35 +02:00
2025-07-30 13:44:35 +02:00
2025-07-30 13:44:35 +02:00
2025-09-29 18:51:59 +02:00
2025-09-25 07:51:04 +02:00
2025-09-29 18:11:15 +02:00
2025-07-28 14:15:09 +02:00
2025-10-01 00:01:59 +02:00
2025-09-22 23:16:24 +02:00
2025-07-30 13:44:35 +02:00
2025-07-28 14:15:09 +02:00
2025-08-02 00:42:25 +02:00
2025-08-07 17:57:08 +02:00
2025-10-06 16:25:48 +02:00
2025-10-04 20:15:49 +02:00
2025-09-24 11:40:40 +02:00
2025-07-28 15:52:57 +02:00
2025-09-25 09:41:57 +02:00
2025-09-25 07:51:04 +02:00
2025-07-28 14:15:09 +02:00
2025-07-30 13:44:35 +02:00
2025-07-28 14:15:09 +02:00
2025-09-25 09:17:02 +02:00
2025-09-25 07:51:04 +02:00
2025-07-28 14:15:09 +02:00
2025-10-07 14:37:43 +02:00
2025-09-22 23:16:24 +02:00
2025-09-29 18:09:06 +02:00
2025-09-24 11:40:40 +02:00
2025-10-06 07:25:32 +02:00
2025-08-02 00:42:25 +02:00
2025-10-07 10:18:30 +02:00
2025-10-05 16:05:19 +02:00
2025-09-22 21:05:27 +02:00
2025-09-22 23:16:24 +02:00
2025-08-07 17:57:08 +02:00
2025-08-07 17:57:08 +02:00
2025-10-02 14:46:32 +02:00
2025-09-22 21:05:27 +02:00
2025-10-02 13:02:32 +02:00
2025-07-30 13:44:35 +02:00