Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fern linter should treat scheme in securityScheme Object as case-insensitive #6033

Open
mikekistler opened this issue Feb 18, 2025 · 0 comments

Comments

@mikekistler
Copy link

Which Fern component?

Fern CLI

How urgent is this?

P3 - Low (Nice to have)

What's the issue?

  1. Steps to reproduce
  • Initialize a fern project with an OpenAPI file that has a security scheme with type: http, scheme: Bearer. Make sure to capitalize the "B" in "Bearer".
  • Run fern check
  1. Expected behavior
  • No errors reported, because the value of the scheme field is case-insensitive. This is per RFC 7235 Section 2.1 and was clarified in the recent 3.0.4 and 3.1.1 point releases of the spec [ref].
  1. Actual behavior
  • fern check issues this message:
[api]: Failed to convert security scheme {"type":"http","scheme":"Bearer"}

but if the value of scheme is changed to "bearer", fern check completes with no errors
4. Environment

  • Docker container: mcr.microsoft.com/devcontainers/dotnet:1-8.0 inside VSCode

Workaround

Use scheme: bearer with lowercase "b".

Logs & Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant