A custom class-validator Decorator to validate if a particular property is object or not
Data Transfer Objects (DTOs) are commonly used for validating request body. Storing metadata as a JSON type column in PostgreSQL is a common and flexible approach, especially when dealing with unstructured or semi-structured data. To validate if the property is an object, we can use the following decorator.