|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "type": "object", |
| 4 | + "additionalProperties": { |
| 5 | + "type": "object", |
| 6 | + "properties": { |
| 7 | + "clients": { |
| 8 | + "oneOf": [ |
| 9 | + { |
| 10 | + "type": "array", |
| 11 | + "items": { |
| 12 | + "type": "string", |
| 13 | + "enum": [ |
| 14 | + "abtesting", |
| 15 | + "abtesting-v3", |
| 16 | + "analytics", |
| 17 | + "composition", |
| 18 | + "ingestion", |
| 19 | + "insights", |
| 20 | + "monitoring", |
| 21 | + "personalization", |
| 22 | + "query-suggestions", |
| 23 | + "recommend", |
| 24 | + "search" |
| 25 | + ] |
| 26 | + } |
| 27 | + }, |
| 28 | + { |
| 29 | + "type": "array", |
| 30 | + "items": { |
| 31 | + "type": "object", |
| 32 | + "properties": { |
| 33 | + "name": { |
| 34 | + "type": "string", |
| 35 | + "enum": [ |
| 36 | + "algoliasearch", |
| 37 | + "abtesting", |
| 38 | + "abtesting-v3", |
| 39 | + "analytics", |
| 40 | + "composition", |
| 41 | + "composition-full", |
| 42 | + "ingestion", |
| 43 | + "insights", |
| 44 | + "monitoring", |
| 45 | + "personalization", |
| 46 | + "query-suggestions", |
| 47 | + "recommend", |
| 48 | + "search" |
| 49 | + ] |
| 50 | + }, |
| 51 | + "output": { "type": "string" }, |
| 52 | + "isStandaloneClient": { "type": "boolean", "description": "this property only matters for the javascript client, when `true`, your package will be built as a standalone client and not be part of `algoliasearch` directly. This is recommended for non stable APIs." }, |
| 53 | + "clientName": { "type": "string", "description": "when defined, the name of the generated instance of the client will be hardcoded, otherwise it defaults to the `spec` name, e.g. search -> searchClient" } |
| 54 | + }, |
| 55 | + "required": ["name", "output"], |
| 56 | + "additionalProperties": false |
| 57 | + } |
| 58 | + } |
| 59 | + ] |
| 60 | + }, |
| 61 | + "folder": { "type": "string", "description": "the output folder of your client, usually matching the github repository name, e.g. clients/algoliasearch-client-dart" }, |
| 62 | + "gitRepoId": { "type": "string", "description": "the github repository name, without the organization or username that owns it, e.g. algoliasearch-client-php"}, |
| 63 | + "packageVersion": { "type": "string", "description": "the version to publish the packages with, it must be semver compatible, e.g. 1.2.3" }, |
| 64 | + "modelFolder": { "type": "string", "description": "the models folder, e.g. algoliasearch/models"}, |
| 65 | + "apiFolder": { "type": "string", "description": "the api folder, e.g. lib/src"}, |
| 66 | + "dockerImage": { |
| 67 | + "type": "string", |
| 68 | + "description": "whether your client requires a custom docker image with specific needs, most clients require 'apic_base'", |
| 69 | + "enum": [ |
| 70 | + "apic_base", |
| 71 | + "apic_ruby", |
| 72 | + "apic_swift" |
| 73 | + ] |
| 74 | + }, |
| 75 | + "tests": { |
| 76 | + "type": "object", |
| 77 | + "properties": { |
| 78 | + "extension": { "type": "string", "description": "the test file extension, e.g. .test.ts" }, |
| 79 | + "outputFolder": { "type": "string", "description": "the test output folder, e.g. src/generated" } |
| 80 | + }, |
| 81 | + "required": ["extension", "outputFolder"], |
| 82 | + "additionalProperties": false |
| 83 | + }, |
| 84 | + "snippets": { |
| 85 | + "type": "object", |
| 86 | + "properties": { |
| 87 | + "extension": { "type": "string", "description": "the snippet file extension, e.g. .cs" }, |
| 88 | + "outputFolder": { "type": "string", "description": "the snippet output folder, e.g. src" } |
| 89 | + }, |
| 90 | + "required": ["extension", "outputFolder"], |
| 91 | + "additionalProperties": false |
| 92 | + }, |
| 93 | + "supportedVersions": { |
| 94 | + "type": "array", |
| 95 | + "description": "hints the CI on what matrix to generate for this client, this must be language specific versions, e.g. versions of node", |
| 96 | + "items": { "type": "string" } |
| 97 | + } |
| 98 | + }, |
| 99 | + "required": ["clients", "folder", "gitRepoId", "packageVersion", "modelFolder", "apiFolder", "tests", "snippets"], |
| 100 | + "additionalProperties": false |
| 101 | + } |
| 102 | +} |
0 commit comments