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 · 0 comments
Open

Schema generated for default empty arrays is not valid #108

kuisathaverat opened this issue Jul 4, 2024 · 0 comments
Assignees
Labels

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": {}
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants