diff --git a/data/languages.json b/data/languages.json new file mode 100644 index 0000000..530ed79 --- /dev/null +++ b/data/languages.json @@ -0,0 +1,88 @@ +{ + "akamai": [ + "JavaScript" + ], + "android-client-sdk": [ + "Java" + ], + "apex-server-sdk": [ + "Apex" + ], + "cloudflare": [ + "JavaScript" + ], + "cpp-client-sdk": [ + "C++", + "C" + ], + "cpp-server-sdk": [ + "C++", + "C" + ], + "dotnet-client-sdk": [ + "C#" + ], + "dotnet-server-sdk": [ + "C#" + ], + "electron": [ + "JavaScript" + ], + "erlang-server-sdk": [ + "Erlang" + ], + "flutter-client-sdk": [ + "Dart" + ], + "go-server-sdk": [ + "Go" + ], + "haskell-server-sdk": [ + "Haskell" + ], + "ios-client-sdk": [ + "Swift" + ], + "java-server-sdk": [ + "Java" + ], + "javascript-client-sdk": [ + "JavaScript" + ], + "lua-server-sdk": [ + "Lua" + ], + "node-client-sdk": [ + "JavaScript" + ], + "node-server-sdk": [ + "JavaScript" + ], + "php-server-sdk": [ + "PHP" + ], + "python-server-sdk": [ + "Python" + ], + "react-client-sdk": [ + "JavaScript" + ], + "react-native-client-sdk": [ + "JavaScript" + ], + "roku-client-sdk": [ + "BrightScript" + ], + "ruby-server-sdk": [ + "Ruby" + ], + "rust-server-sdk": [ + "Rust" + ], + "vercel-client-sdk": [ + "JavaScript" + ], + "vue-client-sdk": [ + "JavaScript" + ] +} diff --git a/schemas/languages.json b/schemas/languages.json new file mode 100644 index 0000000..5c0e229 --- /dev/null +++ b/schemas/languages.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://launchdarkly.com/sdk-meta/languages.json", + "title": "SDK Languages", + "description": "The programming languages associated with each SDK", + "type": "object", + "$defs": { + "SDKLanguage" : { + "type" : "string", + "description" : "Name of a programming language", + "pattern" : "^[+A-Za-z#]+$" + } + }, + "patternProperties" : { + "^[a-z-]+$" : { + "type" : "array", + "items" : { "$ref" : "#/$defs/SDKLanguage" } + } + } +} diff --git a/scripts/ci/check-json-schemas.sh b/scripts/ci/check-json-schemas.sh index 9e7d546..a4ecb88 100755 --- a/scripts/ci/check-json-schemas.sh +++ b/scripts/ci/check-json-schemas.sh @@ -23,3 +23,4 @@ function runTest() { runTest ./schemas/features.json ./data/features.json runTest ./schemas/types.json ./data/types.json runTest ./schemas/names.json ./data/names.json +runTest ./schemas/languages.json ./data/languages.json diff --git a/scripts/new-data-template.sh b/scripts/create-product.sh similarity index 100% rename from scripts/new-data-template.sh rename to scripts/create-product.sh