Authress-Engineering / openapi-explorer

OpenAPI Web component to generate a UI from the spec.
Apache License 2.0
316 stars 42 forks source link

Model schema name are not displaying if if's an array #231

Closed gdec31 closed 9 months ago

gdec31 commented 9 months ago

Hello,

Linked to the issue #220, this works well except for endpoint that returns an array.

Actual behavior : The space that should contains the schema name is empty

Expected behavior: I expect to have something like that image

Below a part of my schema

  "/projects" : {
       "get" : {
         "responses" : {
           "200" : {
             "description" : "Successful Operation",
             "content" : {
               "application/json" : {
                 "schema" : {
                   "type" : "array",
                   "items" : {
                     "$ref" : "#/components/schemas/DtoProject"
                   }
                 }
       }
        }
gdec31 commented 9 months ago

Thanks !