Skip to content

Commit

Permalink
[html2] Change to correct variable (#18685)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniokrait authored May 19, 2024
1 parent 3d15864 commit 9b0ca06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@
</tr>
{{#headers}}
<tr>
<td>{{name}}</td>
<td>{{baseName}}</td>
<td>{{#datatype}}{{dataType}}{{/datatype}}</td>
<td>{{dataFormat}}</td>
<td>{{description}}</td>
Expand Down
8 changes: 4 additions & 4 deletions samples/documentation/html2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9591,19 +9591,19 @@ <h3 id="examples-User-loginUser-title-200"></h3>
<th>Description</th>
</tr>
<tr>
<td>SetDashCookie</td>
<td>Set-Cookie</td>
<td>String</td>
<td></td>
<td>Cookie authentication key for use with the &#x60;api_key&#x60; apiKey authentication.</td>
</tr>
<tr>
<td>XDashRateDashLimit</td>
<td>X-Rate-Limit</td>
<td>Integer</td>
<td>int32</td>
<td>calls per hour allowed by the user</td>
</tr>
<tr>
<td>XDashExpiresDashAfter</td>
<td>X-Expires-After</td>
<td>Date</td>
<td>date-time</td>
<td>date in UTC when token expires</td>
Expand Down Expand Up @@ -11660,7 +11660,7 @@ <h3 id="examples-User-updateUser-title-404"></h3>
// Determine if a schema is an array
this.isArray = !this.isAny && this.schema && this.schema.type === 'array';

this.isObject = this.schema && (this.schema.type === 'object' || this.schema.properties || this.schema.anyOf || this.schema.oneof || this.schema.allOf);
this.isObject = this.schema && (this.schema.type === 'object' || this.schema.properties || this.schema.anyOf || this.schema.oneOf || this.schema.allOf);

// Determine if a schema is a primitive
this.isPrimitive = !this.isAny && !this.isArray && !this.isObject;
Expand Down

0 comments on commit 9b0ca06

Please sign in to comment.