Skip to content

Support OAS uniqueItems property as Attribute Validator #26

Closed
@austinvalle

Description

@austinvalle

Reference: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-uniqueitems

When uniqueitems is defined with an array type, should generate the following specification:

"validators": [
  {
    "custom": {
      "import": "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator",
      "schema_definition": "listvalidator.UniqueValues()"
    }
  }
]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions