question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenAPI "data and type mismatch found"

See original GitHub issue

I’m trying to read this schema: https://developer.experian.com/system/files/2020-12/credit-profile-product-apis-v-openapi3.2.0.45.yaml

I’m getting a lot of “Data and type mismatch found” errors. And indeed, it seems that the types vary: permissiblePurpose/type seems to be sometimes 08 and sometimes ‘08’ and sometimes just ‘’.

Is the schema totally un-usable wtih OpenApiProvider, or is it still possible to use it by forcing the types manually (with some static parameter maybe?), so that the type is “either string or int” or “force to string”?

FSharp.Data is usually creating IntOrString and then I have to manually deal with both cases, but at least the type-provider is still usable.

I don’t care the solution details, I do care a workaround to get this ~10k lines of type-definitions into use easily.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Thoriumcommented, May 17, 2021

They were fast, they fixed that, and the fix is already merged to their “vnext” branch.

Edit: the fix was just to comment that rule out.

0reactions
sergey-tihoncommented, Jun 12, 2021

I’ve updated all dependencies and released v1.0.0-beta4 with Microsoft.OpenApi.Readers v1.3.0-preview

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenAPI "data and type mismatch found" · Issue #587
I'm getting a lot of "Data and type mismatch found" errors. And indeed, it seems that the types vary: permissiblePurpose/type seems to be ......
Read more >
Scala Swagger ArraySchema Type mismatch error
I wanna create ArraySchema for UserIds parameter but throws error about Type mismatch. Required: Schema, found: ArraySchema. how can I solve ...
Read more >
Custom Connector Type Mismatch error - how to allo...
My custom connector returns a type mismatch error. The API's response sometimes contain an array (for more than 1 record) or an object...
Read more >
Mismatch between the REST API Swagger and Manual ...
I am having a hard time correlating which documentation is correct and which one should be followed. For example when creating an encounter ......
Read more >
How to handle the type mismatch during model binding in ...
What I have tried: Above are my C# class and JSON request model data for API. this JSON data throwing validation error for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found