@@ -72,7 +72,7 @@ function buildSchemaDetails(schema, components) {
7272 if ( ! resolvedSchema . properties && resolvedSchema . type !== "object" ) {
7373 // For primitive types, show basic type information
7474 let typeInfo = `<div class="text-sm text-gray-600">
75- <span class="font-mono bg-blue-100 text-blue-800 px-2 py-1 rounded">${ formatTypeDisplay (
75+ <span class="font-mono bg-gray-200 text-gray-700 px-2 py-1 rounded">${ formatTypeDisplay (
7676 resolvedSchema
7777 ) } </span>`;
7878
@@ -148,17 +148,18 @@ function buildSchemaDetails(schema, components) {
148148 <div class="p-4 border-b border-gray-200 last:border-b-0">
149149 <div class="flex items-start">
150150 <div class="w-1/3">
151- <span class="text-sm font-medium text-gray-700">${ propName } </span>
152- ${
151+ <span class="text-sm font-medium text-gray-700">${ propName } ${
153152 isRequired
154- ? '<span class="text-xs text- red-500 ml-1">required </span>'
153+ ? '<span class="text-red-500 ml-0.5">* </span>'
155154 : ""
156- } </div> <div class="w-2/3" >
157- <code class="text-sm text-blue-800 bg-blue-100 px-1 py-0.5 rounded font-mono">
155+ } </span >
156+ <code class="text-sm text-gray-700 bg-gray-200 px-1 py-0.5 rounded font-mono ml-2 ">
158157 ${ formatTypeDisplay ( resolvedPropSchema ) } ${
159158 resolvedPropSchema ?. format ? `(${ resolvedPropSchema . format } )` : ""
160159 }
161- </code><br>` ;
160+ </code>
161+ </div>
162+ <div class="w-2/3">` ;
162163 // Add description
163164 if ( resolvedPropSchema ?. description ) {
164165 schemaHTML += `<span class="text-sm text-gray-700">${ resolvedPropSchema . description } </span><br>` ;
@@ -396,7 +397,8 @@ function buildMainContent() {
396397 section . id = sectionId ;
397398 const methodBorderClass = `method-border-${ method . toLowerCase ( ) } ` ;
398399 const methodShadowClass = `method-shadow-${ method . toLowerCase ( ) } ` ;
399- section . className = `main-content-section mb-5 p-3 bg-white flex items-start gap-4 border-l-4 ${ methodBorderClass } ${ methodShadowClass } ` ;
400+ const deprecatedClass = operation . deprecated ? 'deprecated-section' : '' ;
401+ section . className = `main-content-section mb-5 p-3 bg-white flex items-start gap-4 border-l-4 ${ methodBorderClass } ${ methodShadowClass } ${ deprecatedClass } ` ;
400402 endpointsContainer . appendChild ( section ) ;
401403
402404 const authSchemes =
@@ -425,6 +427,7 @@ function buildMainContent() {
425427 </button>
426428
427429 <div class="ml-auto flex gap-2 items-center">
430+ ${ operation . deprecated ? '<span class="deprecated-badge">DEPRECATED</span>' : '' }
428431 <button class="main-try-it-out-btn ${ getMethodButtonClass (
429432 method
430433 ) } text-sm flex items-center font-bold py-1 px-3 rounded hover:text-white border shadow transition" data-path="${ path } " data-method="${ method } ">
@@ -975,7 +978,7 @@ function buildParametersSection(title, params) {
975978 let sectionHTML = `
976979 <div class="mb-4">
977980 <h3 class="param-section-header text-gray-700 font-semibold mb-2 text-lg">
978- ${ title } <span class="endpoint-count ml-2"> ${ params . length } </span>
981+ ${ title }
979982 </h3>
980983 <div class="bg-gray-50 border border-gray-200 rounded-md param-section-path">
981984 ` ;
@@ -1024,17 +1027,18 @@ function buildParametersSection(title, params) {
10241027 <div class="w-1/3">
10251028 <span class="text-sm font-medium text-gray-700">${
10261029 param . name
1027- } </span>
1028- ${
1030+ } ${
10291031 param . required
1030- ? '<span class="text-xs text- red-500 ml-1">required </span>'
1032+ ? '<span class="text-red-500 ml-0.5">* </span>'
10311033 : ""
1032- } </div> <div class="w-2/3" >
1033- <code class="text-sm text-blue-800 bg-blue-100 px-1 py-0.5 rounded font-mono">${
1034+ } </span >
1035+ <code class="text-sm text-gray-700 bg-gray-200 px-1 py-0.5 rounded font-mono ml-2 ">${
10341036 param . schema ? formatTypeDisplay ( param . schema ) : ""
10351037 } ${
10361038 param . schema && param . schema . format ? "(" + param . schema . format + ")" : ""
1037- } </code><br>
1039+ } </code>
1040+ </div>
1041+ <div class="w-2/3">
10381042 <span class="text-sm text-gray-700">${
10391043 param . description || ""
10401044 } </span>`;
0 commit comments