cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with creating a documentation when using re-usable enums

Highlighted
Occasional Visitor

Issue with creating a documentation when using re-usable enums

My yaml file looks like this

openapi: 3.0.2
components:
  schemas:
    Countries:
      type: string
      enum:
        - Unknown
        - Afghanistan
        - Albania
        - Algeria
        - AmericanSamoa
        - "\u00c5landIslands"
        - NotOtherwiseSpecified

 , when I compile it it creates the java classes correctly, however is not creating the documentation, just gives me:

GeopoliticalAffiliation -

and nothing more is displayed for that praticular scheme. For the other schemes enum options are displayed, etc.
Can you help me with this problem? Is this an issue of swagger or I am mistaken somehwere.The example in the swagger website and my code are following the same rules: https://swagger.io/docs/specification/data-models/enums/.

P.S. I tought the problem is comming because of the special caracter, but is not. I tried without that specific enum entry and also I have another similar way reusable enum that behaves the same way.

1 REPLY 1
Moderator

Re: Issue with creating a documentation when using re-usable enums

Hi @SimeonV,

 

You can try the latest version of codegen: https://github.com/swagger-api/swagger-codegen/releases

 

If it doesn't work either, please report the issue here: https://github.com/swagger-api/swagger-codegen/issues


Join the annual community event and share your stories to win gifts
Wintertainment2019