Skip to content

External refs within arrays not fully working #2277

@mbalex

Description

@mbalex

Version: db1d742 (zip download via github)

Problem summary:
An array as base schema cannot properly reference external jsons within external references jsons. The reference within the reference isn't expanded in the UI.

Using external references:

  • Array -> Object(1) works
  • Array -> Object(1) -> Object(2) does not work (only expands Object(1) but not Object(2))
  • Object -> Array -> Object(1) -> Object(2) works (since Object is the base schema)

Using internal references:

  • Array -> Object -> Object works only if not within the same swagger space as the non working external reference variant (something must destroy ref resolution).

Attached are the files I used to try out different use cases:
refarrayissue.zip

And here a screenshot with the problem:
refissuewitharray-swagger-ui

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions