-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Motivation
It would be nice to show whether the PID record is 'valid'. To do this there are two methods:
-
Kernel information profiles:
A kernel information profile (KIP) defines a basic schema of a PID record. It does that by declaring mandatory/optional properties and the cardinality (How often is it repeatable?), name, type and a description of these properties. KIPs are often domain or use case specific. This gives the user useful information regarding the types and values in a PID record in a specific use case. -
Regex
When resolving a data type you can (usually) resolve this type to a more generic type (eg. dateCreated --> date-time-rfc3339) which sometime has a regex in its record. This implies that the same regex is also applicable to the data type that you were originally resolving and a value in the PID record matching this type must match this record.
Goals
- Implement validation based on the kernel information profile
- Implement validation based on type regex
- Show user-friendly warning or error
- Enable user to deactivate validation and warning