fix(inbounds): allow negative subSortIndex for subscription order (#6465)

* fix(inbounds): allow negative subSortIndex for subscription order

Preserve explicitly set negative indices so primary inbounds can sort
ahead of the default without renumbering peers; keep 0/omitted → 1.

* fix(inbounds): gofumpt model.go and trim subSortIndex comments

---------

Co-authored-by: mrchatam <287639636+mrchatam@users.noreply.github.com>
This commit is contained in:
mrchatamandmrchatam authored and GitHub committed 2026-09-12 11:14:53 +02:00 Unverified
1 parent b467d4c676
commit 51e0afdd90
16 files changed
+114 -50

No files matched your search

+1 -2
View File
@@ -2630,9 +2630,8 @@
"sniffing": {},
"streamSettings": {},
"subSortIndex": {
"description": "1-based sort order of this inbound's links in subscription output only (lower first; ties by id)",
"description": "Sort order of this inbound's links in subscription output only (lower first; negatives allowed; 0/omitted → 1; ties by id)",
"example": 1,
"minimum": 1,
"type": "integer"
},
"tag": {
+1 -2
View File
@@ -2630,9 +2630,8 @@
"sniffing": {},
"streamSettings": {},
"subSortIndex": {
"description": "1-based sort order of this inbound's links in subscription output only (lower first; ties by id)",
"description": "Sort order of this inbound's links in subscription output only (lower first; negatives allowed; 0/omitted → 1; ties by id)",
"example": 1,
"minimum": 1,
"type": "integer"
},
"tag": {
+1 -2
View File
@@ -2604,9 +2604,8 @@ export const SCHEMAS: Record<string, unknown> = {
"sniffing": {},
"streamSettings": {},
"subSortIndex": {
"description": "1-based sort order of this inbound's links in subscription output only (lower first; ties by id)",
"description": "Sort order of this inbound's links in subscription output only (lower first; negatives allowed; 0/omitted → 1; ties by id)",
"example": 1,
"minimum": 1,
"type": "integer"
},
"tag": {
Loaded 3 of 16 files, more files were not shown because too many files have changed in this diff. Show more