feat(datasource): expose driver catalog with config JSON Schema#2083
Merged
Conversation
Add GET /api/v1/datasources/drivers — a curated catalog of connection drivers
(memory / sqlite / postgres / mysql / mongo), each with a JSON-Schema
`configSchema` describing its connection options. This is the
DriverDefinitionSchema.configSchema contract ('Used by the UI to generate the
connection form'), which shipped empty for every driver.
The Studio datasource editor can now fetch this to render a typed connection
form instead of a raw-JSON editor. Static metadata, served without a
datasource-admin service dependency (always available); a future runtime driver
registry can supersede the catalog without changing the route contract.
Test: GET /drivers returns the catalog with sqlite's filename config schema.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 5 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
This was referenced Jun 21, 2026
Closed
xuyushun441-sys
added a commit
that referenced
this pull request
Jun 21, 2026
…tion (#2112) The README mentioned "REST routes under /api/v1/datasources" but didn't enumerate them, and predated the Studio integration. Add: - a REST routes section (lifecycle + drivers catalog + by-name test + GET :name detail + introspection/sync routes), with the credential-split note; - a Studio integration section: datasource is managed through the metadata-admin engine (Setup → Integrations → Datasources), runtime records persist to sys_metadata and rehydrate on restart. Reflects #2083 (drivers), #2085 (remote-tables/object-draft/by-name test), #2086 (GET :name), #2091 (Setup nav), #2096 (persistence). Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DriverDefinitionSchema.configSchema("Used by the UI to generate the connection form") shipped empty for every driver, so the Studio datasource editor could only offer a raw-JSON editor forconfig. This addsGET /api/v1/datasources/drivers— a curated catalog of connection drivers (memory / sqlite / postgres / mysql / mongo), each with a JSON-SchemaconfigSchemadescribing its connection options.driver-catalog.tswithDRIVER_CATALOG(JSON-SchemaconfigSchemaper driver, e.g. sqlite →{ filename }, postgres → host/port/database/user/password/ssl/schema).GET /datasources/driversroute inservice-datasourceadmin routes — static metadata, nodatasource-adminservice dependency (always available).This unblocks the objectui Studio datasource connection form (a follow-up consumer PR). A future runtime driver registry can supersede the curated catalog without changing the route contract.
Verification
service-datasourcetests pass (6/6 in admin-routes), including a new case assertingGET /driversreturns the catalog with sqlite'sfilenameconfig schema.🤖 Generated with Claude Code