sasjs / adapter

An adapter for bidirectional SAS® <-> Javascript communication
https://adapter.sasjs.io
MIT License
39 stars 3 forks source link

sasjs request should perform validations on the input data object #276

Closed medjedovicm closed 3 years ago

medjedovicm commented 3 years ago

For example:

"indata": [
  [{"data": "value"}]
]
allanbowe commented 3 years ago

To clarify - the example above, if provided to the adapter, should be immediately rejected as it is not a valid table structure (array of objects where each object represents one table row).

If the table array is populated with anything other than objects, a console message should be printed explaining why the value is rejected, and the request rejected.