Skip to content

'name' field in legacy specification is unclear #425

Open
@Zazmuz

Description

@Zazmuz

The 'name' field in problem.yaml in the legacy specification is unclear.

It is stated as "The name of the problem in one of the languages for which a problem statement exists.".
Does this mean it's a global name across all languages? Does it mean it should default to English like in the 2023-07 format?

The only time the 'name' field is currently used in problemtools is in an "# Ugly backwards compatibility hack", setting it as the name for language empty string, '' and in all other cases the name is assigned to language code, taken from the problem-statement names.

I don't know if it makes sense to change it to be more similar to the 2023-07 format, maybe instead of defaulting to English 'en' if only a string is given, instead keeping the backwards compatible hack of setting the empty string language code '' to the name (I dont know what it is a hack for), but allowing for a map from language code to name like in 2023-07. This or simply dropping the hack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions