swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Missing configuration in v3.0.5

Open grosch opened this issue 9 years ago • 6 comments

I notice that none of these options from version 2 are being honored. Is this just a case of "not yet implemented" or has the way this works changed?

    // This one is what sorts the methods inside the tags
    operationsSorter: function (a, b) { 
        var order = { 'get': '0', 'post': '1', 'patch' : '2', 'put': '3', 'delete': '4' }; 
        var foo = order[a.method].localeCompare(order[b.method]);
        if (foo == 0) {
            return a.path.localeCompare(b.path);
        } else {
            return foo;
        }
    },

    // This one is what sorts the tags.
    apisSorter: 'alpha',

    // This makes the model show by default, with all the parameter descriptions
    defaultModelRendering: 'model',

    jsonEditor: true

grosch avatar Apr 13 '17 23:04 grosch

Not implemented yet. See Known Issues and the available parameters.

webron avatar Apr 14 '17 04:04 webron

Is there any way to indicate the priority of each parameter implementation? The lack of apisSorter and docExpansion are pretty much the only thing keeping me from transitioning to 3.x

dotasek avatar Apr 20 '17 15:04 dotasek

The ticket is marked as P2, meaning it's second-tier priority. If it's important to you, consider submitting a PR to add the functionality (with tests 😄).

webron avatar Apr 20 '17 15:04 webron

Hi @webron , is there a timeline or ETA on the availability of JSON Form Editor in 3.x version. Thats what I am waiting fro migrating to 3.x

krishnan-unni avatar Jan 13 '18 02:01 krishnan-unni

tagsSorter, operationsSorter, and defaultModelRendering are implemented now.

JSON Form Editor is being tracked here: https://github.com/swagger-api/swagger-ui/issues/2771

Closing, thanks everyone!

shockey avatar Mar 02 '18 00:03 shockey

Locking due to inactivity.

This is done to avoid resurrecting old issues and bumping long threads with new, possibly unrelated content.

If you think you're experiencing something similar to what you've found here: please open a new issue, follow the template, and reference this issue in your report.

Thanks!

lock[bot] avatar Jul 02 '19 11:07 lock[bot]