Skip to content

Is there a way to sort in the automated documentation? #604

Open
@macnewbold

Description

@macnewbold

I'm hoping I'm just missing something, but as our project grows, we're trying to keep the documentation as easy to use as we can. One way we do this is by sorting our ~20 namespaces alphabetically as we load them, so that they come out in the same order they were loaded. While it would be nice if this was automatic, it's workable.

We have an issue though with our 40+ models, whose names alone scroll across several screenfuls in the docs in the browser. They are listed in the order they were added, which means whatever models are used in the early methods of the earliest loaded namespaces show up first. Rather than having models load into the documentation in the order they were used/added as we processed all the methods, we would love to have a way to sort the models alphabetically. Or failing that, listing each model's namespace with it would help it make more sense regarding where to find stuff without resorting to text searches in the browser.

Some other implementations of swagger-related documentation like this seem to support a "sorter" method that can be provided to determine the sort order that is desired in the output.

Thanks to all the contributors and maintainers for the great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions