fern icon indicating copy to clipboard operation
fern copied to clipboard

fix(cli): add security scheme case regression

Open shubhamsinnh opened this issue 6 months ago • 0 comments

Summary

Adds regression coverage for OpenAPI HTTP security scheme parsing so capitalized or mixed-case scheme values continue to convert correctly.

Closes #6033.

Details

  • Covers scheme: Bearer converting to bearer auth.
  • Covers mixed-case scheme: BaSiC converting to basic auth.
  • Keeps the change scoped to the existing convertSecurityScheme unit test because the converter already normalizes scheme with toLowerCase().

Testing

  • ..\..\..\..\..\node_modules\.bin\vitest.cmd --run src\__test__\convertSecurityScheme.test.ts from packages/cli/api-importers/openapi/openapi-ir-parser
  • Result: 1 test file passed, 4 tests passed.

shubhamsinnh avatar May 24 '26 05:05 shubhamsinnh