Skip to content

Commit 557b9b6

Browse files
committed
actually fix ci
Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
1 parent e684db8 commit 557b9b6

File tree

5 files changed

+547
-18
lines changed

5 files changed

+547
-18
lines changed

src/generators/json-all/index.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ export default {
3535
* @returns {Promise<object>}
3636
*/
3737
async generate(input, { version, output }) {
38-
const versionString = `v${version.raw}`;
39-
4038
const generatedValue = {
41-
$schema: `${BASE_URL}docs/${versionString}/api/${SCHEMA_FILENAME}`,
39+
$schema: `${BASE_URL}docs/${version.raw}/api/${SCHEMA_FILENAME}`,
4240
modules: [],
4341
text: [],
4442
};
@@ -57,7 +55,7 @@ export default {
5755
});
5856

5957
if (output) {
60-
const schema = generateJsonSchema(versionString);
58+
const schema = generateJsonSchema(version.raw);
6159

6260
// Write the parsed JSON schema to the output directory
6361
await writeFile(join(output, SCHEMA_FILENAME), JSON.stringify(schema));

src/generators/json/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default {
5252
throw new TypeError(`no grouped nodes found for ${head.api}`);
5353
}
5454

55-
return createSection(head, nodes, `v${version.toString()}`);
55+
return createSection(head, nodes, version.raw);
5656
};
5757

5858
/**

src/generators/json/utils/sections/__tests__/base.test.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ describe('addStabilityStatus', () => {
404404
});
405405

406406
assert.deepStrictEqual(base.stability, {
407-
value: 0,
408-
text: 'description',
407+
index: 0,
408+
description: 'description',
409409
});
410410
});
411411

@@ -430,8 +430,8 @@ describe('addStabilityStatus', () => {
430430
});
431431

432432
assert.deepStrictEqual(base.stability, {
433-
value: 0,
434-
text: 'description',
433+
index: 0,
434+
description: 'description',
435435
});
436436
});
437437
});

0 commit comments

Comments
 (0)