superfaceai / one-sdk-js

1️⃣ One Node.js SDK for all the APIs you want to integrate with
https://superface.ai
MIT License
46 stars 3 forks source link

Input validation to work with None values #334

Closed freaz closed 1 year ago

freaz commented 1 year ago

Description

This adds proper validation of input and it emulates inputs based on presence in profile.

This is temporary fix as the best is to wrap input structure to NoneNull already in parser. Which I will do in next iteration.

Also I needed to change passed values in one test which did pass object even though nothing should be passed. Exactly we are doing this change. To make clearer what is validated.

Motivation and Context

Types of changes

Checklist: