Skip to content

fix(scalar): bump scalar to 1.44.27#290

Open
fa-sharp wants to merge 1 commit intotamasfe:mainfrom
fa-sharp:update-scalar-1.44
Open

fix(scalar): bump scalar to 1.44.27#290
fa-sharp wants to merge 1 commit intotamasfe:mainfrom
fa-sharp:update-scalar-1.44

Conversation

@fa-sharp
Copy link

fixes #257

This PR updates Scalar to the latest version as of today, 1.44.27. This should fix the type issues people were seeing. The latest Scalar dist was downloaded from https://www.jsdelivr.com/package/npm/@scalar/api-reference.

In the Scalar config, I moved the url property to top-level to match the latest schema. I also disabled the new AI feature by default.

An alternative solution would be to load the latest version of Scalar dynamically (something like this) so updates are no longer needed. Happy to update PR if you want go in that direction.

Screenshots

Tested with the Axum example:

Before: TodoItem is labeled AppError
wrong-type

After: TodoItem labeled correctly
correct-type

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Scalar incorrectly renders types for fields.

1 participant