TheJumpCloud / jcapi-powershell

MIT License
10 stars 3 forks source link

Validate non-null json #76

Closed jworkmanjc closed 4 months ago

jworkmanjc commented 4 months ago

Issues

What does this solve?

When previously generated versions of the module encountered what was known to be a json response from an endpoint, the functions would convert that response from json without validating the response was non-null. This version of the tool now validates that the response is non-null before attempting to convert the response.

Previous versions of the module work error when the response was null. Now, the functions should just return nothing if the requested data does not exist.

Is there anything particularly tricky?

How should this be tested?

Screenshots

Previous response: Screenshot 2024-06-17 at 1 27 28 PM

expected result: Screenshot 2024-06-17 at 1 27 50 PM