Skip to content

Spin off validation logic to separate repository #106

@pvdbosch

Description

@pvdbosch

As was mentioned in belgif/rest-guide#169, there are some concerns of combining the validation logic of (business) values with the problem library.

I'd suggest to spin this off to a separate project because:

  • the lifecycle of validation library depends on evolution of business types, not only on technical REST API concerns
  • it allows to work towards consolidation with smalsutils-validation
    • we can work on resolving differences while keeping rest-problem-java stable
    • it's very hard to document that a (documented) module of rest-problem-java shouldn't be used in Smals

Some differences with the smalsutils-validation library:

  • Smals library uses Bean Validation, also usable outside of a REST context
  • Java implementation is kept in sync with validation logic in another Angular validation library
  • there are some other validations (like VatNumber country-specific formats), probably some divergent ones as well
  • translations of validation errors (useful when library is used in UIs)

Ideally, we could have a single validation logic for Java and integrate with different ways of using it (programmatic validation, bean validation, inside or outside a REST API context, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions