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
  • #4848
Closed
Open
Issue created Dec 19, 2019 by Administrator@rootContributor5 of 6 checklist items completed5/6 checklist items

[BUG] [AsciiDoc] Add option to not generate metadata

Created by: mgwoj

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix ([example]
Description

Documentation generated in AsciiDoc has metadata information at the begining of the file. This is causing problems if the generated file is included into some bigger documentation, as those metadata are copied "as-is", which pollutes the final documentation. It would be great to add the option if we want this metadata to be generated or not (default is true).

openapi-generator version

2.4.1-SNAPSHOT

OpenAPI declaration file content or url

https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml

Command line used for generation

generated via gradle plugin

Steps to reproduce

Currently generated file looks like

= My App API 
team@example.com
1.0.0
:toc: left
:numbered:
:toclevels: 3
:source-highlighter: highlightjs
:keywords: openapi, rest, My App API 
:specDir: 
:snippetDir: 
:generator-template: v1 2019-11-19
:info-url: https://openapi-generator.tech
:app-name: My App API

[abstract]
...

It would be good to not generate lines starting with :, like this

= My App API 

[abstract]
...
Related issues/PRs

None

Suggest a fix

Not known at this moment.

/CC: @man-at-home

Assignee
Assign to
Time tracking