danielgtaylor / aglio

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

HTML generation error for param that start with "template_" #294

Open mgardnerpsu opened 7 years ago

mgardnerpsu commented 7 years ago

Our API has a query parameter that starts with "template_"; this causes the HTML generation to fail. Example output herein and apiary.apib source file attached.

aglio -i apiary.apib -o apiary.html

Line 3939: parameter 'template_name (string, optional, sequencing_file_info) ... The unique template_name of the template; performs an exact match.' not specified in 'View All Object Metadata' its '/meta/{object_kind}/{object_id}{?template_name}' URI template (warning code 8) Context ...

   + Response 204

   ## View All Object Metadata [/meta/{object_kind}/{object_id}{?template_name}]
  • Parameters
    • object_kind (string, required, dds-file) ... The kind of object.
    • object_id (string, required, b80a2679-f6bf-46da-acaa-b7a4582b1eda) ... The unique id of the object.
    • template_name (string, optional, sequencing_file_info) ... The unique template_name of the template; performs an exact match.