ordercloud-api / ordercloud-seed

CLI and library to Import and export serialized representations of full marketplaces
MIT License
9 stars 9 forks source link

Provide more details on validation errors #24

Open oliverheywood451 opened 1 year ago

oliverheywood451 commented 1 year ago

To understand the motivation here, imagine a UI where a marketplace is built by dragging and dropping OC resources and connecting them up visually in a diagram. Maybe assignments are arrows. This library could help support such a tool by providing insight into what diagrams are valid or invalid. But it would have to provide very specific, useful info on where any problems lie.

Currently an error is simply a string. It needs to be a strongly-typed object.