forked from trustification/trustify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loader for the CWE Catalog (.xml.zip)
Make format-detection more less-nested. - Try'em all in-order until we find a match Wire up endpoints for /api/v1/weakness and /api/v1/weakness/{id} todo: an importer
- Loading branch information
Bob McWhirter
committed
Aug 27, 2024
1 parent
b7c0398
commit 2f4268f
Showing
24 changed files
with
977 additions
and
65 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use sea_orm::entity::prelude::*; | ||
|
||
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] | ||
#[sea_orm(table_name = "weakness")] | ||
pub struct Model { | ||
#[sea_orm(primary_key)] | ||
pub id: String, | ||
pub description: Option<String>, | ||
pub extended_description: Option<String>, | ||
pub child_of: Option<Vec<String>>, | ||
pub parent_of: Option<Vec<String>>, | ||
pub starts_with: Option<Vec<String>>, | ||
pub can_follow: Option<Vec<String>>, | ||
pub can_precede: Option<Vec<String>>, | ||
pub required_by: Option<Vec<String>>, | ||
pub requires: Option<Vec<String>>, | ||
pub can_also_be: Option<Vec<String>>, | ||
pub peer_of: Option<Vec<String>>, | ||
} | ||
|
||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] | ||
pub enum Relation {} | ||
|
||
impl ActiveModelBehavior for ActiveModel {} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.