Skip to content

[Bug] Broken JSON Resume Schema Importing #2273

Description

@Shadowfita

Is there an existing issue for this?

  • Yes, I have searched the existing issues and none of them match my problem.

Product Variant

Cloud (https://rxresu.me)

Current Behavior

Importing a valid JSON resume results in an error on both self-hosted and cloud, with this response:

{
    "issues": [
        {
            "code": "too_small",
            "minimum": 1,
            "type": "string",
            "inclusive": true,
            "exact": false,
            "message": "String must contain at least 1 character(s)",
            "path": [
                "data",
                "sections",
                "experience",
                "items",
                0,
                "company"
            ]
        },
        {
            "code": "too_small",
            "minimum": 1,
            "type": "string",
            "inclusive": true,
            "exact": false,
            "message": "String must contain at least 1 character(s)",
            "path": [
                "data",
                "sections",
                "experience",
                "items",
                1,
                "company"
            ]
        },
        {
            "code": "too_small",
            "minimum": 1,
            "type": "string",
            "inclusive": true,
            "exact": false,
            "message": "String must contain at least 1 character(s)",
            "path": [
                "data",
                "sections",
                "experience",
                "items",
                2,
                "company"
            ]
        },
        {
            "code": "too_small",
            "minimum": 1,
            "type": "string",
            "inclusive": true,
            "exact": false,
            "message": "String must contain at least 1 character(s)",
            "path": [
                "data",
                "sections",
                "experience",
                "items",
                3,
                "company"
            ]
        },
        {
            "code": "too_small",
            "minimum": 1,
            "type": "string",
            "inclusive": true,
            "exact": false,
            "message": "String must contain at least 1 character(s)",
            "path": [
                "data",
                "sections",
                "experience",
                "items",
                4,
                "company"
            ]
        }
    ],
    "name": "ZodError"
}

Expected Behavior

The importer/validator should recognise the accurate schema and handle the import accordingly.

Steps To Reproduce

Import a valid JSON Resume.

What browsers are you seeing the problem on?

Safari, Microsoft Edge, Chrome, Firefox

What template are you using?

None

Anything else?

Previous issue was opened in 2023 #1598 but was closed with no action. If there is no plan to support the JSON Resume schema, it should be removed as an option.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstatus: needs triageWaiting for maintainer triagev4Issues related to the previous version

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions