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
  • #749
Closed
Open
Issue created Aug 06, 2018 by Martin Delille@MartinDelilleContributor

Strange default value for simple definition file

Description

When I generate the documentation, I have some undesired field when they are not mentioned in the definition file.

Here is the documentation output:

# My test api

This is a test API.
More information: https://helloreverb.com
Contact Info: hello@helloreverb.com
Version: 1.0.0
BasePath:/v2
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html

Why is helloreverb the default? can we override it? Why is there a link to the apache licence?

openapi-generator version

3.1.2

OpenAPI declaration file content or url
openapi: 3.0.1
servers:
  - url: 'https://api.test.com/v2'
info:
  description: >-
    This is a test API.
  version: 1.0.0
  title: My test api
components:
  schemas:
    Episode:
      title: An episode
      description: TODO
      type: object
      properties:
        id:
          type: integer
          format: int64
        originalTitle:
          type: string

paths:
  /episodes/me:
    get:
      tags:
        - episode
      summary: Find episode attributed to the current user
      operationId: findEpisodesByUser
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Episode'
Command line used for generation
$ openapi-generator generate -i test.yaml -g html -o test
Steps to reproduce

Just run the command line against the given example and look at test/index.html

Related issues/PRs
Suggest a fix/enhancement
Assignee
Assign to
Time tracking