@contractkit/plugin-openapi 0.8.1 → 0.8.3

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,35 +1,19 @@
1
-
2
- 
3
- > @contractkit/plugin-openapi@0.8.0 build:ci /Users/robert/projects/contractkit/packages/plugin-openapi
4
- > eslint --max-warnings=0 && pnpm run build
5
-
6
- =============
7
-
8
-
9
- WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
10
-
11
-
12
- * @typescript-eslint/typescript-estree version: 8.57.2
13
- * Supported TypeScript versions: >=4.8.4 <6.0.0
14
- * Your TypeScript version: 6.0.2
15
-
16
-
17
- Please only submit bug reports when using the officially supported version.
18
-
19
-
20
- =============
21
-
22
- > @contractkit/plugin-openapi@0.8.0 build /Users/robert/projects/contractkit/packages/plugin-openapi
23
- > tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly --declaration
24
-
25
- CLI Building entry: src/index.ts
26
- CLI Using tsconfig: tsconfig.json
27
- CLI tsup v8.5.1
28
- CLI Target: esnext
29
- ESM Build start
30
- ESM dist/index.js 19.85 KB
31
- ESM dist/index.js.map 44.92 KB
32
- ESM ⚡️ Build success in 38ms
33
- DTS Build start
34
- DTS ⚡️ Build success in 657ms
35
- DTS dist/index.d.ts 1.33 KB
1
+
2
+ > @contractkit/plugin-openapi@0.8.3 build:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-openapi
3
+ > eslint --max-warnings=0 && pnpm run build
4
+
5
+
6
+ > @contractkit/plugin-openapi@0.8.3 build /home/runner/work/ContractKit/ContractKit/packages/plugin-openapi
7
+ > tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly --declaration
8
+
9
+ CLI Building entry: src/index.ts
10
+ CLI Using tsconfig: tsconfig.json
11
+ CLI tsup v8.5.1
12
+ CLI Target: esnext
13
+ ESM Build start
14
+ ESM dist/index.js 19.85 KB
15
+ ESM dist/index.js.map 44.92 KB
16
+ ESM ⚡️ Build success in 131ms
17
+ DTS Build start
18
+ DTS ⚡️ Build success in 3851ms
19
+ DTS dist/index.d.ts 1.33 KB
@@ -1,105 +1,25 @@
1
-
2
- 
3
- > @contractkit/plugin-openapi@0.8.0 test:ci /Users/robert/projects/contractkit/packages/plugin-openapi
4
- > vitest run --coverage
5
-
6
- [?25l
7
-  RUN  v4.1.5 /Users/robert/projects/contractkit/packages/plugin-openapi
8
- Coverage enabled with v8
9
-
10
- [?2026h
11
-  tests/codegen-openapi.test.ts [queued]
12
-
13
-  Test Files 0 passed (1)
14
-  Tests 0 passed (0)
15
-  Start at 08:51:09
16
-  Duration 204ms
17
- [?2026l[?2026h
18
-  tests/codegen-openapi.test.ts 0/53
19
-
20
-  Test Files 0 passed (1)
21
-  Tests 0 passed (53)
22
-  Start at 08:51:09
23
-  Duration 863ms
24
- [?2026l ✓ tests/codegen-openapi.test.ts (53 tests) 46ms
25
- ✓ toYaml (8)
26
- ✓ serializes simple scalars 1ms
27
- ✓ quotes strings that look like YAML reserved words 0ms
28
- ✓ quotes empty strings 0ms
29
- ✓ quotes strings starting with digits 0ms
30
- ✓ serializes flat objects 0ms
31
- ✓ serializes nested objects 3ms
32
- ✓ serializes simple arrays inline 1ms
33
- ✓ serializes object arrays as block sequences 0ms
34
- ✓ generateOpenApi (31)
35
- ✓ document structure (5)
36
- ✓ generates openapi 3.1.0 header 0ms
37
- ✓ uses config info values 0ms
38
- ✓ defaults title and version when not specified 0ms
39
- ✓ includes servers when configured 0ms
40
- ✓ includes security when configured 10ms
41
- ✓ component schemas (12)
42
- ✓ generates schema for simple model 6ms
43
- ✓ handles optional fields by omitting from required 1ms
44
- ✓ marks readonly/writeonly fields 1ms
45
- ✓ handles default values 0ms
46
- ✓ generates enum schema 0ms
47
- ✓ generates array field schema 0ms
48
- ✓ generates model with base (allOf) 0ms
49
- ✓ emits one $ref per base for multi-base inheritance 0ms
50
- ✓ handles scalar type constraints 0ms
51
- ✓ handles record type 0ms
52
- ✓ handles description on models and fields 0ms
53
- ✓ emits oneOf with a discriminator block for discriminated unions 1ms
54
- ✓ paths (12)
55
- ✓ converts :param to {param} in paths 0ms
56
- ✓ generates GET operation 0ms
57
- ✓ generates POST with request body 0ms
58
- ✓ generates path parameters 0ms
59
- ✓ generates query parameters 0ms
60
- ✓ generates header parameters 0ms
61
- ✓ uses operationId from service binding 0ms
62
- ✓ uses operationId from sdk name 0ms
63
- ✓ generates 204 No content response 0ms
64
- ✓ includes operation description 0ms
65
- ✓ emits response headers 0ms
66
- ✓ handles inline object response body 0ms
67
- ✓ combining multiple files (2)
68
- ✓ merges paths from multiple op files 0ms
69
- ✓ merges schemas from multiple contract files 0ms
70
- ✓ route modifiers (11)
71
- ✓ internal (4)
72
- ✓ excludes an internal operation from paths 0ms
73
- ✓ includes internal operations when config.includeInternal is true 0ms
74
- ✓ excludes all operations when route is internal 0ms
75
- ✓ operation-level override on internal route makes that operation visible 0ms
76
- ✓ schema filtering — internal operations (4)
77
- ✓ excludes schemas only referenced by internal operations 0ms
78
- ✓ transitively includes schemas referenced by public types 0ms
79
- ✓ excludes all schemas when all operations are internal 0ms
80
- ✓ includes all schemas when there are no op files 0ms
81
- ✓ deprecated (3)
82
- ✓ sets deprecated: true for a deprecated operation 0ms
83
- ✓ does not set deprecated for a normal operation 0ms
84
- ✓ cascades route-level deprecated to all operations 0ms
85
- ✓ options-level header globals (3)
86
- ✓ renders global response headers on every status code, including bodyless and 4xx/5xx 3ms
87
- ✓ omits global response headers on a status code that opts out via headers: none 1ms
88
- ✓ renders global request headers as parameters on every operation 9ms
89
-
90
-  Test Files  1 passed (1)
91
-  Tests  53 passed (53)
92
-  Start at  08:51:09
93
-  Duration  1.02s (transform 161ms, setup 0ms, import 651ms, tests 46ms, environment 0ms)
94
-
95
-  % Coverage report from v8
96
- ---------------------|---------|----------|---------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------
97
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
98
- ---------------------|---------|----------|---------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------
99
- All files  |  78.88 |  74.52 |  82.25 |  81.03 |  
100
-  src  |  79.5 |  75.26 |  86.11 |  81.5 |  
101
-  codegen-openapi.ts |  79.5 |  75.26 |  86.11 |  81.5 | 56-60,67-68,78-79,85,278,288,302,315,323,345,351,363-364,376-377,382-385,392-394,399-409,415-417,424-437,468-474,525,567,588-609,669-672,696,706
102
-  tests  |  73.33 |  67.74 |  76.92 |  76.92 |  
103
-  helpers.ts  |  73.33 |  67.74 |  76.92 |  76.92 | 44,60,76,110-118,138,149-150 
104
- ---------------------|---------|----------|---------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------
105
- [?25h
1
+
2
+ > @contractkit/plugin-openapi@0.8.3 test:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-openapi
3
+ > vitest run --coverage
4
+
5
+
6
+  RUN  v4.1.5 /home/runner/work/ContractKit/ContractKit/packages/plugin-openapi
7
+ Coverage enabled with v8
8
+
9
+ ✓ tests/codegen-openapi.test.ts (53 tests) 297ms
10
+
11
+  Test Files  1 passed (1)
12
+  Tests  53 passed (53)
13
+  Start at  18:49:08
14
+  Duration  4.34s (transform 1.16s, setup 0ms, import 2.97s, tests 297ms, environment 0ms)
15
+
16
+  % Coverage report from v8
17
+ -------------------|---------|----------|---------|---------|-------------------
18
+ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
19
+ -------------------|---------|----------|---------|---------|-------------------
20
+ All files | 78.88 | 74.52 | 82.25 | 81.03 |
21
+ src | 79.5 | 75.26 | 86.11 | 81.5 |
22
+ ...en-openapi.ts | 79.5 | 75.26 | 86.11 | 81.5 | ...69-672,696,706
23
+ tests | 73.33 | 67.74 | 76.92 | 76.92 |
24
+ helpers.ts | 73.33 | 67.74 | 76.92 | 76.92 | ...18,138,149-150
25
+ -------------------|---------|----------|---------|---------|-------------------
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @contractkit/contractkit-plugin-openapi
2
2
 
3
+ ## 0.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7555412]
8
+ - @contractkit/core@0.13.0
9
+
10
+ ## 0.8.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [876696f]
15
+ - @contractkit/core@0.12.0
16
+
3
17
  ## 0.8.1
4
18
 
5
19
  ### Patch Changes
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1777467070119" clover="3.2.0">
3
- <project timestamp="1777467070119" name="All files">
2
+ <coverage generated="1777661352889" clover="3.2.0">
3
+ <project timestamp="1777661352889" name="All files">
4
4
  <metrics statements="385" coveredstatements="312" conditionals="318" coveredconditionals="237" methods="62" coveredmethods="51" elements="765" coveredelements="600" complexity="0" loc="385" ncloc="385" packages="2" files="2" classes="2"/>
5
5
  <package name="src">
6
6
  <metrics statements="346" coveredstatements="282" conditionals="287" coveredconditionals="216" methods="36" coveredmethods="31"/>
7
- <file name="codegen-openapi.ts" path="/Users/robert/projects/contractkit/packages/plugin-openapi/src/codegen-openapi.ts">
7
+ <file name="codegen-openapi.ts" path="/home/runner/work/ContractKit/ContractKit/packages/plugin-openapi/src/codegen-openapi.ts">
8
8
  <metrics statements="346" coveredstatements="282" conditionals="287" coveredconditionals="216" methods="36" coveredmethods="31"/>
9
9
  <line num="48" count="43" type="cond" truecount="5" falsecount="4"/>
10
10
  <line num="50" count="17" type="stmt"/>
@@ -356,7 +356,7 @@
356
356
  </package>
357
357
  <package name="tests">
358
358
  <metrics statements="39" coveredstatements="30" conditionals="31" coveredconditionals="21" methods="26" coveredmethods="20"/>
359
- <file name="helpers.ts" path="/Users/robert/projects/contractkit/packages/plugin-openapi/tests/helpers.ts">
359
+ <file name="helpers.ts" path="/home/runner/work/ContractKit/ContractKit/packages/plugin-openapi/tests/helpers.ts">
360
360
  <metrics statements="39" coveredstatements="30" conditionals="31" coveredconditionals="21" methods="26" coveredmethods="20"/>
361
361
  <line num="32" count="121" type="stmt"/>
362
362
  <line num="36" count="35" type="stmt"/>