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
Display Global Headers & Parameters #1443
Comments
@marclave @hanspagel I can pick this up. Could someone help me figure out where to check to start working on this? |
That’s so kind! Actually, this is part is a little complex (or maybe I should even say messy). If you want to give it a try, that’s where I’d start: We need the Unfortunately, we don’t have the And once it’s in there, you can add the mentioned logic to Unfortunately, we’ll probably need to pass the headers to the API client too and it’s not using the same logic: When I look at the code, I see a lot of potential for refactoring. I’m so sorry for making it so hard. If you’re stuck, just ping me again, and I’ll give it a try asap. It’d be a great opportunity for some refactoring anyway. :) |
@hanspagel This is not supported on Swagger, should we do this on the scalar? Since it's not the behaviour of Swagger, people might want to opt out of this. We need to think about that too. |
It’s in the OpenAPI specification, so we definitely want to support this. :) And if someone asks for it, we’ll add a setting for sure, but we can do this quickly once it’s needed I’d say. |
What happens?
Global headers & parameters under components aren't displayed
What did you expect to happen?
OpenAPI spec supports global headers & parameters under components. It should be displayed alongside the operation
How can we reproduce the issue?
Current Doc - https://sandbox.scalar.com/e/b59fw
Expected Doc - https://sandbox.scalar.com/e/6sWkt
Swagger/OpenAPI Example
No response
The text was updated successfully, but these errors were encountered: