Skip to content

Commit 6378fc4

Browse files
committed
fixes #910 - show uniqueItems constraint for arrays in Schema
1 parent b030be7 commit 6378fc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/schema-utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,9 @@ function generateMarkdownForArrayAndObjectDescription(schema, level = 0) {
700700
if (schema.maxItems) {
701701
markdown = `${markdown} <b>Max Items:</b> ${schema.maxItems}`;
702702
}
703+
if (schema.uniqueItems === true) {
704+
markdown = `${markdown} <b>Must have unique items</b>`;
705+
}
703706
if (level > 0 && schema.items?.description) {
704707
let itemsMarkdown = '';
705708
if (schema.items.minProperties) {

0 commit comments

Comments
 (0)