OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.8k stars 6.58k forks source link

[BUG][MARKDOWN] Enums in model are empty #6097

Open zeljkot opened 4 years ago

zeljkot commented 4 years ago
Description

Enums in a model do not show possible values; they just have an empty table like regular objects, which is not suitable here.

components:
  schemas:
    WarningType:
      enum:
        - FORMATTED
        - DISCONTINUITY
        - SWITCH
# WarningType
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
openapi-generator version

4.3.0

OpenAPI declaration file content or url

bug.zip

Command line used for generation
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>4.3.0</version>
<executions>
  <execution>
    <id>markdown</id>

mvn clean compile

Steps to reproduce

Create OpenAPI yaml with enum component.

Related issues/PRs
Suggest a fix
ybelenko commented 4 years ago

cc @jimschubert as generator author.

Idane commented 6 months ago

Is there any news on this?