Skip to content

Commit

Permalink
Merge pull request #191 from Rhosys/wparad/fix-constraint-display
Browse files Browse the repository at this point in the history
Fix constraints display for query properties. fix #190
  • Loading branch information
wparad committed Sep 7, 2023
2 parents 599858d + 3004b49 commit a4ead57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This package follows standard semvar, `<major>.<minor>.<build>`. No breaking cha
## 2.0
* `show-server-selection` has now be inverted to be `hide-server-selection` this brings it in line with how html boolean attributes are supposed to work. If you set this value to false previously, now you can hide the section using the new property.
* `allow-authentication` has now be inverted to be `hide-authentication` this brings it in line with how html boolean attributes are supposed to work. If you set this value to false previously, now you can hide the section using the new property.
* Fix `constraints` display for query parameters.

## 1.1 ##
* Support dynamic curl creation.
Expand Down
2 changes: 1 addition & 1 deletion src/components/api-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default class ApiRequest extends LitElement {
</div>`
: ''
}
${paramSchema.default || paramSchema.s || paramSchema.allowedValues || paramSchema.pattern
${paramSchema.constraints.length || paramSchema.allowedValues || paramSchema.pattern
? html`
<div class="param-constraint" style="margin-top: 1rem;">
${paramSchema.constraints.length ? html`<span style="font-weight:bold">Constraints: </span>${paramSchema.constraints.join(', ')}<br>` : ''}
Expand Down

0 comments on commit a4ead57

Please sign in to comment.