@@ -198,6 +198,11 @@ function confidenceLabel(value) {
198198 return CONFIDENCE_LABELS [ value ] ?? value ;
199199}
200200
201+ function operationConfidenceLabel ( operation ) {
202+ if ( operation . response ?. evidenceLevel === "live_response_confirmed" ) return "实测已确认" ;
203+ return confidenceLabel ( operation . confidence ) ;
204+ }
205+
201206function operationResponseSchema ( operation ) {
202207 if ( operation . response . schemaRef ) return { $ref : `#/schemas/${ operation . response . schemaRef } ` } ;
203208 return operation . response . schema ?? { type : "object" , additionalProperties : true } ;
@@ -467,7 +472,7 @@ function renderDoc(operation) {
467472 <div class="breadcrumbs"><span>WQ API</span><span>/</span><span>${ escapeHtml ( DOMAIN_LABELS [ operation . domain ] ?? operation . domain ) } </span></div>
468473 <div class="operation-title">
469474 <h1>${ escapeHtml ( operation . summary ) } </h1>
470- <span class="confidence-stamp">${ escapeHtml ( confidenceLabel ( operation . confidence ) ) } </span>
475+ <span class="confidence-stamp">${ escapeHtml ( operationConfidenceLabel ( operation ) ) } </span>
471476 </div>
472477 <p class="operation-id">operationId: ${ escapeHtml ( operation . operationId ) } </p>
473478 <div class="route-card">${ methodBadge ( operation . method ) } <code>${ escapeHtml ( operation . path ) } </code></div>
@@ -1223,4 +1228,4 @@ async function initialize() {
12231228
12241229if ( typeof document !== "undefined" ) initialize ( ) ;
12251230
1226- export { buildJavascript , buildPython , confidenceLabel , defaultOperationValues , evidenceLabel , expandSchemaRefs , helpTooltip , responseExampleBlock , responseExampleForOperation , sampleFromSchema , schemaBlock , schemaExampleBlock , sensitivityLabel , state , stripSchemaMetadata } ;
1231+ export { buildJavascript , buildPython , confidenceLabel , defaultOperationValues , evidenceLabel , expandSchemaRefs , helpTooltip , operationConfidenceLabel , responseExampleBlock , responseExampleForOperation , sampleFromSchema , schemaBlock , schemaExampleBlock , sensitivityLabel , state , stripSchemaMetadata } ;
0 commit comments