We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tapir version: 1.9.6
Scala version: Any
Describe the bug
Schema description for Arrays does not include uniqueItems even if it's created from Set[]. For reference https://json-schema.org/understanding-json-schema/reference/array#uniqueItems
uniqueItems
Set[]
This feature is useful to know API is returning array of unique elements and there is no need to deduplicate.
How to reproduce?
In current version create schema with Set type field (and e.g. enum). Result:
Set
"SetWithEnums" : { "type" : "array", "items" : { "$ref" : "#/$defs/MyEnum" } }
Additional information
This feature is supported in https://github.com/andyglow/scala-jsonschema
The text was updated successfully, but these errors were encountered:
ghik
Successfully merging a pull request may close this issue.
Tapir version: 1.9.6
Scala version: Any
Describe the bug
Schema description for Arrays does not include
uniqueItems
even if it's created fromSet[]
.For reference https://json-schema.org/understanding-json-schema/reference/array#uniqueItems
This feature is useful to know API is returning array of unique elements and there is no need to deduplicate.
How to reproduce?
In current version create schema with
Set
type field (and e.g. enum). Result:Additional information
This feature is supported in https://github.com/andyglow/scala-jsonschema
The text was updated successfully, but these errors were encountered: