Types
Understanding Types
All data inside of WarmHub Repos has a type. Types are like templates or blueprints that define the structure and attributes of Assertions and Articles in your repo. Think of them as a way to consistently describe the "kinds of things" in your repo. For Assertions, types specify what properties (like evidence or claims) an assertion can or must have. For Articles, types help define the "things" being talked about (e.g., a software library, a policy document, etc.). Think of types as your way of setting the rules for how information should be structured and validated in your repo. They ensure clarity, consistency, and reusability, making it easier to share and build trust across repositories while maintaining flexibility for your domain-specific needs.
Adding Types
There are two main ways to add types to your Repo:
1. Importing Types
Importing Types From Other Repos - Importing types that have already been created in another repo, is the quickest way to set up a repo. This is very useful if you, or someone else, has already set up a repo that contains the types that you need. Additionally, adhering to well established and adopted types can help your assertions be composable with existing assertions, which will further help build trust.
For more information on importing types from other repos, see: Importing Types From Other Repos
2. Creating Types
Create Types - If there are no existing types that work for you, you can build your own types from scratch with whatever structure you need, to capture your data.
For more information on creating types, see: Creating Types
Last updated