Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PID record validation #10

Open
4 tasks
ghost opened this issue Aug 4, 2023 · 0 comments
Open
4 tasks

PID record validation #10

ghost opened this issue Aug 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Aug 4, 2023

Motivation

It would be nice to show whether the PID record is 'valid'. To do this there are two methods:

  1. 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.

  2. 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
@ghost ghost added the enhancement New feature or request label Aug 4, 2023
@ghost ghost self-assigned this Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants