Skip to content

chore(cli): model fern definition in fern, instead of zod #7703

chore(cli): model fern definition in fern, instead of zod

chore(cli): model fern definition in fern, instead of zod #7703

Triggered via pull request October 20, 2024 23:54
Status Failure
Total duration 5m 12s
Billable time 12m
Artifacts

ci.yml

on: pull_request
node-version-tests
0s
node-version-tests
cloudflare-startup-tests
0s
cloudflare-startup-tests
browser-startup-tests
0s
browser-startup-tests
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 19 warnings
lint
Process completed with exit code 1.
eslint: packages/cli/configuration/src/generators-yml/schemas/errors/FernDefinitionError.ts#L31
'lines' is never reassigned. Use 'const' instead
eslint: packages/cli/fern-definition/schema/src/schemas/errors/FernDefinitionError.ts#L31
'lines' is never reassigned. Use 'const' instead
test
Process completed with exit code 1.
src/tests/api-option/api-option.test.ts > --api > simple > Succeeds if API is specified: packages/cli/ete-tests/src/tests/api-option/api-option.test.ts#L26
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs --api api1 ir /tmp/tmp-4468-BS18PXVhUL53 strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) Generating IR for workspace api1 [api1]: api.yml -> /error-discrimination/strategy must be equal to constant [api1]: api.yml -> /error-discrimination/strategy must be equal to constant [api1]: api.yml -> /error-discrimination must match exactly one schema in oneOf ❯ makeError ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11 ❯ handlePromise ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26 ❯ src/tests/api-option/api-option.test.ts:26:32 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs --api api1 ir /tmp/tmp-4468-BS18PXVhUL53', command: 'node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs --api api1 ir /tmp/tmp-4468-BS18PXVhUL53', escapedCommand: 'node "/home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs" --api api1 ir "/tmp/tmp-4468-BS18PXVhUL53"', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: 'Generating IR for workspace api1\n[api1]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api1]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api1]: api.yml -> /error-discrimination\n must match exactly one schema in oneOf', stderr: 'strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes)\nstrict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes)\nstrict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes)\nstrict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes)\nstrict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes)\nstrict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes)\nstrict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeRefer
src/tests/dependencies/dependencies.test.ts > dependencies > file dependencies: packages/cli/ete-tests/src/tests/ir/generateIrAsString.ts#L39
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs ir /home/runner/work/fern/fern/packages/cli/ete-tests/src/tests/dependencies/fixtures/file-dependencies/ir.json --api api-docs Generating IR for workspace api-docs [api-docs]: api.yml -> /error-discrimination must have required property 'property-name' [api-docs]: api.yml -> /error-discrimination/strategy must be equal to constant [api-docs]: api.yml -> /error-discrimination/strategy must be equal to constant [api-docs]: api.yml -> /error-discrimination must match exactly one schema in oneOf ❯ makeError ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11 ❯ handlePromise ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26 ❯ Module.generateIrAsString src/tests/ir/generateIrAsString.ts:39:5 ❯ src/tests/dependencies/dependencies.test.ts:18:20 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs ir /home/runner/work/fern/fern/packages/cli/ete-tests/src/tests/dependencies/fixtures/file-dependencies/ir.json --api api-docs', command: 'node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs ir /home/runner/work/fern/fern/packages/cli/ete-tests/src/tests/dependencies/fixtures/file-dependencies/ir.json --api api-docs', escapedCommand: 'node "/home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs" ir "/home/runner/work/fern/fern/packages/cli/ete-tests/src/tests/dependencies/fixtures/file-dependencies/ir.json" --api api-docs', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: 'Generating IR for workspace api-docs\n[api-docs]: api.yml -> /error-discrimination\n must have required property \'property-name\'\n[api-docs]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api-docs]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api-docs]: api.yml -> /error-discrimination\n must match exactly one schema in oneOf', stderr: '', failed: true, timedOut: false, isCanceled: false, killed: false }
src/tests/docs-dev/docsDev.test.ts > fern docs dev > dev basic docs: packages/cli/ete-tests/src/tests/docs-dev/docsDev.test.ts#L10
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs check strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "
src/tests/fdr/fdr.test.ts > fdr > {"name":"simple"}: packages/cli/ete-tests/src/tests/fdr/generateFdrApiDefinitionAsString.ts#L39
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs fdr /home/runner/work/fern/fern/packages/cli/ete-tests/src/tests/fdr/fixtures/simple/fdr.json strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenc
src/tests/fdr/fdr.test.ts > fdr > {"name":"changelog"}: packages/cli/ete-tests/src/tests/fdr/generateFdrApiDefinitionAsString.ts#L39
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs fdr /home/runner/work/fern/fern/packages/cli/ete-tests/src/tests/fdr/fixtures/changelog/fdr.json strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeRefer
src/tests/generate/fernignore.test.ts > fern generate --local > Keep files listed in .fernignore from unmodified: packages/cli/ete-tests/src/tests/generate/fernignore.test.ts#L27
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) [api]: api.yml -> /error-discrimination must have required property 'property-name' [api]: api.yml -> /error-discrimination/strategy must be equal to constant [api]: api.yml -> /error-discrimination/strategy must be equal to constant [api]: api.yml -> /error-discrimination must match exactly one schema in oneOf [api]: imdb.yml -> /types/MovieId must be string [api]: imdb.yml -> /types/MovieId must have required property 'enum' [api]: imdb.yml -> /types/MovieId must have required property 'union' [api]: imdb.yml -> /types/MovieId must have required property 'discriminated' [api]: imdb.yml -> /types/MovieId must have required property 'union' [api]: imdb.yml -> /types/MovieId must match exactly one schema in oneOf ❯ makeError ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11 ❯ handlePromise ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26 ❯ src/tests/generate/fernignore.test.ts:27:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker', command: 'node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker', escapedCommand: 'node "/home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs" generate --local --keepDocker', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '[api]: api.yml -> /error-discrimination\n must have required property \'property-name\'\n[api]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api]: api.yml -> /error-discrimination\n must match exactly one schema in oneOf\n[api]: imdb.yml -> /types/MovieId\n must be string\n[api]: imdb.yml -> /types/MovieId\n must have required property \'enum\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'union\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'discriminated\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'union\'\n[a
src/tests/generate/generate-with-settings.test.ts > fern generate with settings > dependencies-based api: packages/cli/ete-tests/src/tests/generate/generate-with-settings.test.ts#L37
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker --api unioned [unioned]: api.yml -> /error-discrimination must have required property 'property-name' [unioned]: api.yml -> /error-discrimination/strategy must be equal to constant [unioned]: api.yml -> /error-discrimination/strategy must be equal to constant [unioned]: api.yml -> /error-discrimination must match exactly one schema in oneOf ╭────────────────────────────────────────────────────────────╮ │ │ │ Upgrades available │ │ │ │ │ │ Pydantic Model (Group: python-sdk) 1.0.0-rc0 → 1.4.6 │ │ │ │ Run fern generator upgrade to upgrade your generators. │ │ │ ╰────────────────────────────────────────────────────────────╯ ❯ makeError ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11 ❯ handlePromise ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26 ❯ src/tests/generate/generate-with-settings.test.ts:37:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker --api unioned', command: 'node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker --api unioned', escapedCommand: 'node "/home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs" generate --local --keepDocker --api unioned', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '[unioned]: api.yml -> /error-discrimination\n must have required property \'property-name\'\n[unioned]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[unioned]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[unioned]: api.yml -> /error-discrimination\n must match exactly one schema in oneOf\n ╭────────────────────────────────────────────────────────────╮\n │ │\n │ Upgrades available │\n │ │\n │ │\n │ Pydantic Model (Group: python-sdk) 1.0.0-rc0 → 1.4.6 │\n │ │\n │ Run fern generator upgrade to upgrade your generators. │\n │ │\n ╰────────────────────────────────────────────────────────────╯\n', stderr: '', failed: true, timedOut: false, isCanceled: false, killed: false }
src/tests/generate/generate.test.ts > fern generate > default api (fern init): packages/cli/ete-tests/src/tests/generate/generate.test.ts#L15
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) [api]: api.yml -> /error-discrimination must have required property 'property-name' [api]: api.yml -> /error-discrimination/strategy must be equal to constant [api]: api.yml -> /error-discrimination/strategy must be equal to constant [api]: api.yml -> /error-discrimination must match exactly one schema in oneOf [api]: imdb.yml -> /types/MovieId must be string [api]: imdb.yml -> /types/MovieId must have required property 'enum' [api]: imdb.yml -> /types/MovieId must have required property 'union' [api]: imdb.yml -> /types/MovieId must have required property 'discriminated' [api]: imdb.yml -> /types/MovieId must have required property 'union' [api]: imdb.yml -> /types/MovieId must match exactly one schema in oneOf ❯ makeError ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11 ❯ handlePromise ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26 ❯ src/tests/generate/generate.test.ts:15:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker', command: 'node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs generate --local --keepDocker', escapedCommand: 'node "/home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs" generate --local --keepDocker', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '[api]: api.yml -> /error-discrimination\n must have required property \'property-name\'\n[api]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api]: api.yml -> /error-discrimination\n must match exactly one schema in oneOf\n[api]: imdb.yml -> /types/MovieId\n must be string\n[api]: imdb.yml -> /types/MovieId\n must have required property \'enum\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'union\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'discriminated\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'union\'\n[api
src/tests/generate/generate.test.ts > fern generate > ir contains fdr definitionid: packages/cli/ete-tests/src/tests/generate/generate.test.ts#L33
Error: Failed to get path to IR: DEBUG 2024-10-20T23:58:55.001Z Running fern-dev (@fern-api/fern-api-dev@0.0.0) ERROR 2024-10-20T23:58:56.362Z [api]: api.yml -> /error-discrimination must have required property 'property-name' ERROR 2024-10-20T23:58:56.362Z [api]: api.yml -> /error-discrimination/strategy must be equal to constant ERROR 2024-10-20T23:58:56.362Z [api]: api.yml -> /error-discrimination/strategy must be equal to constant ERROR 2024-10-20T23:58:56.363Z [api]: api.yml -> /error-discrimination must match exactly one schema in oneOf ERROR 2024-10-20T23:58:56.363Z [api]: imdb.yml -> /types/MovieId must be string ERROR 2024-10-20T23:58:56.363Z [api]: imdb.yml -> /types/MovieId must have required property 'enum' ERROR 2024-10-20T23:58:56.363Z [api]: imdb.yml -> /types/MovieId must have required property 'union' ERROR 2024-10-20T23:58:56.363Z [api]: imdb.yml -> /types/MovieId must have required property 'discriminated' ERROR 2024-10-20T23:58:56.363Z [api]: imdb.yml -> /types/MovieId must have required property 'union' ERROR 2024-10-20T23:58:56.363Z [api]: imdb.yml -> /types/MovieId must match exactly one schema in oneOf DEBUG 2024-10-20T23:58:56.365Z Checking if @fern-api/fern-api-dev upgrade is available... DEBUG 2024-10-20T23:58:56.365Z Latest version: 0.0.0. No upgrade available. DEBUG 2024-10-20T23:58:56.376Z [api]: Getting latest version for fernapi/fern-typescript-node-sdk with CLI version 0.0.0, includeMajor: undefined, prior version: 0.39.3 ❯ src/tests/generate/generate.test.ts:33:19
src/tests/init/init.test.ts > fern init > no existing fern directory: packages/cli/ete-tests/src/tests/init/init.test.ts#L18
Error: Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs check strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeValueSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleTypeReferenceSchema" (strictTypes) strict mode: use allowUnionTypes to allow union type keyword at "#/definitions/examples.ExampleWebSocketMessage/properties/body" (strictTypes) [api]: api.yml -> /error-discrimination must have required property 'property-name' [api]: api.yml -> /error-discrimination/strategy must be equal to constant [api]: api.yml -> /error-discrimination/strategy must be equal to constant [api]: api.yml -> /error-discrimination must match exactly one schema in oneOf [api]: imdb.yml -> /types/MovieId must be string [api]: imdb.yml -> /types/MovieId must have required property 'enum' [api]: imdb.yml -> /types/MovieId must have required property 'union' [api]: imdb.yml -> /types/MovieId must have required property 'discriminated' [api]: imdb.yml -> /types/MovieId must have required property 'union' [api]: imdb.yml -> /types/MovieId must match exactly one schema in oneOf ❯ makeError ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11 ❯ handlePromise ../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:118:26 ❯ src/tests/init/init.test.ts:18:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs check', command: 'node /home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs check', escapedCommand: 'node "/home/runner/work/fern/fern/packages/cli/cli/dist/dev/cli.cjs" check', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '[api]: api.yml -> /error-discrimination\n must have required property \'property-name\'\n[api]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api]: api.yml -> /error-discrimination/strategy\n must be equal to constant\n[api]: api.yml -> /error-discrimination\n must match exactly one schema in oneOf\n[api]: imdb.yml -> /types/MovieId\n must be string\n[api]: imdb.yml -> /types/MovieId\n must have required property \'enum\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'union\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'discriminated\'\n[api]: imdb.yml -> /types/MovieId\n must have required property \'union\'\n[api]: imdb.yml -> /types/MovieId\n must match exactly one schema in oneOf', stderr: 'strict mode: use
ts-generator-changes
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
ts-generator-changes
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, dorny/paths-filter@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ts-generator-changes
The process '/usr/bin/git' failed with exit code 128
lint
The process '/usr/bin/git' failed with exit code 128
eslint
The process '/usr/bin/git' failed with exit code 128
eslint: packages/cli/configuration/src/generators-yml/schemas/core/schemas/Schema.ts#L5
Unexpected any. Specify a different type
eslint: packages/cli/configuration/src/generators-yml/schemas/core/schemas/Schema.ts#L6
Unexpected any. Specify a different type
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