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-07-28 22:45:09 +02:00
2025-07-29 00:09:13 +02:00
2025-07-28 22:45:09 +02:00
2025-07-28 23:25:42 +02:00
2025-06-08 11:07:51 +00:00
2025-07-30 13:44:35 +02:00
2025-10-02 22:28:23 +02:00
2025-07-28 22:45:09 +02:00
2025-10-07 11:39:48 +02:00
2025-07-29 18:09:03 +02:00
2025-10-04 09:30:43 +02:00
2025-10-07 16:59:43 +02:00
2025-09-14 15:42:35 +02:00
2025-07-28 13:05:38 +02:00
2025-07-28 13:05:38 +02:00
2025-06-07 21:12:17 +00:00
2025-06-08 11:07:51 +00:00
2025-06-08 11:07:51 +00:00
2025-07-31 11:48:31 +02:00
2025-07-28 13:05:38 +02:00
2025-07-30 13:44:35 +02:00
2025-07-30 13:44:35 +02:00
2025-07-28 14:15:09 +02:00
2025-06-07 21:12:17 +00:00
2025-06-07 21:12:17 +00:00
2025-06-07 21:12:17 +00:00
2025-06-08 11:07:51 +00:00
2025-06-08 11:07:51 +00:00
2025-06-07 15:57:49 +00:00
2025-06-07 21:12:17 +00:00
2025-06-07 21:12:17 +00:00
2025-07-06 12:35:31 +02:00
2025-06-07 22:11:30 +00:00
2025-06-08 11:07:51 +00:00
2025-06-08 11:07:51 +00:00
2025-06-08 11:07:51 +00:00
2025-06-07 22:11:30 +00:00
2025-06-07 21:12:17 +00:00
2025-06-07 21:12:17 +00:00