# Recommend OAS2 fix: "minLength" not "minimum" for strings

**URL:** <https://devforum.zoom.us/t/recommend-oas2-fix-minlength-not-minimum-for-strings/16687>\
**Category:** API and Webhooks\
**Created:** [May 8, 2020, 12:37am UTC](https://devforum.zoom.us/t/recommend-oas2-fix-minlength-not-minimum-for-strings/16687 "2020-05-08T00:37:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emsearcy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emsearcy/32/5571_2.png) [@emsearcy](https://devforum.zoom.us/u/emsearcy)\
**Post date:** [May 8, 2020, 12:37am UTC](https://devforum.zoom.us/t/recommend-oas2-fix-minlength-not-minimum-for-strings/16687/1 "2020-05-08T00:37:21Z")

</div>

In [https://marketplace.zoom.us/docs/api-reference/zoom-api/Zoom%20API.oas2.json](https://marketplace.zoom.us/docs/api-reference/zoom-api/Zoom%20API.oas2.json) …

There are several instances of the “password” attribute (User’s password, Meeting password, etc). Each time, they have a property “minimum” which is set to 8. “minimum” in OAS2 is for numeric fields! This appears to be a mistake in the spec, and it should be “minLength”.

OAS2 defers to JSON Schema for the interpretation of these keywords, which identifies “minimum” under “Validation keywords for numeric instances (number and integer)” and not under validationo keywords for strings.

Thanks for considering this fix. (currently breaks some OAS2 code gen systems)

[https://tools.ietf.org/html/draft-fge-json-schema-validation-00](https://tools.ietf.org/html/draft-fge-json-schema-validation-00)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 12, 2020, 9:12pm UTC](https://devforum.zoom.us/t/recommend-oas2-fix-minlength-not-minimum-for-strings/16687/2 "2020-05-12T21:12:59Z")

</div>

Thanks for sharing this @emsearcy!

We will work on getting this fixed! 🙂

CC @shrijana.g

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 18, 2020, 6:24pm UTC](https://devforum.zoom.us/t/recommend-oas2-fix-minlength-not-minimum-for-strings/16687/3 "2020-05-18T18:24:41Z")

</div>

Hey @emsearcy,

This issue is now fixed. Please try again.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:39pm UTC](https://devforum.zoom.us/t/recommend-oas2-fix-minlength-not-minimum-for-strings/16687/4 "2020-08-21T21:39:56Z")

</div>

Closed on August 21, 2020, 9:39pm UTC


