@groton/canvas-api.swagger-renderer 0.1.1 → 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 +7 -0
- package/dist/Render/Operations.js +3 -3
- package/dist/Render/Overrides.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
|
|
5
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)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -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,
|
package/dist/Render/Overrides.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groton/canvas-api.swagger-renderer",
|
|
3
|
-
"version": "0.1.
|
|
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": {
|