[REQUIRED] Environment info
firebase-tools: 15.22.0
Platform: MacOS
[REQUIRED] Test case
Running firebase dataconnect:sdk:generate:
E0619 13:58:16.673363 25012 generate_cmd.go:51] Failed to generate SDKs:
could not load config from "/Users/sven/dev/project/core/src/database": unsupported field schemas in dataconnect.yaml at `/Users/sven/dev/project/core/src/database/dataconnect.yaml`
Here is my dataconnect.yaml file:
specVersion: "v1"
serviceId: "redacted-service"
location: "us-central1"
schemas:
- source: "./schema"
datasource:
postgresql:
database: "redacted-database"
cloudSql:
instanceId: "redacted-instance"
schemaValidation: "STRICT"
connectorDirs: ["./app", "./backend"]
There seems to be a dataconnect yaml schema breaking change but the emulator semver versioning did not catch it.
Whereas running DATACONNECT_EMULATOR_VERSION=3.4.11 firebase dataconnect:sdk:generate works as intended.
Note that production connectors generated with DATACONNECT_EMULATOR_VERSION=3.4.11 ... do not work as intended on my production app: the refresh directives are ignored, so no more live data.
[REQUIRED] Steps to reproduce
Bootstrap a SQL connect local environment with a firebase-tools version prior to 15.22.0. Then update firebase-tools to 15.22.0 and try to generate its SDKs.
[REQUIRED] Expected behavior
Works with the latest emulator version.
[REQUIRED] Actual behavior
Breaks on SDK generation with the latest emulator version.
[REQUIRED] Environment info
firebase-tools: 15.22.0
Platform: MacOS
[REQUIRED] Test case
Running
firebase dataconnect:sdk:generate:Here is my dataconnect.yaml file:
There seems to be a dataconnect yaml schema breaking change but the emulator semver versioning did not catch it.
Whereas running
DATACONNECT_EMULATOR_VERSION=3.4.11 firebase dataconnect:sdk:generateworks as intended.Note that production connectors generated with
DATACONNECT_EMULATOR_VERSION=3.4.11 ...do not work as intended on my production app: the refresh directives are ignored, so no more live data.[REQUIRED] Steps to reproduce
Bootstrap a SQL connect local environment with a firebase-tools version prior to 15.22.0. Then update firebase-tools to 15.22.0 and try to generate its SDKs.
[REQUIRED] Expected behavior
Works with the latest emulator version.
[REQUIRED] Actual behavior
Breaks on SDK generation with the latest emulator version.