From 6bc201391d9431e789d75d1442bd6f6e4dfe0714 Mon Sep 17 00:00:00 2001 From: Jurnell Cockhren Date: Tue, 3 Dec 2024 15:37:05 -0600 Subject: [PATCH 1/2] initial schema for a self contained schema for GAI profile attestation --- schemas/aisic/gai-profile.schema.json | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 schemas/aisic/gai-profile.schema.json diff --git a/schemas/aisic/gai-profile.schema.json b/schemas/aisic/gai-profile.schema.json new file mode 100644 index 0000000..1f676af --- /dev/null +++ b/schemas/aisic/gai-profile.schema.json @@ -0,0 +1,49 @@ +{ + "$id": "https://raw.githubusercontent.com/civichacker/love-language/master/schemas/aisic/gai-profile.schema.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "gai-profile", + "description": "This schema reflects a data specification for voluntary attestation of a GAI profile template based on NIST 600-1.", + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "enum": ["MAP", "GOVERN", "MEASURE", "MANAGE"], + "description": "GAI risk profile category type." + }, + "title": { + "type": "string", + "description": "the specific AI RMF subcategory title" + }, + "category": { + "type": "string", + "description": "AI RMF category description" + }, + "description": { + "type": "string", + "description": "long form description of the sub category of suggested actions" + }, + "section_actions": { + "type": "array", + "suggested_actions": { "$ref": "#/defs/action"}, + "$defs": { + "action": { + "type": "object", + "description": "", + "properties": { + "id": { "type": "string" }, + "action_description": { "type": "string" }, + "risks": { "type": "array", "contains": { "type": "string" } } + } + } + }, + "description": "list of suggested action" + }, + "ai_actor_tasks": { + "type": "array", + "contains": { + "type": "string" + }, + "description": "A list of relevant AT Actor Tasks for a given subfunction" + } + } +} From 3db8a485426002d8762f00b6bc000fe882337cd2 Mon Sep 17 00:00:00 2001 From: Jurnell Cockhren Date: Thu, 12 Dec 2024 23:02:13 -0600 Subject: [PATCH 2/2] use items keyword for defining objects within the array --- schemas/aisic/gai-profile.schema.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/schemas/aisic/gai-profile.schema.json b/schemas/aisic/gai-profile.schema.json index 1f676af..226d06b 100644 --- a/schemas/aisic/gai-profile.schema.json +++ b/schemas/aisic/gai-profile.schema.json @@ -24,16 +24,12 @@ }, "section_actions": { "type": "array", - "suggested_actions": { "$ref": "#/defs/action"}, - "$defs": { - "action": { - "type": "object", - "description": "", - "properties": { + "items": { + "type": "object", + "properties": { "id": { "type": "string" }, "action_description": { "type": "string" }, "risks": { "type": "array", "contains": { "type": "string" } } - } } }, "description": "list of suggested action"