Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #149
Closed
Open
Issue created May 25, 2018 by Administrator@rootContributor

Support for external references in $ref

Created by: jmini

According to the specification (Reference Object in OAS3) it is allowed to define references to external files.

For example looking for the Pet schema in other.yaml in the same repository:

$ref: ‘./other.yaml#/components/schemas/Pet'

It looks like that the other input file does not need to be a “OpenAPI” yaml/json file at all, it can just be a sub-part of a part:

$ref: definitions.yaml#/Pet

This is not supported at all by OpenAPI generator.

Assignee
Assign to
Time tracking