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

[FEATURE] Provide a JSON Schema for sumary.json #1414

Open
terenc3 opened this issue Nov 27, 2023 · 0 comments
Open

[FEATURE] Provide a JSON Schema for sumary.json #1414

terenc3 opened this issue Nov 27, 2023 · 0 comments
Assignees

Comments

@terenc3
Copy link

terenc3 commented Nov 27, 2023

Please provide also a JSON Schema for summary.json so that tools like VSCode can provide autocompletion. Currently i use the following which seems to be okayish.

{
    "fileMatch": [
        "summary.json"
    ],
    "schema": {
        "definitions": {
            "entry": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "file": {
                        "type": "string"
                    },
                    "children": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/entry",
                        }
                    }
                }
            }
        },
        "type": "array",
        "items": {
            "$ref": "#/definitions/entry",
        }
    }
}
Related issues

#577

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