The-Nazara-Project / Nazara

A CLI application to create and update machines and VMs in Netbox.
GNU General Public License v3.0
10 stars 2 forks source link

Add device payload validation #72

Open ByteOtter opened 4 months ago

ByteOtter commented 4 months ago

What does this PR change?

This PR adds the trans_validation module which provides logic to validate all request payloads before they are being sent. This is done to catch possible errors with user specified values beforehand and avoid unnecessary network traffic.

Of specific interest are IDs or Names of Device or VM fields, which are themselves API objects and need to be searched for.

Tick the applicable box:

Links

Tracks: #5, #56

Documentation