#2876 feat: Added an extensible API for stream schema sources
Pull request opened by
edgarrmondragon on <!date^1738954612^{date_short}|2025-02-07T18:56:52Z>
## Summary by Sourcery
Introduce an extensible schema source API with local and OpenAPI backends and update the sample GitLab tap to use this unified mechanism for loading stream schemas.
New Features:
• Add BaseSchemaSource as an abstract API for fetching JSON schemas by reference
• Implement LocalSchemaSource for loading named schemas from local files
• Implement OpenAPISchemaSource for resolving and caching schemas from OpenAPI specs
Enhancements:
• Refactor the GitLab tap to replace static schema_filepath attributes with dynamic schema retrieval via LocalSchemaSource
Tests:
• Add unit tests for LocalSchemaSource and OpenAPISchemaSource behavior
• Relocate and preserve existing Schema.from_dict tests to validate schema dict round-trip
---
📚 Documentation preview 📚:
https://meltano-sdk--2876.org.readthedocs.build/en/2876/
meltano/sdk