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

Auto-format files #427

Merged
merged 1 commit into from
Dec 15, 2023
Merged
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
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",
);