Key values are being changed
The following json:
{
"role_grants": [
{
"created_at": "2025-10-17T17:55:18+00:00",
"role_grant_id": 839299365868340225,
"role_slug": "tenant_admin",
"scope_id": null,
"scope_kind": "system",
"user_id": "10000000-0000-0000-0000-000000000001"
},
{
"created_at": "2025-10-17T17:55:18+00:00",
"role_grant_id": 839299365868340226,
"role_slug": "studies.creator",
"scope_id": null,
"scope_kind": "studies",
"user_id": "10000000-0000-0000-0000-000000000001"
}]
}
Running linter on it turns all `role_grant_id` to 839299365868340200.
{
"role_grants": [
{
"created_at": "2025-10-17T17:55:18+00:00",
"role_grant_id": 839299365868340200,
"role_slug": "tenant_admin",
"scope_id": null,
"scope_kind": "system",
"user_id": "10000000-0000-0000-0000-000000000001"
},
{
"created_at": "2025-10-17T17:55:18+00:00",
"role_grant_id": 839299365868340200,
"role_slug": "studies.creator",
"scope_id": null,
"scope_kind": "studies",
"user_id": "10000000-0000-0000-0000-000000000001"
}
]
}
Running through pre-commit:
- repo: https://github.com/tillig/json-sort-cli
rev: v1.0.0
hooks:
- id: json-sort
args:
- --autofix
Is this a bug? Or an issue due to large numbers?
关闭于 2025-12-12 0 条评论