Skip to content

Lazy load model properties #4280

Open
Open
@heldersepu

Description

@heldersepu
Q A
Bug or feature request? Performance Bug
Which Swagger/OpenAPI version? 2.0
Which Swagger-UI version? 3.11
How did you install Swagger-UI? PetStore
Which browser & version? Chrome
Which operating system? Win 10

Demonstration API definition

petstore.swagger.io/...&url=https://heldersepu.github.io/hs-scripts/swagger/4248_swagger.json

Expected Behavior

Fast expansion of model properties

Current Behavior

Very slow expansion of model properties

Possible Solution

Lazy load model properties like we do the models

Context

Looking at the current implementation, the collapsed models show right away (big thanks 2 @shockey)

Expanding small models is quick, but the largest models (such as Patrimonio ) takes quite a while, once it fully expands, expanding child models takes no time...
I believe that is because we are loading the entire tree of the model.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions