feat(typescript): Support inline types in TypeScript generator #9330
ci.yml
on: pull_request
ts-generator-changes
24s
lint
2m 33s
compile
3m 0s
eslint
2m 9s
test
4m 38s
ete-tests
5m 14s
live-test-dev
0s
live-test-dev-windows
0s
node-version-tests
0s
cloudflare-startup-tests
0s
browser-startup-tests
0s
Annotations
4 errors and 10 warnings
test
Process completed with exit code 1.
|
src/tests/write-definition/writeDefinition.test.ts > validate namespaced API > namespaced:
packages/cli/ete-tests/src/tests/write-definition/writeDefinition.test.ts#L44
Error: Snapshot `validate namespaced API > namespaced 1` mismatched
- Expected
+ Received
@@ -198,24 +198,27 @@
enum:
- place
- trade
- cancel
- initial
+ inline: true
source:
openapi: asyncapi/sample.yml
EventsItemSide:
enum:
- bid
- side
+ inline: true
source:
openapi: asyncapi/sample.yml
EventsItemType:
enum:
- trade
- change
- name: AuctionBlockTrade
value: auction, block_trade
+ inline: true
source:
openapi: asyncapi/sample.yml
Heartbeat:
extends:
- Default
@@ -366,10 +369,11 @@
- eur
- gbp
- nok
- sek
- try
+ inline: true
source:
openapi: openapi/trains/openapi.yml
BookingPaymentSource:
base-properties: {}
discriminant: object
@@ -423,18 +427,20 @@
The type of entity that holds the account. This can be either `individual`
or `company`.
enum:
- individual
- company
+ inline: true
source:
openapi: openapi/trains/openapi.yml
BookingPaymentStatus:
docs: The status of the payment, one of `pending`, `succeeded`, or `failed`.
enum:
- pending
- succeeded
- failed
+ inline: true
source:
openapi: openapi/trains/openapi.yml
Card:
docs: A card (debit or credit) to take payment from.
inline: true
❯ src/tests/write-definition/writeDefinition.test.ts:44:102
|
src/tests/write-definition/writeDefinition.test.ts > validate namespaced API from Cohere > namespaced-fleshedout:
packages/cli/ete-tests/src/tests/write-definition/writeDefinition.test.ts#L44
Error: Snapshot `validate namespaced API from Cohere > namespaced-fleshedout 1` mismatched
- Expected
+ Received
@@ -65,10 +65,11 @@
- AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
enum:
- 'OFF'
- AUTO
- AUTO_PRESERVE_ORDER
+ inline: true
source:
openapi: openapi/cohere.yaml
ChatRequestSafetyMode:
docs: >
Used to select the [safety instruction](/docs/safety-modes) inserted into
@@ -90,10 +91,11 @@
Private Deployments
enum:
- CONTEXTUAL
- STRICT
- NONE
+ inline: true
source:
openapi: openapi/cohere.yaml
ClientClosedRequestErrorBody:
properties:
data: optional<string>
@@ -683,10 +685,11 @@
Private Deployments
enum:
- CONTEXTUAL
- STRICT
- NONE
+ inline: true
source:
openapi: openapi/cohere-v2.yaml
service:
auth: false
base-path: ''
❯ src/tests/write-definition/writeDefinition.test.ts:44:102
|
ete-tests
Process completed with exit code 1.
|
ts-generator-changes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ts-generator-changes
The process '/usr/bin/git' failed with exit code 128
|
eslint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
eslint
The process '/usr/bin/git' failed with exit code 128
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint
The process '/usr/bin/git' failed with exit code 128
|
compile
The process '/usr/bin/git' failed with exit code 128
|
test
The process '/usr/bin/git' failed with exit code 128
|
test
Restore cache failed: Dependencies file is not found in /home/runner/work/fern/fern. Supported file pattern: go.sum
|
ete-tests
The process '/usr/bin/git' failed with exit code 128
|