Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema generated for default empty arrays is not valid #108

Open
kuisathaverat opened this issue Jul 4, 2024 · 1 comment
Open

Schema generated for default empty arrays is not valid #108

kuisathaverat opened this issue Jul 4, 2024 · 1 comment
Assignees

Comments

@kuisathaverat
Copy link
Contributor

kuisathaverat commented Jul 4, 2024

In the case you pass the type [array] the schema has the default value "[]" that is a String not an Array

## @section tittle
## @param features [array] list of features to enable
features: []
{
    "title": "Chart Values",
    "type": "object",
    "properties": {
        "features": {
            "type": "array",
            "description": "list of features to enable",
            "default": "[]",
            "items": {
                "type": "string"
            }
        }
    }
}

If you do not set the type, the default value in the schema is correct, but items does not have type

## @section tittle
## @param features
features: []
{
    "title": "Chart Values",
    "type": "object",
    "properties": {
        "features": {
            "type": "array",
            "description": "",
            "default": [],
            "items": {}
        }
    }
}
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants