Skip to content

[SPIKE] Resolve $ref in api/controller/route specs #435

@bajtos

Description

@bajtos

At the moment, our code processing Swagger/OpenAPI Spec does not support $ref references, we assume all entities have been denormalized/dereferenced. IMO, this is a severe limitation because even the simples CRUD-based REST APIs usually reuse model (response object) definitions.

We should investigate how to support $ref in all places allowed by OpenAPI spec. Let's limit the scope to relative references only (e.g. #/definitions/User) and exclude external references (e.g. http://json-schema.org/address).

Acceptance Criteria

  • Establish agreement of the virtual OpenAPI Spec / $ref resolution
  • What's the target OpenAPI Spec we're resolving against.
  • Consistency between top-down and bottom-up approach
  • Contributing Artifacts: Controller, Models, OpenAPI Spec, others?

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