Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types are not in same order as raml file #595

Open
pete-lemire opened this issue Jan 31, 2019 · 4 comments
Open

types are not in same order as raml file #595

pete-lemire opened this issue Jan 31, 2019 · 4 comments
Assignees

Comments

@pete-lemire
Copy link

screen shot 2019-01-31 at 6 35 22 pm
screen shot 2019-01-31 at 6 36 11 pm

@jarrodek
Copy link
Contributor

jarrodek commented Feb 5, 2019

Hi,
Thank you for issue report.
API console iterates over the array of declarations found in the AMF model (see here: https://github.com/advanced-rest-client/api-navigation/blob/stage/api-navigation.html#L747). Then it iterates over list of references to do the same (references are external files like fragments containing among others RAML types). There's no sorting function used in navigation. I will bring this issue onto attention of AMF team to see if this can be fixed in the AMF model.

@pete-lemire
Copy link
Author

Thank you @jarrodek

@jarrodek jarrodek self-assigned this Feb 13, 2019
@marcadella
Copy link

Same complaint. At least lexicographic ordering is always better than random.

@jarrodek
Copy link
Contributor

According to AMF team types are actually in right order. It might get weird when you apply external types and / or libraries. I am not sure myself how this is exactly processed but the console also includes types from external sources in navigation and it may produce some unexpected results in terms of ordering. However the console use the order defined in AMF model.

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

No branches or pull requests

3 participants