[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
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