packages/snippetz/scripts/README.md
Automatically generates language-specific enums and documentation from TypeScript clients configuration. These scripts directly import the clients array, ensuring the generated files stay in perfect sync with the TypeScript source of truth.
pnpm generate:dotnet-enums
Generates C# enums for the .NET integration packages.
ScalarTarget.Generated.cs - Programming language targets (C#, JavaScript, etc.)ScalarClient.Generated.cs - HTTP clients (HttpClient, Fetch, etc.)ScalarOptionsMapper.Generated.cs - Target → Client mappingsGenerated in: integrations/dotnet/shared/src/Scalar.Shared/
pnpm generate:java-enums
Generates Java enums for the Java integration packages.
ScalarTarget.java - Programming language targets (Java, JavaScript, etc.)ScalarClient.java - HTTP clients (OkHttp, AsyncHttp, etc.)Generated in: integrations/java/scalar-core/src/main/java/com/scalar/maven/core/enums/
pnpm generate:markdown-docs
Automatically updates the hiddenClients property documentation in configuration.md with the current list of available clients, grouped by target/language.
Updates the hiddenClients section in documentation/configuration.md with:
The generated section is marked with HTML comments (<!-- AUTO-GENERATED:CLIENTS START --> and <!-- AUTO-GENERATED:CLIENTS END -->) to prevent manual edits.
Customize PascalCase mappings in CUSTOM_PASCAL_CASE_MAPPINGS or obsolete clients in OBSOLETE_CLIENT_ENTRIES in generate-dotnet-enums.ts when needed.
Customize SCREAMING_SNAKE_CASE mappings in CUSTOM_JAVA_MAPPINGS or obsolete clients in OBSOLETE_CLIENT_ENTRIES in generate-java-enums.ts when needed.