Skip to content

examples/flapi-test.yaml has two endpoints that reference a connection it deliberately excludes #167

Closed

Description

@jrosskopf

What

flapi -c examples/flapi-test.yaml --validate-config (run from examples/) exits 1 with two genuine errors:

✗ Endpoint: /sap/flights
  ERROR: Connection 'sap-abap-trial' not found in configuration
✗ Endpoint: flight_list
  ERROR: Connection 'sap-abap-trial' not found in configuration

flapi-test.yaml omits the SAP connection on purpose ("SAP ERPL and BigQuery excluded for test isolation"), but it still points template.path at ./sqls, which contains sap/flights-*.yaml. So those two endpoints are loaded against a connection that does not exist: they can only fail when called, and the validator is right to say so.

Found by

#156. Its issue text said flapi.yaml and flapi-test.yaml "fail the same way" (a prompt file validated as an endpoint). That was true of flapi.yaml, which #156's fix now makes pass. flapi-test.yaml was failing for this reason as well, hidden behind the first.

Suggested fix

Either keep the SAP endpoints out of the test config's template path, or give the config a stand-in connection so the endpoints are at least well-formed. Then add flapi-test.yaml to test_validate_config_prompts.py::TestShippedExamplesValidate so it cannot regress.

Activity

  1. added a commit that references this issue on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions