Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the need for a XmlrpcStruct #29

Open
SchoolGuy opened this issue Feb 1, 2022 · 0 comments
Open

Remove the need for a XmlrpcStruct #29

SchoolGuy opened this issue Feb 1, 2022 · 0 comments
Labels
TS-XMLRPC Project typescript-xmlrpc

Comments

@SchoolGuy
Copy link
Member

This is currently looking like:

serializeMethodCall('function_name', [{'members': [{name: "data1", value: 0}, {name: 'data2', value: 0}]}])

my proposal to solve this issue is to allow objects of type map. However we need to ensure that the map is flat. It is allowed according to the XML-RPC Spec that you have a Map with different types. Thus something similar to the following should be possible:

const myMap = new Map<string, string|number|boolean|Date|ArrayBuffer>()
myMap.set("key", "value")
// More code...
serializeMethodCall('function_name', [myMap])
@SchoolGuy SchoolGuy added the TS-XMLRPC Project typescript-xmlrpc label Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TS-XMLRPC Project typescript-xmlrpc
Projects
Status: Incoming
Development

No branches or pull requests

1 participant