docs: add jsonschema (#4487)

This commit is contained in:
Ludovic Fernandez 2024-03-12 00:54:03 +01:00 committed by GitHub
parent d18acc5b51
commit 9b5234997f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7023 additions and 0 deletions

View File

@ -65,6 +65,9 @@ jobs:
- name: Update reference files
run: cp .golangci.next.reference.yml .golangci.reference.yml
- name: Update JSON schema files
run: cp jsonschema/golangci.next.jsonschema.json jsonschema/golangci.jsonschema.json
- name: Update information
run: make website_dump_info

View File

@ -0,0 +1,76 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/Configuration",
"$defs": {
"Configuration": {
"properties": {
"version": {
"type": "string",
"description": "golangci-lint version."
},
"name": {
"type": "string",
"description": "Name of the binary."
},
"destination": {
"type": "string",
"description": "Destination is the path to a directory to store the binary."
},
"plugins": {
"items": {
"$ref": "#/$defs/Plugin"
},
"type": "array",
"description": "Plugins information."
}
},
"additionalProperties": false,
"type": "object",
"required": [
"version"
],
"description": "Configuration represents the configuration file."
},
"Plugin": {
"oneOf": [
{
"required": [
"version"
],
"title": "version"
},
{
"required": [
"path"
],
"title": "path"
}
],
"properties": {
"module": {
"type": "string",
"description": "Module name."
},
"import": {
"type": "string",
"description": "Import to use."
},
"version": {
"type": "string",
"description": "Version of the module.\nOnly for module available through a Go proxy."
},
"path": {
"type": "string",
"description": "Path to the local module.\nOnly for local module."
}
},
"additionalProperties": false,
"type": "object",
"required": [
"module"
],
"description": "Plugin represents information about a plugin."
}
},
"description": "mygcl configuration definition file"
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff