Skip to content

Commit

Permalink
fix: rename CSharp to C#
Browse files Browse the repository at this point in the history
  • Loading branch information
kai687 committed Mar 11, 2024
1 parent bf48362 commit c5ef13a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/buildSpecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ALGOLIASEARCH_LITE_OPERATIONS = ['search', 'customPost'];
function mapLanguageToCodeSampleSupporter(language: Language): CodeSamples['lang'] {
switch (language) {
case 'csharp':
return 'CSharp';
return 'C#';
case 'javascript':
return 'JavaScript';
case 'php':
Expand Down
8 changes: 6 additions & 2 deletions scripts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ type Method = 'delete' | 'get' | 'options' | 'patch' | 'post' | 'put';
export type CodeSamples = {
lang:
| 'C'
| 'C#'
| 'C++'
| 'CoffeeScript'
| 'CSharp'
| 'CSS'
| 'Dart'
| 'DM'
Expand Down Expand Up @@ -105,5 +105,9 @@ export type SnippetSamples = Record<Language, Record<string, string>>;
*/
type Path = Record<
Method,
Record<string, any> & { operationId: string; 'x-codeSamples': CodeSamples[]; summary: string }
Record<string, any> & {
operationId: string;
'x-codeSamples': CodeSamples[];
summary: string;
}
>;

0 comments on commit c5ef13a

Please sign in to comment.