Skip to content

adding refs recursively #245

@benkeil

Description

@benkeil

We have entities with hundreds of properties and different classes and the DSL is basically not usable like this. I need to manually add all classes to the components.

components {
  schema<PartnerJourneyStatus>()
  schema<Step>()
  schema<ErrorResponse>()
  schema<...>()
  schema<...>()
  securityScheme("ottoApi") {
    type(SecurityScheme.Type.OAUTH2)
    flows { clientCredentials { tokenUrl("https://api.otto.de/oauth2/token") } }
  }
}

It would be nice if using

responses {
  response("500") { 
    content { 
      mediaTypeRef<ErrorResponse>("application/json")
    }
  }
}

automatically add every class recursively to the components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions