@groton/canvas-api.swagger-renderer 0.1.0 → 0.1.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.1.2](https://github.com/groton-school/canvas-cli/compare/swagger-renderer/0.1.1...swagger-renderer/0.1.2) (2025-09-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * apply Operations overrides twice ([2507f95](https://github.com/groton-school/canvas-cli/commit/2507f95740d20524288a5b8c69d9bc7589a3cf98))
11
+
12
+ ## [0.1.1](https://github.com/groton-school/canvas-cli/compare/swagger-renderer/0.1.0...swagger-renderer/0.1.1) (2025-08-13)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * remove extraneous dot prefixes on relative paths ([3d8f8e9](https://github.com/groton-school/canvas-cli/commit/3d8f8e9f820209d742e184bbfde127a6305deb51))
18
+
5
19
  ## [0.1.0](https://github.com/groton-school/canvas-cli/compare/swagger-renderer/0.0.4...swagger-renderer/0.1.0) (2025-08-01)
6
20
 
7
21
  ### ⚠ BREAKING CHANGES
@@ -50,7 +50,7 @@ export function annotateOperations({ outputPath, ...annotation }) {
50
50
  });
51
51
  }
52
52
  // @ts-expect-error 2322 TODO $ref typing
53
- const annotatedOperation = {
53
+ const annotatedOperation = Overrides.operation({
54
54
  ...operation,
55
55
  specPath,
56
56
  tsImports,
@@ -59,8 +59,8 @@ export function annotateOperations({ outputPath, ...annotation }) {
59
59
  tsName,
60
60
  tsUpload,
61
61
  tsPaginated
62
- };
63
- annotatedOperation.tsFilePath = path.join(outputPath, toOperationPath(endpoint.path, annotatedOperation), tsName + '.ts');
62
+ });
63
+ annotatedOperation.tsFilePath = path.join(outputPath, toOperationPath(endpoint.path, annotatedOperation), annotatedOperation.tsName + '.ts');
64
64
  for (const parameter of operation.parameters) {
65
65
  const annotatedParameter = {
66
66
  ...parameter,
@@ -72,6 +72,7 @@ export function operation(operation) {
72
72
  .map(Colors.value)
73
73
  .join(', ')}`);
74
74
  const result = merge(operation, _overrides.operations[operation.nickname]);
75
+ Log.debug(result);
75
76
  for (const paramType of [
76
77
  'tsPathParameters',
77
78
  'tsQueryParameters',
@@ -1,7 +1,7 @@
1
1
  import path from 'node:path';
2
2
  export function importPath(from, to) {
3
3
  let relative = path.relative(path.dirname(from), to);
4
- if (!/\//.test(relative)) {
4
+ if (!/^\./.test(relative)) {
5
5
  relative = `./${relative}`;
6
6
  }
7
7
  relative = relative.replace(/\.ts$/, '.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groton/canvas-api.swagger-renderer",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Render Canvas LMS Swagger 1.0 API documentation as TypeScript client",
5
5
  "homepage": "https://github.com/groton-school/canvas-cli/tree/main/packages/api/swagger-renderer#readme",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  "commit-and-tag-version": "^12.5.2",
41
41
  "del-cli": "^6.0.0",
42
42
  "npm-run-all": "^4.1.5",
43
- "typescript": "^5.8.3",
43
+ "typescript": "~5.8.3",
44
44
  "@groton/swagger-spec-ts": "0.1.0"
45
45
  },
46
46
  "scripts": {