question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add JsonSchema array support for unique

See original GitHub issue

According to task comment https://github.com/kotest/kotest/issues/2961#issuecomment-1128122006 it should be possible to do

jsonSchema {
  array(unique=true)) { string() } 
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

0reactions
stale[bot]commented, Jun 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make sure item property in array is unique in Json Schema?
So if you want to ensure uniqueness your only option is to have "name" as property keys instead of property values. Share. Share ......
Read more >
array — Understanding JSON Schema 2020-12 documentation
A schema can ensure that each of the items in an array is unique. Simply set the uniqueItems keyword to true . {...
Read more >
Key-based item uniqueness · Issue #22 · json-schema-org ...
This vocab adds the uniqueKeys keyword which is an array of JSON Pointers. Each pointer is applied to each item in an array...
Read more >
How to make a field unique in JSON schema - Microsoft Q&A
Hello, I am studying JSON schema, and I would like to seek your help on how to make a field unique in JSON...
Read more >
Array uniqueItems not able to describe object items with ...
I would like to describe that the objects have some unique (primary) keys (name and surname in this example) based on which the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found