Skip to content
New issue

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

Validate object containing object for uniqueness #387

Open
ktn05 opened this issue May 8, 2023 · 0 comments
Open

Validate object containing object for uniqueness #387

ktn05 opened this issue May 8, 2023 · 0 comments

Comments

@ktn05
Copy link

ktn05 commented May 8, 2023

Hi,

I have the example like below,

"obj2": 
{
    {
      "prop1": "baz", "prop2": 999
     },
    {
      "prop1": "qux", "prop2": 555
     }
 }

i.e object containing objects, now in this i need 'prop1' field to have unique values.

Note:: I know this is possible when it is array of object, but i dont think there is any solution for the same case when object containing objects.

@ktn05 ktn05 changed the title How to validate object containing object for uniqueness Validate object containing object for uniqueness May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant