Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

jackson InvalidDefinitionException #226

@nursace

Description

@nursace

Hi there, does swagger-play support play 2.8.2 ? I'm struggling with this error:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Direct self-reference leading to cycle (through reference chain: io.swagger.models.Swagger["definitions"]->java.util.LinkedHashMap["HttpEntity"] o.swagger.models.ModelImpl["properties"]->java.util.LinkedHashMap["knownEmpty"] o.swagger.models.properties.BooleanProperty["readOnly"])
Here are my dependencies in build.sbt:

  "com.iterable" %% "swagger-play" % "2.0.1",
    "org.webjars" % "swagger-ui" % "3.13.0",
    "com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.10.4"

it builds fine, but when I trying to make GET request to localhost:9000/docs/swagger.json it crushes with error above.
And also, I can see, that swagger was able to find my controllers with API annotation and then instantly I got that error.

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