sourcey / spectacle

Beautiful static documentation generator for OpenAPI/Swagger 2.0
https://sourcey.com/spectacle
Other
1.28k stars 337 forks source link

Enums values for nested objects in a Swagger schema #193

Open regel opened 5 years ago

regel commented 5 years ago

Enums values for nested objects in a Swagger schema are not visible in the HTML files produced by Spectacle.

Swagger schema example:

definitions:
  Addr:
    type: object
    properties:
      remarks:
        description: >-
          Additional remarks to return partial or exact match information
        type: object
        properties:
          street:
            description: >-
              Partial match information for street field
            type: string
            enum:
              - 'exact_match'
              - 'did not match exactly'

The valid enum values "exact_match" and "did not match exactly" are not documented in the HTML file.

Environment:

2019-10-18 latest Docker image:

Digest: sha256:d1b38c1c5d557fbf635d38cf2c1d847d759ea3d991c0f93d57ef64c0a098d0d8
Status: Downloaded newer image for sourcey/spectacle:latest
docker.io/sourcey/spectacle:latest