You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The type provider 'SwaggerProvider.OpenApiClientTypeProvider' reported an error: Schema parse errors: Invalid Reference identifier 'JWT' #263
The type provider 'SwaggerProvider.OpenApiClientTypeProvider' reported an error: Schema parse errors:
Invalid Reference identifier 'JWT'. @F# Compiler[3033](https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/compiler-messages/fs3033)
type OpenApiClientProvider
An error occurred when parsing the doc comment, please check that your doc comment is valid.
More info can be found in the LSP output
[Open the documentation](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)
I would expect this to come from the external library (Microsoft.OpenApi) schema parsing.
There is now PR to update that library, but if it won't work after that, then it's probably an issue for them (or for the schema owner).
It seems schemas are "best effort" of creator and rarely without mistakes.
On schema errors I recommend:
save the schema to your file system and fix the issue locally.
report the issue or send PR to schema owner.
It's a good practice to use local file anyway, because the schema owner may just take their schema file off from the internet, e.g. if they fear misuse or hacking.
The root cause (invalid JWT security scheme reference in the schema itself) was correctly identified by @sergey-tihon and @Thorium above.
As an additional workaround for cases where fixing the upstream schema isn't practical: since v2.3.0 the provider supports an IgnoreParseErrors=true static parameter that lets you continue past validation errors:
Errors are printed to stderr so you can still see what was ignored. You can also inspect them at runtime via the new SchemaReaderErrors property (coming in the next release — see PR in progress).
The best long-term fix remains reporting the schema error to the Plisio team, but IgnoreParseErrors=true gets you unblocked immediately.
Activity
Thorium commentedon May 10, 2025
I would expect this to come from the external library (Microsoft.OpenApi) schema parsing.
There is now PR to update that library, but if it won't work after that, then it's probably an issue for them (or for the schema owner).
hotyes commentedon May 11, 2025
hmm, updated to the latest version (v2.3.0) doesn't work, anyway thanks
sergey-tihon commentedon May 11, 2025
i also believe that it is the schema issue
schema defines 2 security schemas
but
"/payment-button/new/{hash}"uses undefinedJWTschemamore here https://swagger.io/docs/specification/v3_0/authentication/
Thorium commentedon May 11, 2025
It seems schemas are "best effort" of creator and rarely without mistakes.
On schema errors I recommend:
It's a good practice to use local file anyway, because the schema owner may just take their schema file off from the internet, e.g. if they fear misuse or hacking.
hotyes commentedon May 12, 2025
greats idea, thank you guys!
github-actions commentedon Mar 17, 2026
🤖 This is an automated response from Repo Assist.
The root cause (invalid
JWTsecurity scheme reference in the schema itself) was correctly identified by@sergey-tihonand@Thoriumabove.As an additional workaround for cases where fixing the upstream schema isn't practical: since v2.3.0 the provider supports an
IgnoreParseErrors=truestatic parameter that lets you continue past validation errors:Errors are printed to stderr so you can still see what was ignored. You can also inspect them at runtime via the new
SchemaReaderErrorsproperty (coming in the next release — see PR in progress).The best long-term fix remains reporting the schema error to the Plisio team, but
IgnoreParseErrors=truegets you unblocked immediately.