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
  • #14169
Closed
Open
Issue created Dec 04, 2022 by Administrator@rootContributor

[BUG] Examples defined in Response Content are not available

Created by: gcatanese

Description

During the code generation the examples from the Response Content are ignored:

        '201':
          description: 'Created OK'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/coordinates'
              examples:
                Example Amsterdam coordinates:
                  value:
                    lat: 52.377956
                    long: 4.897070

In the file above the Example Amsterdam coordinates is not made available to the Mustache templates

openapi-generator version

v6.3.0-SNAPSHOT

Assignee
Assign to
Time tracking