Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Add validation of domain objects #18

@marcusolsson

Description

@marcusolsson

The current domain validation is a bit lacking. Let's discuss some alternatives in this issue:

The simplest way would be to go all stdlib and just extract the validation into its own function:

func Validate(c Cargo) error

It could be interesting to take a closer look at validator: https://github.com/go-playground/validator

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions