Skip to content

Commit 72657c3

Browse files
committed
fix(docs): restore oneOf schema for delete rows and use rem units in CSS
1 parent 87f5306 commit 72657c3

File tree

2 files changed

+45
-29
lines changed

2 files changed

+45
-29
lines changed

apps/docs/app/global.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -637,19 +637,19 @@ html.dark span.font-mono.font-medium[data-method="delete"] {
637637
#nd-sidebar a:has(span.font-mono.font-medium) {
638638
display: flex !important;
639639
align-items: center !important;
640-
gap: 6px;
640+
gap: 0.375rem;
641641
}
642642

643643
/* Sidebar method badges — fixed-width for right-aligned labels */
644644
#nd-sidebar a span.font-mono.font-medium {
645645
display: inline-flex;
646646
align-items: center;
647647
justify-content: center;
648-
width: 42px;
649-
font-size: 10px !important;
648+
width: 2.625rem;
649+
font-size: 0.625rem !important;
650650
line-height: 1 !important;
651-
padding: 2.5px 4px;
652-
border-radius: 3px;
651+
padding: 0.15625rem 0.25rem;
652+
border-radius: 0.1875rem;
653653
flex-shrink: 0;
654654
}
655655

apps/docs/openapi.json

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,33 +1775,49 @@
17751775
"content": {
17761776
"application/json": {
17771777
"schema": {
1778-
"type": "object",
1779-
"required": ["workspaceId"],
1780-
"properties": {
1781-
"workspaceId": {
1782-
"type": "string",
1783-
"description": "The workspace that owns the table."
1784-
},
1785-
"filter": {
1778+
"oneOf": [
1779+
{
17861780
"type": "object",
1787-
"additionalProperties": true,
1788-
"description": "Filter criteria to match rows for deletion. Mutually exclusive with `rowIds`."
1789-
},
1790-
"rowIds": {
1791-
"type": "array",
1792-
"items": {
1793-
"type": "string"
1794-
},
1795-
"maxItems": 1000,
1796-
"description": "Explicit list of row IDs to delete (max 1000). Mutually exclusive with `filter`."
1781+
"required": ["workspaceId", "filter"],
1782+
"description": "Delete by filter.",
1783+
"properties": {
1784+
"workspaceId": {
1785+
"type": "string",
1786+
"description": "The workspace that owns the table."
1787+
},
1788+
"filter": {
1789+
"type": "object",
1790+
"additionalProperties": true,
1791+
"description": "Filter criteria to match rows for deletion."
1792+
},
1793+
"limit": {
1794+
"type": "integer",
1795+
"minimum": 1,
1796+
"maximum": 1000,
1797+
"description": "Maximum number of rows to delete. Defaults to all matching rows, capped at 1000."
1798+
}
1799+
}
17971800
},
1798-
"limit": {
1799-
"type": "integer",
1800-
"minimum": 1,
1801-
"maximum": 1000,
1802-
"description": "Maximum number of rows to delete when using `filter`. Defaults to all matching rows, capped at 1000."
1801+
{
1802+
"type": "object",
1803+
"required": ["workspaceId", "rowIds"],
1804+
"description": "Delete by IDs.",
1805+
"properties": {
1806+
"workspaceId": {
1807+
"type": "string",
1808+
"description": "The workspace that owns the table."
1809+
},
1810+
"rowIds": {
1811+
"type": "array",
1812+
"items": {
1813+
"type": "string"
1814+
},
1815+
"maxItems": 1000,
1816+
"description": "Explicit list of row IDs to delete (max 1000)."
1817+
}
1818+
}
18031819
}
1804-
}
1820+
]
18051821
}
18061822
}
18071823
}

0 commit comments

Comments
 (0)