Allow missing security schemes
VE
3mo ago+35+35+01234567890123456789-19-19-01234567890123456789
Fixes #737
A missing components.securitySchemes is valid OpenAPI, and as such should be accepted for diffing, rather than throwing an exception as it's currently doing.
Summary by cubic
Allow diffing OpenAPI documents that omit components.securitySchemes, treating them as valid and unchanged instead of throwing errors. Fixes #737.
- Bug Fixes
- Added null-safe handling for missing
components.securitySchemesin security diff logic; treat absence as a no-op. - Updated tests to assert unchanged for specs without security schemes; still throw when a security requirement references a non-existent scheme.
- Added null-safe handling for missing