@redocly/respect-core 0.0.0-snapshot.1752688318 → 0.0.0-snapshot.1752689538
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-arazzo-description.d.ts","sourceRoot":"","sources":["../../../src/modules/arazzo-description-generator/generate-arazzo-description.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,eAAO,MAAM,cAAc;;;CAG1B,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-arazzo-description.d.ts","sourceRoot":"","sources":["../../../src/modules/arazzo-description-generator/generate-arazzo-description.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,eAAO,MAAM,cAAc;;;CAG1B,CAAC;AAUF,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,qBAAqB,gBAyC1E"}
|
|
@@ -6,19 +6,20 @@ export const infoSubstitute = {
|
|
|
6
6
|
title: '[REPLACE WITH API title]',
|
|
7
7
|
version: '[REPLACE WITH API version]',
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
async function resolveDescriptionNameFromPath(descriptionPath) {
|
|
10
|
+
const path = await getPath();
|
|
11
11
|
return path
|
|
12
12
|
.parse(descriptionPath)
|
|
13
13
|
.name.replace(/\./g, '-')
|
|
14
14
|
.replace(/[^A-Za-z0-9_-]/g, '');
|
|
15
15
|
}
|
|
16
16
|
export async function generateArazzoDescription(opts) {
|
|
17
|
+
const path = await getPath();
|
|
17
18
|
const { descriptionPath, outputFile, collectSpecData } = opts;
|
|
18
19
|
const document = (await bundleOpenApi(opts)) || {};
|
|
19
20
|
collectSpecData?.(document);
|
|
20
21
|
const { paths: pathsObject, info, security: rootSecurity, components } = document;
|
|
21
|
-
const sourceDescriptionName = resolveDescriptionNameFromPath(descriptionPath);
|
|
22
|
+
const sourceDescriptionName = await resolveDescriptionNameFromPath(descriptionPath);
|
|
22
23
|
const resolvedDescriptionPath = outputFile
|
|
23
24
|
? path.relative(path.dirname(outputFile), path.resolve(descriptionPath))
|
|
24
25
|
: descriptionPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-arazzo-description.js","sourceRoot":"","sources":["../../../src/modules/arazzo-description-generator/generate-arazzo-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,sCAAsC,EAAE,MAAM,wCAAwC,CAAC;AAIhG,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,KAAK,EAAE,0BAA0B;IACjC,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-arazzo-description.js","sourceRoot":"","sources":["../../../src/modules/arazzo-description-generator/generate-arazzo-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,sCAAsC,EAAE,MAAM,wCAAwC,CAAC;AAIhG,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,KAAK,EAAE,0BAA0B;IACjC,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEF,KAAK,UAAU,8BAA8B,CAAC,eAAuB;IACnE,MAAM,IAAI,GAAG,MAAM,OAAO,EAAE,CAAC;IAC7B,OAAO,IAAI;SACR,KAAK,CAAC,eAAe,CAAC;SACtB,IAAI,CAAC,OA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CAAC;YAC1C,gBAAgB,EAAE,WAAW;YAC7B,qBAAqB;YACrB,YAAY;YACZ,gBAAgB,EAAE,gBAAgB,IAAI,EAAE;YACxC,eAAe,EAAE,UAAU,EAAE,eAAe;SAC7C,CAAC;QACF,GAAG,CAAC,gBAAgB,IAAI;YACtB,UAAU,EAAE,gBAAgB;SAC7B,CAAC;KACH,CAAC;IAEF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/respect-core",
|
|
3
|
-
"version": "0.0.0-snapshot.
|
|
3
|
+
"version": "0.0.0-snapshot.1752689538",
|
|
4
4
|
"description": "API testing framework core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@faker-js/faker": "^7.6.0",
|
|
41
41
|
"@noble/hashes": "^1.8.0",
|
|
42
42
|
"@redocly/ajv": "8.11.2",
|
|
43
|
-
"@redocly/openapi-core": "0.0.0-snapshot.
|
|
43
|
+
"@redocly/openapi-core": "0.0.0-snapshot.1752689538",
|
|
44
44
|
"better-ajv-errors": "^1.2.0",
|
|
45
45
|
"colorette": "^2.0.20",
|
|
46
46
|
"jest-diff": "^29.3.1",
|