class-validator-extended
                                
                                
                                
                                    class-validator-extended copied to clipboard
                            
                            
                            
                        Add mapIncludesKeys decorator
Description
This contribution introduces a function to check if a given value is a Map and includes only the required keys without any additional ones. This ensures that the Map strictly conforms to the expected set of keys.
Motivation
In certain applications, it is crucial to validate that a Map contains precisely the set of keys that are expected, without any extraneous keys. This helps to maintain data integrity and ensures that the Map meets specific requirements.
Changes
- Added a function to verify that a 
Mapcontains only the required keys. - The function will return 
trueif theMapcontains exactly the required keys and no others; otherwise, it will returnfalse.