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
As per issue title, I'm trying to export a C# class method using TypeExporter.ExportType, but the method is not exported due to the following check, which explicitly disallows JSValue argument types and causes the method to be skipped:
call JSON.parse again to return the result to nodeJS.
(I know, the JSON round-trip could be removed in the future by creating a DTO type, but the JSON data currently has a dynamic structure and needs some work)
Changing the signature to a string and using JSON.stringify in NodeJs is a workaround to make the method appear, but I'd like to pass a JSON object directly.
The text was updated successfully, but these errors were encountered:
As per issue title, I'm trying to export a C# class method using
TypeExporter.ExportType
, but the method is not exported due to the following check, which explicitly disallowsJSValue
argument types and causes the method to be skipped:node-api-dotnet/src/NodeApi.DotNetHost/TypeExporter.cs
Lines 1026 to 1028 in a150c53
The method has the following signature:
The purpose of the C# function is:
JSON.stringify
System.Text.Json
System.Text.Json
JSON.parse
again to return the result to nodeJS.(I know, the JSON round-trip could be removed in the future by creating a DTO type, but the JSON data currently has a dynamic structure and needs some work)
Changing the signature to a string and using
JSON.stringify
in NodeJs is a workaround to make the method appear, but I'd like to pass a JSON object directly.The text was updated successfully, but these errors were encountered: