Comments (12)
Thanks @thedevsaddam . The -s
flag sorts lexically now.
However, the default behavior is still ordering in reverse. We can verify that by checking the sequence in collection.json
and the generated output. Should I open an issue to track that?
from docgen.
still having same issue, any idea how to solve this ?
from docgen.
Same under Linux with v2.3 and the same collection.
I tried to quickly look over the code, but I don't know Go, so I will not be really useful, sorry.
from docgen.
I found the code part that does the sorting. I'll create a pull request to add a command line switch to enable/disable collections sort :-)
from docgen.
@FabienSailliet can you check if this problem is fixed in the latest version? Thanks :-)
from docgen.
@Enrico204 I checked - the sorting problem is still there today. -s switch is visible in help and accepted. But it does not change the reverse sort order. It is reproducible with the original test json posted by @FabienSailliet
Docgen version: v2.3
from docgen.
@Enrico204 @thedevsaddam This problem is still persistent. Do we have any solution for this?
from docgen.
@abhijitnathwani , Hopefully, it will be solved by next release [v3.0.0]. There will be major changes in UI.
In the case of directory
or requests
ordering:
- The default will be as it shows in postman
-s
flag will sort the items (directory, requests) in lexical order
from docgen.
Please use the latest v3.0.0-rc
curl https://raw.githubusercontent.com/thedevsaddam/docgen/v3/install.sh -o install.sh && sudo chmod +x install.sh && sudo ./install.sh
I'm closing the issue. If anything goes wrong, please feel free to create an issue or reopen
from docgen.
The default order is using parent directories in order but the children are going out of order
Note: Probably I'll need a PR for that :(
Update: Removed the s
flag, from now on the collections will be in lexical order by default
from docgen.
I'm also still seeing sorting not following the same order of the requests in the collection by default:
I used the Mac binary 3.0.0-rc2 - https://github.com/thedevsaddam/docgen-bin/blob/master/latest/mac_amd64
from docgen.
The collections are ordered alphabetically,
a-z etc
from docgen.
Related Issues (20)
- html response body tags coverted to html character entities
- Add feature pathname server
- Add Bearer Token
- Linux arm
- Greater/less than Characters
- Refused to execute inline script because it violates the following Content Security Policy directive HOT 6
- Do not sort the collections in lexical order by default. HOT 1
- Trouble with maps in maps
- GitHub Action for docgen
- Markdown conversion hangs HOT 1
- Run request button HOT 1
- docgen error when trying to generate the html file from the postman json file HOT 1
- Links to markdown anchors with parenthesis not working HOT 2
- Additional Languages
- Nested Folder Reading Issue HOT 2
- UNABLE TO RUN DOCGEN.EXE ON WINDOWS
- Certain markdown links not working in Gitlab
- 2022/10/02 15:39:48 parsing json filejson: cannot unmarshal string into Go struct field Request.item.item.request.url of type collection.URL HOT 2
- docgen: command not found
- 生成MarkDown在线文档对中文标题无法正常跳转
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docgen.