- "required": ["project", "role"],
- "additionalProperties": False
+ "minItems": 1
+}
+project_role_mappings_optional = {
+ "title": "list of projects/roles or projects only",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "project": shortname_schema,
+ "role": shortname_schema
+ },
+ "required": ["project"],
+ "additionalProperties": False
+ },
+ "minItems": 1