{"id":30997076,"url":"https://github.com/mduesterhoeft/bean-validation-container-constraints","last_synced_at":"2025-09-24T00:47:24.911Z","repository":{"id":55119900,"uuid":"139170044","full_name":"mduesterhoeft/bean-validation-container-constraints","owner":"mduesterhoeft","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-08T15:58:18.000Z","size":55,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-03T04:07:32.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stackoverflow.com/questions/51085138/kotlin-data-class-and-bean-validation-with-container-element-constraints","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mduesterhoeft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-29T16:04:23.000Z","updated_at":"2022-11-30T16:10:03.000Z","dependencies_parsed_at":"2022-08-14T12:31:31.177Z","dependency_job_id":null,"html_url":"https://github.com/mduesterhoeft/bean-validation-container-constraints","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/mduesterhoeft/bean-validation-container-constraints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mduesterhoeft%2Fbean-validation-container-constraints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mduesterhoeft%2Fbean-validation-container-constraints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mduesterhoeft%2Fbean-validation-container-constraints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mduesterhoeft%2Fbean-validation-container-constraints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mduesterhoeft","download_url":"https://codeload.github.com/mduesterhoeft/bean-validation-container-constraints/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mduesterhoeft%2Fbean-validation-container-constraints/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274886160,"owners_count":25368224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-12T22:27:24.882Z","updated_at":"2025-09-24T00:47:19.882Z","avatar_url":"https://github.com/mduesterhoeft.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo is a sample to reproduce the issue described here - https://stackoverflow.com/questions/51085138/kotlin-data-class-and-bean-validation-with-container-element-constraints\n\nThe test in [BeanValidationContainerConstraintsApplicationTests](src/test/kotlin/com/example/beanvalidationcontainerconstraints/BeanValidationContainerConstraintsApplicationTests.kt) fails because it expects two validation errors:\n\n- `name` is empty\n- the map value in `someMap`\n \n```kotlin\ndata class SamplePayload(\n    @field:NotEmpty val name: String,\n    @field:NotEmpty val someMap: Map\u003cString, @NotEmpty String\u003e)\n```\n\nThe `@NotEmpty` annotation on the **value type** of the map `someMap` is not considered.\n\nSee https://beanvalidation.org/2.0/spec/#constraintdeclarationvalidationprocess-containerelementconstraints.\n\nRun the test with:\n\n```\n./gradlew test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmduesterhoeft%2Fbean-validation-container-constraints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmduesterhoeft%2Fbean-validation-container-constraints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmduesterhoeft%2Fbean-validation-container-constraints/lists"}