Repository navigation
Commit d7937f5
Add typescript-wright client generator (#19038)
* add typescript-wright generator
* add api, model tests
* 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 tests
* remove invalid code
* update samples, docs
---------
Co-authored-by: Roy de Kleijn <dekleijn.roy@gmail.com>1 parent 31c062f commit d7937f5
60 files changed
Lines changed: 5410 additions & 0 deletions
File tree
- .github/workflows
- bin/configs
- docs
- generators
- modules/openapi-generator/src
- main
- java/org/openapitools/codegen/languages
- resources
- META-INF/services
- typescript-playwright
- test/java/org/openapitools/codegen/typescript/playwright
- samples/client/petstore/typescript-playwright
- .openapi-generator
- apis
- models
- 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 | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
| 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 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments