Skip to content

Commit

Permalink
Merge pull request #441 from M-L-D-H/tsb
Browse files Browse the repository at this point in the history
Housekeeping
  • Loading branch information
theodore-s-beers authored Jan 14, 2024
2 parents 956a03b + de3e5f9 commit c0f4497
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
58 changes: 29 additions & 29 deletions SCHEMATA/project_schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const projectSchema = z
z.literal(""),
]),
})
.strict()
.strict(),
)
.describe("List of active periods (YYYY-MM-DD)"),
maintained: z
Expand Down Expand Up @@ -125,13 +125,13 @@ export const projectSchema = z
})
.strict(),
})
.strict()
.strict(),
)
.describe("Location(s) of the project"),
lang: z
.array(z.string().regex(isoCode))
.describe(
"List of languages used in the project's output (ISO-639-3 codes)"
"List of languages used in the project's output (ISO-639-3 codes)",
),
related_institutions: z
.array(
Expand All @@ -150,10 +150,10 @@ export const projectSchema = z
.array(z.string().url())
.describe("List of institutional website URLs"),
})
.strict()
.strict(),
)
.describe(
"Universities or research organizations which host the project"
"Universities or research organizations which host the project",
),
related_entities: z
.array(
Expand All @@ -168,7 +168,7 @@ export const projectSchema = z
title: z.string(),
uuid: z.string().uuid(),
})
.strict()
.strict(),
)
.describe("Entities that are related to the project"),
contacts: z
Expand All @@ -186,29 +186,29 @@ export const projectSchema = z
roles: z
.array(z.enum(rolesEnum))
.describe(
"Roles held by the contact (following the CRediT taxonomy)"
"Roles held by the contact (following the CRediT taxonomy)",
),
websites: z
.array(z.string().url())
.describe(
"List of institutional and/or personal website URLs"
"List of institutional and/or personal website URLs",
),
})
.strict()
.strict(),
)
.describe("Main contact(s) of the project"),
research_data: z
.object({
lang: z
.array(z.string().regex(isoCode))
.describe(
"List of languages of the project's research data (ISO-639-3 codes)"
"List of languages of the project's research data (ISO-639-3 codes)",
),
sustainability_plan: z
.boolean()
.nullable()
.describe(
"Is there a plan to ensure the sustainability and reusability of the project's research data and output?"
"Is there a plan to ensure the sustainability and reusability of the project's research data and output?",
),
publications: z
.object({
Expand All @@ -218,15 +218,15 @@ export const projectSchema = z
.min(0)
.max(100)
.describe(
"Approximate percentage of publications that are available open-access"
"Approximate percentage of publications that are available open-access",
),
licensing: z
.array(z.string())
.describe("List of licenses that apply to publications"),
})
.strict()
.describe(
"Information about publication accessibility and licensing"
"Information about publication accessibility and licensing",
),
data: z
.object({
Expand All @@ -239,21 +239,21 @@ export const projectSchema = z
licensing: z
.array(z.string())
.describe(
"List of licenses that apply to the datatype"
"List of licenses that apply to the datatype",
),
open_access: z
.number()
.int()
.min(0)
.max(100)
.describe(
"Approximate percentage of this datatype available open-access"
"Approximate percentage of this datatype available open-access",
),
})
.strict()
.strict(),
)
.describe(
"List of datatypes contained in the project's research data"
"List of datatypes contained in the project's research data",
),
repositories: z
.array(
Expand All @@ -265,21 +265,21 @@ export const projectSchema = z
accessibility: z
.enum(["private", "public"])
.describe(
"Repository accessibility (private | public)"
"Repository accessibility (private | public)",
),
ref: z
.array(z.string().url())
.describe("List of repository URLs (if applicable)"),
licensing: z
.array(z.string())
.describe(
"List of licenses that apply to the repository"
"List of licenses that apply to the repository",
),
description: z
.string()
.describe("Description of repository contents"),
})
.strict()
.strict(),
)
.describe("Information about local or remote repositories"),
})
Expand All @@ -295,16 +295,16 @@ export const projectSchema = z
description: z
.string()
.describe(
"Description of the policy, e.g. 'Research Data Policy'"
"Description of the policy, e.g. 'Research Data Policy'",
),
ref: z
.array(z.string().url())
.describe("List of URLs relevant to the policy"),
})
.strict()
.strict(),
)
.describe(
"Information about policies (e.g. RDP, RDM, OA) applicable to the project and its publications and data"
"Information about policies (e.g. RDP, RDM, OA) applicable to the project and its publications and data",
),
stack: z
.object({
Expand All @@ -320,7 +320,7 @@ export const projectSchema = z
languages: z
.array(z.string())
.describe(
"List of programming languages (defined broadly) in use"
"List of programming languages (defined broadly) in use",
),
tools: z
.array(
Expand All @@ -336,10 +336,10 @@ export const projectSchema = z
description: z
.string()
.describe(
"Description of the tool's purpose in the context of the project"
"Description of the tool's purpose in the context of the project",
),
})
.strict()
.strict(),
)
.describe("List of tools that are used in the project"),
})
Expand All @@ -350,8 +350,8 @@ export const projectSchema = z
z
.enum(keywordsEnum)
.describe(
"Use lowercase letters, with underscore as a separator where needed"
)
"Use lowercase letters, with underscore as a separator where needed",
),
)
.describe("List of keywords to describe the project"),
comment: z
Expand All @@ -363,5 +363,5 @@ export const projectSchema = z
})
.strict()
.describe(
"Project that deals in some way with the digital humanities, research data management, non-Latin scripts, or infrastructure"
"Project that deals in some way with the digital humanities, research data management, non-Latin scripts, or infrastructure",
);
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"test": "deno test --allow-read TESTS/schema_tests.ts"
},
"devDependencies": {
"prettier": "^3.1.1"
"prettier": "^3.2.2"
}
}

0 comments on commit c0f4497

Please sign in to comment.