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

Fix validation issues in schema defs #376

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions calm/draft/2024-08/meta/control-requirement.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@
"$id": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/draft/2024-08/meta/control-requirement.json",
"title": "Common Architecture Language Model Control Requirement",
"description": "Schema for defining control requirements within the Common Architecture Language Model.",
"type": "object",
"properties": {
"control-id": {
"type": "string",
"description": "The unique identifier of this control, which has the potential to be used for linking evidence"
},
"name": {
"type": "string",
"description": "The name of the control requirement that provides contextual meaning within a given domain"
},
"description": {
"type": "string",
"description": "A more detailed description of the control and information on what a developer needs to consider"
}
"control-id": {
"type": "string",
"description": "The unique identifier of this control, which has the potential to be used for linking evidence"
},
"name": {
"type": "string",
"description": "The name of the control requirement that provides contextual meaning within a given domain"
},
"required": [
"control-id",
Expand Down
34 changes: 16 additions & 18 deletions calm/draft/2024-08/meta/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,24 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/draft/2024-08/meta/core.json",
"title": "Common Architecture Language Model (CALM) Vocab",
"properties": {
"nodes": {
"type": "array",
"items": {
"$ref": "#/defs/node"
}
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/defs/relationship"
}
},
"metadata": {
"$ref": "#/defs/metadata"
},
"controls": {
"$ref": "control.json#/defs/controls"
"nodes": {
"type": "array",
"items": {
"$ref": "#/defs/node"
}
},
"relationships": {
"type": "array",
"items": {
"$ref": "#/defs/relationship"
}
},
"metadata": {
"$ref": "#/defs/metadata"
},
"controls": {
"$ref": "control.json#/defs/controls"
},
"defs": {
"node": {
"type": "object",
Expand Down
37 changes: 17 additions & 20 deletions calm/draft/2024-08/meta/evidence.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,25 @@
"$id": "https://raw.githubusercontent.com/finos/architecture-as-code/main/calm/draft/2024-08/meta/evidence.json",
"title": "Common Architecture Language Model Evidence",
"description": "Schema for defining evidence for control requirements within the Common Architecture Language Model.",
"type": "object",
"properties": {
"evidence": {
"type": "object",
"properties": {
"unique-id": {
"type": "string",
"description": "CALM unique-id for future linking and uniquely defining this evidence"
},
"evidence-paths": {
"type": "array",
"description": "Paths to the evidence relating to a specific control",
"items": {
"type": "string"
}
},
"control-configuration-url": {
"type": "string",
"description": "URI for the control configuration this evidence relates to"
"evidence": {
"type": "object",
"properties": {
"unique-id": {
"type": "string",
"description": "CALM unique-id for future linking and uniquely defining this evidence"
},
"evidence-paths": {
"type": "array",
"description": "Paths to the evidence relating to a specific control",
"items": {
"type": "string"
}
},
"required":[
"control-configuration-url": {
"type": "string",
"description": "URI for the control configuration this evidence relates to"
},
"required": [
"unique-id",
"evidence-paths",
"control-configuration-url"
Expand Down
Loading