Skip to content

Dataconnect emulator v3.4.12 is actually a breaking change, cannot compile SDKs #10688

@dherault

Description

@dherault

[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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions