mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Json Parse Exception error #336
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ShaunJahn on GitHub (Feb 17, 2021).
On loading an OpenApiFile with
WithMappingFromOpenApiFileim getting an exception:Newtonsoft.Json.JsonReaderException: 'Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 1963.'I think this might be due to
MapOpenApiAnyToJTokenusingJObject.Parseinstead ofJToken.ParseCould this be the case? Then open API document is valid and from swagger
@StefH commented on GitHub (Feb 17, 2021):
Can you please provide the document?
@ShaunJahn commented on GitHub (Feb 17, 2021):
My apologies, my swagger document was not correct as it was bringing nulls where it needed strings.