Orange-OpenSource / angular-swagger-ui

An angularJS implementation of Swagger UI
http://orange-opensource.github.io/angular-swagger-ui/
MIT License
135 stars 74 forks source link

discrepancy in secondary tags between Swagger UI and Swagger angular #61

Closed maksimlikharev closed 7 years ago

maksimlikharev commented 7 years ago

Secondary tag operations are missing from Swagger Angular, but correctly displayed in Swagger UI. See json and output bellow.

JSON

{
  "swagger" : "2.0",
  "info" : {
    "description" : "This API.",
    "title" : "This API Specification"
  },
  "tags" : [ {
    "name" : "create user"
  }, {
    "name" : "get user"
  }, {
    "name" : "update user"
  }, {
    "name" : "Admin APIs"
  }, {
    "name" : "Public APIs"
  } ],
  "schemes" : [ "http", "https" ],
  "paths" : {
    "/admin/users/user" : {
      "post" : {
        "tags" : [ "create user", "Admin APIs" ],
        "summary" : "Create user profile (Admin)",
        "operationId" : "createUser (Admin)",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ ]
      }
    },
    "/admin/users/user/{id}" : {
      "get" : {
        "tags" : [ "get user", "Admin APIs" ],
        "summary" : "Retrieve user (Admin API).",
        "operationId" : "getUser (Admin)",
        "produces" : [ "application/json" ],
        "parameters" : [ ]
      }
    },
    "/users" : {
      "get" : {
        "tags" : [ "get users", "Public APIs" ],
        "summary" : "Retrieve users in bulk.",
        "operationId" : "getUsers",
        "produces" : [ "application/json" ],
        "parameters" : [ ]
      }
    },
    "/users/user/{id}" : {
      "get" : {
        "tags" : [ "get user", "Public APIs" ],
        "summary" : "Retrieve user.",
        "operationId" : "getUser",
        "parameters" : [ ]
      },
      "put" : {
        "tags" : [ "update user", "Public APIs" ],
        "summary" : "Update user.",
        "operationId" : "updateUser",
        "produces" : [ "application/json" ],
        "parameters" : [ ]
      }
    }
  },
  "definitions" : { }
}

Swagger UI

create user

get user

get users

update user

Admin APIs

Public APIs

Swagger Angular

create user

get user

update user

get users