Open fschargorosdky opened 9 years ago
What's the issue? The header is used to identify that the current document is a RAML file. If you don't have that, the API Designer does not recognise it as such and therefore the drawer disappears.
The problem is when an inexperience user enters, clicks a drawer option and modifies the header. The drawer disappears and the user has no idea what he did wrong.
OK understand - what do you think could be a good way to prevent/notify the user?
If it's a .raml file with a wrong header notify the user and propose him a correct header. Perhaps mark it as a syntax error
The problem here is that you could have RAML files without a header as well as they might be child type files for a parent RAML that contains the header
If the user changes the
at the beginning of the file, the bottom drawer disappears and doesn't return until the header is fixed.
If the user changes only the version in the header, it only displays an item: #%RAML 0.8 Placing the cursor in another lines displays all the items as designed