Closed Mudrekh closed 2 years ago
@patrickmichalina I avoided committing the generated files in docs/api to avoid bloat in this PR. It was something like 700+ file changes...
This is great thanks!
:tada: This PR is included in version 9.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This is a follow up PR to this #45 .
It tries to address a few issues in generating soap/xml when sending requests to devices by using the same library that parses xml to parse the json from function calls. The revised function fixes two issues:
Object.keys
on the undefined properties. Now, it avoid empty nodes in the request like<tt:ProfileToken/>
.<trt:Configuration token="0">
. Attributes are specified just like they are parsed; in a_attributes
property. This is important for some functions like Media.SetVideoEndocoderConfiguration which expect the 'token' to be passed as an attribute.Additionally, it fixes some issues with type definitions by parsing types from the WSDLs. Some of the types used by ONVIF are only defined in the WSDL under schemas and not in the XSDs.