79193666

Date: 2024-11-15 19:11:51
Score: 1
Natty:
Report link

you can use AJV to define a schema where the fields property changes based on the type using if then else. eg. if type is GPS, the fields must have lat and lng, and no extra fields are allowed. Similarly for ROOM it should only have temp and humidity

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mayank modi