Issue #3084: hide generation timestamp for HTML2 samples. (#5193)

This commit is contained in:
Paŭlo Ebermann 2017-03-26 16:49:12 +02:00 committed by wing328
parent a3e639ccee
commit a9c7030997
3 changed files with 5 additions and 10 deletions

View File

@ -26,6 +26,6 @@ fi
# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l html2 -o samples/html2"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l html2 -o samples/html2 --additional-properties hideGenerationTimestamp=true"
java $JAVA_OPTS -jar $executable $ags

View File

@ -438,12 +438,12 @@
{{/licenseUrl}}
</div>
</div>
<div id="generator">
{{^hideGenerationTimestamp}} <div id="generator">
<div class="content">
Generated {{generatedDate}}
</div>
</div>
</div>
{{/hideGenerationTimestamp}} </div>
</div>
</div>
{{>js_jsonformatter}}

View File

@ -1870,8 +1870,8 @@ except ApiException as e:
"type" : "array",
"items" : {
"type" : "string",
"default" : "available",
"enum" : [ "available", "pending", "sold" ]
"enum" : [ "available", "pending", "sold" ],
"default" : "available"
},
"collectionFormat" : "csv"
};
@ -7291,11 +7291,6 @@ except ApiException as e:
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div>
</div>
</div>
<div id="generator">
<div class="content">
Generated 2017-03-23T14:23:30.922+08:00
</div>
</div>
</div>
</div>
</div>