#2746 feat: Add an extensible API for stream schema sources
Issue created by
edgarrmondragon
Feature scope
Taps (catalog, state, tests, etc.)
Description
With
#2743 and eventual removal of support for schema file paths in constructors, we'll be on the path to support a better public API for arbitrary schema sources that prevents users from reinventing the wheel.
An example of how this might look:
openapi_schema = OpenAPISchema("https://.../openapi.json") # might also accept a 'Traversable' importlib.resources object
class ProjectsStream(RESTStream):
name = "projects"
path = "/projects"
schema_source = openapi_schema("ProjectListItem") # a JSON Schema ref
Related:
•
#308
•
#2190
meltano/sdk