-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into model/add-strategic-scenario
- Loading branch information
Showing
26 changed files
with
318 additions
and
76 deletions.
There are no files selected for viewing
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,66 @@ | ||
# Generated by Django 5.1.4 on 2024-12-18 01:25 | ||
|
||
import core.validators | ||
import ebios_rm.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("ebios_rm", "0006_alter_attackpath_stakeholders"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="ebiosrmstudy", | ||
name="meta", | ||
field=models.JSONField( | ||
default=ebios_rm.models.get_initial_meta, | ||
validators=[ | ||
core.validators.JSONSchemaInstanceValidator( | ||
{ | ||
"$id": "https://ciso-assistant.com/schemas/ebiosrmstudy/meta.schema.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "Metadata of the EBIOS RM Study", | ||
"properties": { | ||
"workshops": { | ||
"description": "A list of workshops, each containing steps", | ||
"items": { | ||
"additionalProperties": False, | ||
"properties": { | ||
"steps": { | ||
"description": "The list of steps in the workshop", | ||
"items": { | ||
"additionalProperties": False, | ||
"properties": { | ||
"status": { | ||
"description": "The current status of the step", | ||
"enum": [ | ||
"to_do", | ||
"in_progress", | ||
"done", | ||
], | ||
"type": "string", | ||
} | ||
}, | ||
"required": ["status"], | ||
"type": "object", | ||
}, | ||
"type": "array", | ||
} | ||
}, | ||
"required": ["steps"], | ||
"type": "object", | ||
}, | ||
"type": "array", | ||
} | ||
}, | ||
"title": "Metadata", | ||
"type": "object", | ||
} | ||
) | ||
], | ||
verbose_name="Metadata", | ||
), | ||
), | ||
] |
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
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
Oops, something went wrong.