herbsjs / herbsshelf

Dynamically generated documentation for your domain
Other
8 stars 16 forks source link

Field is displayed as undefined when it is string array #56

Closed vitorgamer58 closed 1 year ago

vitorgamer58 commented 1 year ago

Describe the bug When I have an entity with the field declared as a string array, it is displayed in HerbsShelf as an array of undefined.

acoes: field([String]),

To Reproduce Steps to reproduce the behavior:

  1. In any HerbJs project, create in any entity a field containing [String]
  2. Start the project and open herbsshelf

Expected behavior A field declared as a string array in any entity should be properly displayed in HerbShelf without any 'undefined' values.

Screenshots Screenshot_751

Additional context

Environment where it was possible to reproduce the bug

  1. herbarium: 1.4.0 herbs: 1.6.1 herbs2rest: 3.0.1 herbsshelf: 4.1.0

  2. herbarium: 1.4.0 herbs: 2.0.0 herbsshelf: 5.1.0-beta.5

vitorgamer58 commented 1 year ago

Investigating further, the problem is in Herbs2Mermaid. Replaced by: https://github.com/herbsjs/herbs2mermaid/issues/6