docs: add jsonschema (#4487)
This commit is contained in:
parent
d18acc5b51
commit
9b5234997f
3
.github/workflows/post-release.yml
vendored
3
.github/workflows/post-release.yml
vendored
@ -65,6 +65,9 @@ jobs:
|
|||||||
- name: Update reference files
|
- name: Update reference files
|
||||||
run: cp .golangci.next.reference.yml .golangci.reference.yml
|
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
|
- name: Update information
|
||||||
run: make website_dump_info
|
run: make website_dump_info
|
||||||
|
|
||||||
|
76
jsonschema/custom-gcl.jsonschema.json
Normal file
76
jsonschema/custom-gcl.jsonschema.json
Normal 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"
|
||||||
|
}
|
3462
jsonschema/golangci.jsonschema.json
Normal file
3462
jsonschema/golangci.jsonschema.json
Normal file
File diff suppressed because it is too large
Load Diff
3482
jsonschema/golangci.next.jsonschema.json
Normal file
3482
jsonschema/golangci.next.jsonschema.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user