Skip to content

refactor: change UserRule 'no' field to 'id' with string type#11

Merged
baeyc0510 merged 1 commit intomainfrom
refactor/policy-no-to-id
Nov 12, 2025
Merged

refactor: change UserRule 'no' field to 'id' with string type#11
baeyc0510 merged 1 commit intomainfrom
refactor/policy-no-to-id

Conversation

@baeyc0510
Copy link
Copy Markdown
Contributor

Replace the 'no' field with 'id' across the codebase for better clarity and consistency. Changed from int to string type to align with linter configuration requirements.

Changes:

  • Update UserRule schema: no (int) -> id (string)
  • Update policy-editor.js: all references from 'no' to 'id'
  • Update policy validation in manager.go
  • Update all template JSON files with string-typed id values
  • Remove parseInt() calls in JavaScript, use string comparison

🤖 Generated with Claude Code

Replace the 'no' field with 'id' across the codebase for better clarity
and consistency. Changed from int to string type to align with linter
configuration requirements.

Changes:
- Update UserRule schema: no (int) -> id (string)
- Update policy-editor.js: all references from 'no' to 'id'
- Update policy validation in manager.go
- Update all template JSON files with string-typed id values
- Remove parseInt() calls in JavaScript, use string comparison

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@baeyc0510 baeyc0510 merged commit 26f479a into main Nov 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant