Skip to content

Commit 319dbd0

Browse files
committed
chore: description
1 parent c3094e2 commit 319dbd0

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

config/clients.schema.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,32 +54,41 @@
5454
}
5555
]
5656
},
57-
"folder": { "type": "string" },
58-
"gitRepoId": { "type": "string" },
59-
"packageVersion": { "type": "string" },
60-
"modelFolder": { "type": "string" },
61-
"apiFolder": { "type": "string" },
62-
"dockerImage": { "type": "string" },
57+
"folder": { "type": "string", "description": "the output folder of your client, usually matching the github repository name, e.g. clients/algoliasearch-client-dart" },
58+
"gitRepoId": { "type": "string", "description": "the github repository name, without the organization or username that owns it, e.g. algoliasearch-client-php"},
59+
"packageVersion": { "type": "string", "description": "the version to publish the packages with, it must be semver compatible, e.g. 1.2.3" },
60+
"modelFolder": { "type": "string", "description": "the models folder, e.g. algoliasearch/models"},
61+
"apiFolder": { "type": "string", "description": "the api folder, e.g. lib/src"},
62+
"dockerImage": {
63+
"type": "string",
64+
"description": "whether your client requires a custom docker image with specific needs, most clients require 'apic_base'",
65+
"enum": [
66+
"apic_base",
67+
"apic_ruby",
68+
"apic_swift"
69+
]
70+
},
6371
"tests": {
6472
"type": "object",
6573
"properties": {
66-
"extension": { "type": "string" },
67-
"outputFolder": { "type": "string" }
74+
"extension": { "type": "string", "description": "the test file extension, e.g. .test.ts" },
75+
"outputFolder": { "type": "string", "description": "the test output folder, e.g. src/generated" }
6876
},
6977
"required": ["extension", "outputFolder"],
7078
"additionalProperties": false
7179
},
7280
"snippets": {
7381
"type": "object",
7482
"properties": {
75-
"extension": { "type": "string" },
76-
"outputFolder": { "type": "string" }
83+
"extension": { "type": "string", "description": "the snippet file extension, e.g. .cs" },
84+
"outputFolder": { "type": "string", "description": "the snippet output folder, e.g. src" }
7785
},
7886
"required": ["extension", "outputFolder"],
7987
"additionalProperties": false
8088
},
8189
"supportedVersions": {
8290
"type": "array",
91+
"description": "hints the CI on what matrix to generate for this client, this must be language specific versions, e.g. versions of node",
8392
"items": { "type": "string" }
8493
}
8594
},

0 commit comments

Comments
 (0)