Michael Eini
06/28/2023, 11:18 AMairbyte-webapp@0.50.5 generate-client /home/michael/airbyte-platform/airbyte-webapp
./scripts/load-declarative-schema.sh && orvalFound cached CDK manifest schema 0.43.0 🍻 Start orval v6.15.0 - A swagger client generator for typescript Running afterAllFilesWrite hook... Make options parameter mandatory in AirbyteClient.ts... Write type re-export file for AirbyteClient... 🎉 api - Your OpenAPI spec has been converted into ready to use orval! Running afterAllFilesWrite hook... Make options parameter mandatory in CloudApi.ts... Write type re-export file for CloudApi... 🎉 cloudApi - Your OpenAPI spec has been converted into ready to use orval! Running afterAllFilesWrite hook... Make options parameter mandatory in ConnectorBuilderClient.ts... Write type re-export file for ConnectorBuilderClient... 🎉 connectorBuilder - Your OpenAPI spec has been converted into ready to use orval! ⚠️ SyntaxError: Swagger schema validation failed. #/components/schemas/ConnectorManifest must be object #/components/schemas/ConnectorManifest must be object #/components/schemas/ConnectorManifest must match exactly one schema in oneOf 🛑 connectorManifest - TypeError: Cannot read properties of undefined (reading 'openapi')
kapa.ai
06/28/2023, 11:18 AMkapa.ai
06/28/2023, 11:18 AMCDK_MANIFEST_PATH or CDK_VERSION environment variables set to have the correct Typescript types built. If CDK_VERSION is set, it's loading the specified version of the CDK from pypi instead of the default one, if CDK_MANIFEST_PATH is set, it's copying the schema file locally. For example: bash CDK_MANIFEST_PATH=../../airbyte/airbyte-cdk/python/airbyte_cdk/sources/declarative/declarative_component_schema.yaml pnpm start This command will start the development server with the specified CDK manifest path. Make sure the path points to the correct schema file. If the issue persists, it might be a good idea to check the schema file for any inconsistencies or errors. The error message suggests that there might be an issue with the structure of the ConnectorManifest schema. Source: [Developing Locally](https://docs.airbyte.com/contributing-to-airbyte/developing-locally)Joe Reuter (Airbyte)
06/28/2023, 12:01 PMpnpm install )
• Delete the `build`directory in the webapp folder and try againMichael Eini
06/28/2023, 12:03 PMJoe Reuter (Airbyte)
06/28/2023, 12:06 PMJoe Reuter (Airbyte)
06/28/2023, 12:06 PMJoe Reuter (Airbyte)
06/28/2023, 12:07 PMMichael Eini
06/28/2023, 12:07 PMMichael Eini
06/28/2023, 12:08 PMairbyte-webapp@0.50.5 prestart /home/michael/airbyte-platform/airbyte-webapp
TS_NODE_TRANSPILE_ONLY=true pnpm run generate-client
airbyte-webapp@0.50.5 generate-client /home/michael/airbyte-platform/airbyte-webapp
./scripts/load-declarative-schema.sh && orvalCopying local CDK manifest version from ../../airbyte/airbyte-cdk/python/airbyte_cdk/sources/declarative/declarative_component_schema.yaml 🍻 Start orval v6.15.0 - A swagger client generator for typescript Running afterAllFilesWrite hook... Make options parameter mandatory in AirbyteClient.ts... Write type re-export file for AirbyteClient... 🎉 api - Your OpenAPI spec has been converted into ready to use orval! Running afterAllFilesWrite hook... Make options parameter mandatory in CloudApi.ts... Write type re-export file for CloudApi... 🎉 cloudApi - Your OpenAPI spec has been converted into ready to use orval! Running afterAllFilesWrite hook... Make options parameter mandatory in ConnectorBuilderClient.ts... Write type re-export file for ConnectorBuilderClient... 🎉 connectorBuilder - Your OpenAPI spec has been converted into ready to use orval! Running afterAllFilesWrite hook... Make options parameter mandatory in ConnectorManifest.ts... Write type re-export file for ConnectorManifest... 🎉 connectorManifest - Your OpenAPI spec has been converted into ready to use orval!
airbyte-webapp@0.50.5 start /home/michael/airbyte-platform/airbyte-webapp
vite🔨 Use build hash -dev- ✘ [ERROR] Unterminated string literal src/components/connectorBuilder/cdk.ts234: 2 │ export const CDK_VERSION = "0.43.0 ╵ ^ at failureErrorWithLog (/home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js163615) at /home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js104825 at runOnEndCallbacks (/home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js147145) at buildResponseToResult (/home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js10467) at /home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js10589 at new Promise (<anonymous>) at requestCallbacks.on-end (/home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js105754) at handleRequest (/home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js72319) at handleIncomingPacket (/home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js7457) at Socket.readFromStdout (/home/michael/airbyte-platform/airbyte-webapp/node_modules/.pnpm/esbuild@0.17.12/node_modules/esbuild/lib/main.js6737) [Stylelint] Found 0 error and 0 warning ERROR(TypeScript) Unterminated string literal. FILE /home/michael/airbyte-platform/airbyte-webapp/src/components/connectorBuilder/cdk.ts235 1 | // generated, do not change manually > 2 | export const CDK_VERSION = "0.43.0 | ^ 3 | "; 4 | ERROR(TypeScript) Unterminated string literal. FILE /home/michael/airbyte-platform/airbyte-webapp/src/components/connectorBuilder/cdk.ts33 1 | // generated, do not change manually 2 | export const CDK_VERSION = "0.43.0 > 3 | "; | ^ 4 | [TypeScript] Found 2 errors. Watching for file changes.
Michael Eini
06/28/2023, 12:08 PMJoe Reuter (Airbyte)
06/28/2023, 12:10 PMJoe Reuter (Airbyte)
06/28/2023, 12:10 PMJoe Reuter (Airbyte)
06/28/2023, 12:10 PMairbyte-connector-builder-resources/CDK_VERSION ?Joe Reuter (Airbyte)
06/28/2023, 12:12 PMMichael Eini
06/28/2023, 12:13 PMMichael Eini
06/28/2023, 12:15 PMJoe Reuter (Airbyte)
06/28/2023, 12:15 PMi did it but after i run the script , it back again to bewhat do you mean?
Michael Eini
06/28/2023, 12:26 PMMichael Eini
06/28/2023, 12:27 PMMichael Eini
06/28/2023, 12:27 PMJoe Reuter (Airbyte)
06/28/2023, 12:27 PMairbyte-connector-builder-resources/CDK_VERSION not cdk.tsMichael Eini
06/28/2023, 12:29 PM#! /bin/sh
# This script makes sure the json schema for the low code connector manifest is provided for orval to build the Typescript types
# used by the connector builder UI. It either downloads a released version from PyPI or copies it over from a specified file path.
set -e
mkdir -p build
DEFAULT_CDK_VERSION=`cat ../airbyte-connector-builder-resources/CDK_VERSION`
if [ -z "$CDK_VERSION" ]
then
CDK_VERSION=$DEFAULT_CDK_VERSION
fi
# Export as Typescript module so the version is available in the webapp during compile time and run time.
printf "// generated, do not change manually\nexport const CDK_VERSION = \"$CDK_VERSION\";\n" > src/components/connectorBuilder/cdk.ts
if [ -z "$CDK_MANIFEST_PATH" ]
then
TARGET_FILE="build/declarative_component_schema-${CDK_VERSION}.yaml"
if [ ! -f "$TARGET_FILE" ]; then
echo "Downloading CDK manifest schema $CDK_VERSION from pypi"
curl -L <https://pypi.python.org/packages/source/a/airbyte-cdk/airbyte-cdk-${CDK_VERSION}.tar.gz> | tar -xzO airbyte-cdk-${CDK_VERSION}/airbyte_cdk/sources/declarative/declarative_component_schema.yaml > ${TARGET_FILE}
else
echo "Found cached CDK manifest schema $CDK_VERSION"
fi
cp ${TARGET_FILE} build/declarative_component_schema.yaml
else
echo "Copying local CDK manifest version from $CDK_MANIFEST_PATH"
cp ${CDK_MANIFEST_PATH} build/declarative_component_schema.yaml
fiJoe Reuter (Airbyte)
06/28/2023, 12:30 PMJoe Reuter (Airbyte)
06/28/2023, 12:31 PMMichael Eini
06/28/2023, 12:36 PMMichael Eini
06/28/2023, 12:36 PMJoe Reuter (Airbyte)
06/28/2023, 12:36 PMJoe Reuter (Airbyte)
06/28/2023, 12:37 PMMichael Eini
06/28/2023, 12:40 PMMichael Eini
06/28/2023, 12:40 PMMichael Eini
06/28/2023, 12:43 PMMichael Eini
06/28/2023, 12:44 PMMichael Eini
06/28/2023, 12:44 PMMichael Eini
06/28/2023, 12:54 PMJoe Reuter (Airbyte)
06/28/2023, 12:58 PMMichael Eini
06/28/2023, 12:59 PMMichael Eini
06/28/2023, 12:59 PMMichael Eini
06/28/2023, 12:59 PMMichael Eini
06/28/2023, 12:59 PMJoe Reuter (Airbyte)
06/28/2023, 1:00 PMMichael Eini
06/28/2023, 1:00 PMMichael Eini
06/28/2023, 1:44 PMMichael Eini
06/28/2023, 1:44 PMMichael Eini
06/28/2023, 1:55 PMMichael Eini
06/28/2023, 1:55 PMMichael Eini
06/28/2023, 1:55 PMMichael Eini
06/28/2023, 2:11 PMMichael Eini
06/28/2023, 2:11 PMMichael Eini
06/28/2023, 2:12 PMMichael Eini
06/29/2023, 9:59 AM