Skip to content

fix: preserve large integers in service debug - #1527

Open
Tsukikage7 wants to merge 1 commit into
apache:developfrom
Tsukikage7:fix/snowflake-id-precision
Open

fix: preserve large integers in service debug#1527
Tsukikage7 wants to merge 1 commit into
apache:developfrom
Tsukikage7:fix/snowflake-id-precision

Conversation

@Tsukikage7

Copy link
Copy Markdown

Description

Preserve large integer values in the service debug request editor so snowflake IDs are not rounded by JavaScript's number handling.

Changes

  • Parse debug JSON with lossless-json.
  • Keep unsafe numeric values as strings before sending the generic invoke request.
  • Add regression tests for unsafe and safe numbers.

Closes #1245

Verification

  • yarn test
  • Targeted ESLint passed.
  • yarn vite build

Full repository lint and type-check remain blocked by existing baseline errors unrelated to this change.

@sonarqubecloud

Copy link
Copy Markdown

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.

dubbo接口测试,输入ID值为雪花ID时,会出现精度丢失,造成无法测试

1 participant