danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 480 forks source link

olio-theme: Example rendering ignores sample values #322

Open jackbentley opened 7 years ago

jackbentley commented 7 years ago

The olio theme will ignore any sample values when rendering an example and uses default values instead.

See this line (example.coffee#L23)

Example:

+ someAttribute (string, required)
    + Sample: Test Sample String

The root variable will contain

{ element: 'string', attributes: { samples: [ 'Test Sample Stirng' ] } }

and the sample value will not be used.

njlittle commented 7 years ago

+1 for fixing this