-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
141 additions
and
1 deletion.
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
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,139 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://designer.antmicro.com/project.schema.json", | ||
"title": "Project", | ||
"description": "Project definition for System Designer", | ||
"type": "object", | ||
"properties": { | ||
"description": { | ||
"description": "Project description", | ||
"type": "string" | ||
}, | ||
"company": { | ||
"description": "The project's customer", | ||
"type": "string" | ||
}, | ||
"docs": { | ||
"description": "Project documentation URL", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"research": { | ||
"description": "Is this a research project", | ||
"type": "boolean" | ||
}, | ||
"devices": { | ||
"description": "Devices in this project", | ||
"type": "object", | ||
"patternProperties": { | ||
"^.*$": { | ||
"anyOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"description": "Device type", | ||
"type": "string" | ||
}, | ||
"contains": { | ||
"description": "Other devices contained in this one", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"description": { | ||
"description": "Device description", | ||
"type": "string" | ||
}, | ||
"soc": { | ||
"description": "Soc contained in device", | ||
"type": "string" | ||
}, | ||
"hw_repo": { | ||
"description": "Git repository for device", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"image": { | ||
"description": "Device image", | ||
"type": "string", | ||
"format": "uri" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"software": { | ||
"description": "Software in this project", | ||
"type": "object", | ||
"patternProperties": { | ||
"^.*$": { | ||
"type": "object", | ||
"properties": { | ||
"what": { | ||
"description": "Software type (determines icon, defaults to 'other')", | ||
"type": "string", | ||
"enum": ["kenning", "linux", "openroad", "other", "rdfm", "renode", "u-boot", "xls", "zephyr"] | ||
}, | ||
"description": { | ||
"description": "Device description", | ||
"type": "string" | ||
}, | ||
"repos": { | ||
"description": "Repositories for this software", | ||
"type": "object", | ||
"patternProperties": { | ||
"^.*$": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"repo": { | ||
"description": "Repository for this software", | ||
"type": "string" | ||
}, | ||
"targets": { | ||
"description": "Devices this software targets", | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"requirements": { | ||
"description": "Project requirements", | ||
"type": "object", | ||
"patternProperties": { | ||
"^.*$": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"allocations": { | ||
"description": "Project allocations", | ||
"type": "object", | ||
"patternProperties": { | ||
"^SoW_[0-9]+$": { | ||
"type": "object", | ||
"patternProperties": { | ||
"^[0-9]{4}-w[0-9]{2}$": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": ["description", "company"] | ||
} |