Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Changing the file header makes the drawer dissapear #344

Open
fschargorosdky opened this issue Jul 29, 2015 · 5 comments
Open

Changing the file header makes the drawer dissapear #344

fschargorosdky opened this issue Jul 29, 2015 · 5 comments

Comments

@fschargorosdky
Copy link

If the user changes the

#%RAML 0.8

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

@sichvoge
Copy link
Contributor

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.

@fschargorosdky
Copy link
Author

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.

@sichvoge
Copy link
Contributor

OK understand - what do you think could be a good way to prevent/notify the user?

@fschargorosdky
Copy link
Author

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

@sichvoge
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants