Skip to content

Add submission.yaml for example submission metadata #160

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

Merged
merged 8 commits into from
Apr 10, 2024
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
13 changes: 11 additions & 2 deletions spec/2023-07-draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,19 @@ The possible subdirectories are:
| run_time_error | Crashes for some test case. May output wrong answers or be too slow for other test cases. | Very rarely useful.

Every file or directory in these directories represents a separate solution.
Same requirements as for submissions with regards to filenames.
It is mandatory to provide at least one accepted solution.

Submissions must read input data from standard input, and write output to standard output.
Metadata about the example submissions are provided in a UTF-8 encoded YAML file named `submissions.yaml` placed directly in the `submissions/` directory.
The top level keys in `submissions.yaml` are globs matching example submissions.
For example, `accepted/*` would match any submission in the `submissions/accepted/` directory.

Each glob maps to a map with keys as defined below specifying metadata for all submissions that is matched by the glob.

| Key | Type | Default | Comment
| ---------- | ----------------------------- | --------------------------------------------------------------------- | -------
| language | String | As determined by file endings given in the [language list](#programs) |
| entrypoint | String | As specified in the [language list](#programs) |
| authors | Person or sequence of persons | | Author(s) of submission(s)

## Input Validators

Expand Down