# Warning in api file

**URL:** <https://forum.legato.io/t/warning-in-api-file/2848>\
**Category:** Legato Application Framework\
**Created:** [December 10, 2017, 12:35am UTC](https://forum.legato.io/t/warning-in-api-file/2848 "2017-12-10T00:35:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGod](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/thegod/32/252_2.png) [@TheGod](https://forum.legato.io/u/TheGod)\
**Post date:** [December 10, 2017, 12:35am UTC](https://forum.legato.io/t/warning-in-api-file/2848/1 "2017-12-10T00:35:58Z")

</div>

Hi,  
I have created .api file and ENUM inside the file. I use my enum in functions, events etc. Everything works fine, however I don’t know why I have got warning every time I use it inside .api file. Warning says:

Unable to find predefined type named ‘PortsOUT’. Support for directly using these C types is a temporary measure and will be removed in a future release.

![Warning](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/0b1b571c712d1b2d2d823c09c7ccad02d3a07002.png)

Can I get rid of the warning?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [December 11, 2017, 8:38am UTC](https://forum.legato.io/t/warning-in-api-file/2848/2 "2017-12-11T08:38:21Z")

</div>

Hi @TheGod

This is a known problem in DS api file editor.  
Unfortunately, there is no workaround. Fortunately, it doesn’t impact the build and your projects will build fine despite of the editor warning.  
We’re working at getting this fixed in the next DS release.
