Skip to content

Add bytes support for source_code in Submission #12

Closed
@loop0919

Description

@loop0919

Is your feature request related to a problem? Please describe.
Currently, source_code in Submisson only accepts str. When attempting to use Executable by uploading bytes, it is blocked by pydantic validation. This limitation causes issues for scenarios where bytes are required.

Describe the solution you'd like
Allow source_code in Submisson to also accept bytes in addition to str. Modifying the field definition to source_code: Optional[str] = Field(default=None, repr=True) seems to resolve the issue and enable the desired functionality.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions