All Downloads are FREE. Search and download functionalities are using the official Maven repository.

details.operation.ftl Maven / Gradle / Ivy

<#import "../ui.ftl" as ui/>

<#macro list coverage prefix>
    
<#list coverage as key, value>
${key}
${i18["details.operation.status"]}: ${value.getResponses()?keys?join(",")}
${i18["details.operation.parameters"]}
<#if value.getParameters()??> <#list value.getParameters() as p> <#if p.getExtensions()??> <#if p.getExtensions()["x-example"]??> <#if p.getExtensions()["x-example"]?is_boolean> <#else> <#elseif p.getExample()??> <#if p.getExample()?is_boolean> <#else>
${i18["details.operation.parameter.type"]} ${i18["details.operation.parameter.name"]} ${i18["details.operation.parameter.value"]}
${p.getName()}${p.getExtensions()["x-example"]?c}${p.getExtensions()["x-example"]} ${p.getExample()?c}${p.getExample()}
<#if coverage?size == 0> ${i18["details.operation.no_data"]}
<#macro details name operationResult target>
<@ui.coverageStateBadget operationResult=operationResult />
${operationResult.operationKey.path} <#-- ${operationResult.description}-->
${operationResult.processCount} ${i18["details.operation.calls"]}
<@ui.progress full=operationResult.allConditionCount current=operationResult.coveredConditionCount postfix=i18["details.conditionprogress.postfix"] />
<@conditionList list=operationResult.conditions />
<#macro conditionList list>
<#list list as condition> <#assign trStyle = "table-danger"> <#if condition.covered> <#assign trStyle = "table-success">
${i18["details.conditionlist.name"]} ${i18["details.conditionlist.details"]}
<#if condition.covered> <#else>  ${condition.name} ${condition.reason}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy