Schema for WPML
CompletedHave you or will you be publishing the formal schema for WPML? I would like to validate generated outputs, but http://www.dji.com/wpmz/1.0.2 yields a 404.
There seems to be some ambiguity in the spec as published ( https://github.com/dji-sdk/Cloud-API-Doc/blob/master/docs/en/40.specification/80.dji-wpml/30.waylines-wpml.md ). In the documentation for the 'actionActuatorFuncParam' used with action 'takePhoto', "wpml::payloadLensIndex" and "wpml:useGlobalPayloadLensIndex" are both listed as "Required" - but neither is present in the sample wpml from the documentation (excerpt follows):
<wpml:action>
<wpml:actionId>1</wpml:actionId>
<wpml:actionActuatorFunc>takePhoto</wpml:actionActuatorFunc>
<wpml:actionActuatorFuncParam>
<wpml:fileSuffix>point1</wpml:fileSuffix>
<wpml:payloadPositionIndex>0</wpml:payloadPositionIndex>
</wpml:actionActuatorFuncParam>
</wpml:action>
Am I misunderstanding the meaning of the "Required" field? Ideally a formal specification would clarify this while also allowing a formal validation of serialised outputs.
-
Please use this link: https://developer.dji.com/doc/cloud-api-tutorial/en/specification/dji-wpml/overview.html -
Yes, that is what I have been using (oh, in addition to the code on github). It is from the example WPML there that I posted this excerpt:
<wpml:actionId>1</wpml:actionId> <wpml:actionActuatorFunc>takePhoto</wpml:actionActuatorFunc> <wpml:actionActuatorFuncParam> <wpml:fileSuffix>point1</wpml:fileSuffix> <wpml:payloadPositionIndex>0</wpml:payloadPositionIndex> </wpml:actionActuatorFuncParam> </wpml:action>
Please sign in to leave a comment.
Comments
3 comments