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

Report on MOBILE_API.xml issues(missing parameter minimum value) #258

Open
Yuki-Shoda-Nexty opened this issue Jun 16, 2020 · 0 comments
Open

Comments

@Yuki-Shoda-Nexty
Copy link

We propose correcting MOBILE_API.xml(missing parameter minimum valu)

In current MOBILE_API.xml, some RPCs has string type parameters that are not indicated about minimum length.
In case length is 0, "Error: Invalid Data" occur, therefore it is necessary to add minlength.
The target items are described in below Excel file.

MOBILE_API_missing parameter minimum value.xlsx

e.g. In MOBILE_API.xml, some of string type parameters in RPCs are not indicated about minimum length. Add minlength attribute in each element as follows.

Add minlength to the param name: menuName, socondaryText, and tertiatyText in RPC name: Choice as below.

 <struct name="Choice" since="1.0">
     ...
-    <param name="menuName" type="String" maxlength="500"  mandatory="true"/>
+    <param name="menuName" type="String" minlength="1" maxlength="500"  mandatory="true"/>

-    <param name="vrCommands" type="String" minsize="1" maxsize="100" maxlength="99" array="true" mandatory="false" since="5.0">
+    <param name="vrCommands" type="String" minsize="1" maxsize="100" minlength="1" maxlength="99" array="true" mandatory="false" since="5.0">
     ...
     </param>
     ...
-    <param name="secondaryText" maxlength="500" type="String" mandatory="false" since="3.0">
+    <param name="secondaryText" minlength="1" maxlength="500" type="String" mandatory="false" since="3.0">
         <description>Optional secondary text to display; e.g. address of POI in a search result entry</description>
     </param>

-    <param name="tertiaryText" maxlength="500" type="String" mandatory="false" since="3.0">
+    <param name="tertiaryText" minlength="1" maxlength="500" type="String" mandatory="false" since="3.0">
         <description>Optional tertiary text to display; e.g. distance to POI for a search result entry</description>
     </param>
     ...
 </struct>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant