# (developers) overview of some easy new module development features

**URL:** <https://forum.ansible.com/t/developers-overview-of-some-easy-new-module-development-features/12427>\
**Category:** Ansible Project\
**Created:** [February 27, 2013, 2:18am UTC](https://forum.ansible.com/t/developers-overview-of-some-easy-new-module-development-features/12427 "2013-02-27T02:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 27, 2013, 2:18am UTC](https://forum.ansible.com/t/developers-overview-of-some-easy-new-module-development-features/12427/1 "2013-02-27T02:18:15Z")

</div>

You may notice a couple of things in module code now.

It was hard previously to embed examples in the DOCUMENTATION  
docstring (which is YAML formatted). Rather than trying to do the  
old "examples" inline, you can now also do EXAMPLES as a free  
formatted text docstring. This is going to be the favored way to do  
it for new modules, but the old way still works. Thanks to Jan-Piet  
Mens once again for some great docs additions.

Finally, thanks to Daniel Hokka Zakrisson for adding some cool type  
checking features. You will see this in various module argument  
specifications, and you can do strings, lists, and so on. It will  
cast things for you so have to write even less code to convert types  
of arguments. Good stuff!
