#3238 feat: Auto-detect and load YAML-formatted OpenAPI specs
Pull request opened by
edgarrmondragon
## Summary by Sourcery
Enable automatic detection and loading of YAML-formatted OpenAPI specifications alongside JSON by extension, centralize parsing logic, and extend test coverage.
New Features:
• Support loading OpenAPI specs in YAML format (.yaml and .yml) from both remote URLs and local files.
Enhancements:
• Unify remote and local spec loading in _load_spec using a mapping of file extensions to parsing functions and raise UnsupportedOpenAPISpec for unknown types.
Tests:
• Parametrize and extend tests to cover JSON and YAML spec loading for both URLs and files, and verify error handling for unsupported file extensions.
Chores:
• Update pyproject.toml mypy ignores to include toolz.*
meltano/sdk