Skip to content

Commit 4a88a66

Browse files
authored
feat: add descriptions for resource details (#1105)
* feat: add descriptions for resource details * Apply automatic changes --------- Co-authored-by: shamsartem <[email protected]>
1 parent f4fd663 commit 4a88a66

File tree

2 files changed

+31
-17
lines changed

2 files changed

+31
-17
lines changed

packages/cli/package/docs/configs/provider.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ Override or extend RAM details not related to matching but visible to the user f
139139

140140
**Properties**
141141

142-
| Property | Type | Required | Description |
143-
|----------------|---------|----------|-------------|
144-
| `ecc` | boolean | No | |
145-
| `manufacturer` | string | No | |
146-
| `model` | string | No | |
147-
| `speed` | integer | No | |
142+
| Property | Type | Required | Description |
143+
|----------------|---------|----------|------------------------------------------|
144+
| `ecc` | boolean | No | Error-Correcting Code (ECC) availability |
145+
| `manufacturer` | string | No | |
146+
| `model` | string | No | |
147+
| `speed` | integer | No | in MHz |
148148

149149
##### storage
150150

@@ -168,7 +168,7 @@ Override or extend Storage details not related to matching but visible to the us
168168
|------------------------|---------|----------|-------------|
169169
| `manufacturer` | string | No | |
170170
| `model` | string | No | |
171-
| `sequentialWriteSpeed` | integer | No | |
171+
| `sequentialWriteSpeed` | integer | No | in Mb/s |
172172

173173
## offers
174174

@@ -301,12 +301,12 @@ RAM details not related to matching but visible to the user for information purp
301301

302302
##### Properties
303303

304-
| Property | Type | Required | Description |
305-
|----------------|---------|----------|-------------|
306-
| `ecc` | boolean | No | |
307-
| `manufacturer` | string | No | |
308-
| `model` | string | No | |
309-
| `speed` | integer | No | |
304+
| Property | Type | Required | Description |
305+
|----------------|---------|----------|------------------------------------------|
306+
| `ecc` | boolean | No | Error-Correcting Code (ECC) availability |
307+
| `manufacturer` | string | No | |
308+
| `model` | string | No | |
309+
| `speed` | integer | No | in MHz |
310310

311311
### storage
312312

@@ -328,5 +328,5 @@ Storage details not related to matching but visible to the user for information
328328
|------------------------|---------|----------|-------------|
329329
| `manufacturer` | string | No | |
330330
| `model` | string | No | |
331-
| `sequentialWriteSpeed` | integer | No | |
331+
| `sequentialWriteSpeed` | integer | No | in Mb/s |
332332

packages/cli/package/src/lib/configs/project/provider/provider4.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,17 @@ const peerRamDetailsSchema = {
9999
properties: {
100100
manufacturer: { type: "string", nullable: true },
101101
model: { type: "string", nullable: true },
102-
speed: { type: "integer", nullable: true, minimum: 1 },
103-
ecc: { type: "boolean", nullable: true },
102+
speed: {
103+
description: "in MHz",
104+
type: "integer",
105+
nullable: true,
106+
minimum: 1,
107+
},
108+
ecc: {
109+
description: "Error-Correcting Code (ECC) availability",
110+
type: "boolean",
111+
nullable: true,
112+
},
104113
},
105114
required: [],
106115
} as const satisfies JSONSchemaType<PeerRamDetails>;
@@ -129,7 +138,12 @@ const peerStorageDetailsSchema = {
129138
properties: {
130139
manufacturer: { type: "string", nullable: true },
131140
model: { type: "string", nullable: true },
132-
sequentialWriteSpeed: { type: "integer", nullable: true, minimum: 1 },
141+
sequentialWriteSpeed: {
142+
description: "in Mb/s",
143+
type: "integer",
144+
nullable: true,
145+
minimum: 1,
146+
},
133147
},
134148
required: [],
135149
} as const satisfies JSONSchemaType<PeerStorageDetails>;

0 commit comments

Comments
 (0)