Skip to content

Add bytes support for source_code in Submission #12

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy