Repository navigation
Commit 07ae0fa
authored
Typescript playwright (#25282)
* adding openapi to playwright typescript support
* fixes
* [typescript-playwright] address PR review feedback
- runtime: resolve BASE_PATH from the BASE_URL env var at runtime so the
target server can actually be overridden (previously ignored)
- runtime/apis: build form and multipart bodies from a FormData so
collectionFormat=multi array fields emit one repeated field per element;
file parts are appended as Blobs and object parts as application/json
(via a JSONPart wrapper) instead of untyped text
- runtime: JSON-encode bare-primitive request bodies when the Content-Type
is JSON (Playwright otherwise sends the string verbatim)
- generated specs: escape operation summaries and enum example values so
titles containing apostrophes/backslashes/newlines produce valid TypeScript
- package.json: only emit "private": true when no npmRepository is set, and
require TypeScript >= 4.7 to match the ES2021 compile target
- README: correct layout note (one describe block per API, one test per operation)
- regenerate petstore sample
* [CI] fix invalid samples-r workflow
`working-directory` is only valid on `run` steps; on the
setup-r-dependencies action it must be passed as a `with` input.
This fixes the "Unexpected value 'working-directory'" parse error
that marks the workflow invalid on every PR.
* [CI] add typescript-playwright client sample workflow
* remove accidentally committed effective-pom.xml
* [CI] run typescript-playwright tests against echo server
* [CI] wait for echo server readiness before running playwright tests1 parent e7b5ef9 commit 07ae0fa
71 files changed
Lines changed: 1557 additions & 3882 deletions
File tree
- .github/workflows
- bin/configs
- docs/generators
- modules/openapi-generator/src
- main
- java/org/openapitools/codegen/languages
- resources/typescript-playwright
- test/java/org/openapitools/codegen/typescript/playwright
- samples/client/petstore
- typescript-playwright
- .openapi-generator
- apis
- models
- spec
- apis
- models
- typescript-wright
- .openapi-generator
- spec
- apis
- models
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
245 | 244 | | |
246 | | - | |
247 | | - | |
| 245 | + | |
248 | 246 | | |
249 | | - | |
250 | | - | |
| 247 | + | |
251 | 248 | | |
252 | | - | |
253 | | - | |
| 249 | + | |
254 | 250 | | |
255 | 251 | | |
256 | | - | |
257 | | - | |
| 252 | + | |
258 | 253 | | |
259 | | - | |
260 | | - | |
| 254 | + | |
261 | 255 | | |
262 | 256 | | |
263 | 257 | | |
| |||
1157 | 1151 | | |
1158 | 1152 | | |
1159 | 1153 | | |
1160 | | - | |
| 1154 | + | |
0 commit comments