Skip to content

Bad type for files in submission of a reference solution #535

Open

Description

@foxik

I am trying to submit a reference solution to ReCodEx via CLI and it fails because of the type annotation of files argument in the swagger:

api/docs/swagger.yaml

Lines 3781 to 3784 in 4db8af8

files:
description: 'Files of the reference solution'
type: string
nullable: true

When I manually changed it to follow the type for files in pre-submit:

api/docs/swagger.yaml

Lines 3743 to 3747 in 4db8af8

files:
description: ''
type: array
items: { }
nullable: false

then the submit from CLI worked.

Claude convinced me that the swagger is generated wrongly because of the type of files in the line below

#[Post("files", new VMixed(), "Files of the reference solution", nullable: true)]

which should be VArray as in pre-submit:

but I am leaving that for you to judge.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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