canonical / identity-platform-admin-ui

Admin UI for the Canonical identity broker and identity provider solution
Other
6 stars 4 forks source link

IAM 776 Implement validation for `groups`, `schemas`, `identities` handlers #275

Closed BarcoMasile closed 5 months ago

BarcoMasile commented 5 months ago

Description

This PR introduces the first implementation for the validation layer. Validation is delegated to each validatingFunction that handlers register through the RegisterValidation method. The process is run inside one middleware provided by the ValidationRegistry object.

Example:

  groupsAPI := groups.NewAPI(/*...*/)
  groupsAPI.RegisterValidation(vldtr)

Changes

Missing

Tests for new validation functions for handlers.