Skip to content

Commit bca18bf

Browse files
mfbx9da4claude
andauthored
feat(csharp): add cancellation tokens; fix(core): resolve security crashes; feat(typescript): acceptHeaderEnum config (#1643)
## Release Summary ### Typescript - Added acceptHeaderEnum config option to control header enum generation ### C# - Added support for cancellation tokens in async operations ### Core - Added acceptHeaderEnum config option to control header enum generation - Added ResponseOverlays support for mock server responses - Fixed crash when security scheme names had case-sensitive mismatches ## Detailed Changes - fix: add acceptHeaderEnum config to control generation > speakeasy-api/openapi-generation#3268 - fix(wasm): unmarshal to overlay, not yaml node > speakeasy-api/openapi-generation#3267 - Unblock tests > speakeasy-api/openapi-generation#3266 - fix: resolve crash with case-sensitive security scheme name mismatches > speakeasy-api/openapi-generation#3261 - feat: Add a feat for adding ResponseOverlays to responses from mock server > speakeasy-api/openapi-generation#3259 - feat(wasm): add format YAML method to help format yaml strings > speakeasy-api/openapi-generation#3255 - fix(pythonv2): remove alwaysTrue temporary template hack > speakeasy-api/openapi-generation#3243 - feat: C# cancellation tokens > speakeasy-api/openapi-generation#3112 --------- Co-authored-by: Claude <[email protected]>
1 parent fa65e94 commit bca18bf

File tree

3 files changed

+71
-3
lines changed

3 files changed

+71
-3
lines changed

.claude/commands/release.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Release Command
2+
3+
Create a release PR with summarized changes from merged pull requests.
4+
5+
## Steps
6+
7+
0. Switch to the main branch if not already
8+
1. Run the upgrade.bash script to get the list of merged PRs and upgrade dependencies
9+
2. Fetch all merged PRs from openapi-generation repo since the last release
10+
3. **IMPORTANT: Filter out PRs with titles starting with "chore:" - these MUST be excluded from both the PR title and description**
11+
4. Group changes by programming language (python, typescript, java, go, csharp, php, ruby, terraform)
12+
5. Ignore "v2" suffixes when categorizing (pythonv2 → python, typescriptv2 → typescript)
13+
6. Create a user-facing summary for each language with relevant changes
14+
7. You should use `gh` to go and read the descriptions of each and every PR to workout if this is a public facing change or internal change. This PR should only include public changes.
15+
8. **Create a PR title that includes**:
16+
- Which languages have been updated
17+
- Whether changes are features or fixes
18+
- Brief description of what was changed
19+
- Format: `feat/fix(lang1,lang2): brief description of changes`
20+
9. Create a new branch off main with format: `release/vX.Y.Z` or `release/YYYY-MM-DD`
21+
10. Commit the changes with the summarized message
22+
11. Push the branch and create a PR with the full changelog
23+
24+
## PR Title Format
25+
26+
The PR title should follow this format with semicolons separating each language-specific change:
27+
- `fix(python): remove template hack; feat(csharp): add cancellation tokens; fix(core): resolve security crashes`
28+
- `feat(typescript): add retry logic; fix(go): resolve memory leaks`
29+
- `fix(core): fix overlays and security; feat(python,csharp): add new features`
30+
31+
**Format Rules:**
32+
- Separate each language's changes with semicolons (`;`)
33+
- Each section should have its own type prefix (`feat` or `fix`)
34+
- Group languages together only if they have the same type and similar changes
35+
- Use "core" for changes which affect all languages
36+
- Order: features first, then fixes
37+
- Be specific about what was fixed or added for each language
38+
39+
## Output Format
40+
41+
The PR description should be formatted as:
42+
43+
```markdown
44+
## Release Summary
45+
46+
### Python
47+
- [Brief user-facing summary of changes]
48+
49+
### TypeScript
50+
- [Brief user-facing summary of changes]
51+
52+
### [Other Languages]
53+
- [Brief user-facing summary of changes]
54+
55+
## Detailed Changes
56+
57+
[Full list of PR titles and links, excluding chore PRs]
58+
```
59+
60+
## Important Notes
61+
62+
- **CRITICAL: Exclude any PRs with titles starting with "chore:" from BOTH the PR title and description**
63+
- **Never added this footer**: 🤖 Generated with [Claude Code](https://claude.com/claude-code)
64+
- Focus on user-facing changes and improvements
65+
- Group by language, ignoring v2 suffixes
66+
- The branch should be created off main
67+
- The PR should target main branch
68+
- PR title must clearly indicate which languages were updated and what kind of changes (feat/fix)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ require (
3838
github.com/sethvargo/go-githubactions v1.1.0
3939
github.com/speakeasy-api/huh v1.1.2
4040
github.com/speakeasy-api/openapi v1.7.3
41-
github.com/speakeasy-api/openapi-generation/v2 v2.716.16
41+
github.com/speakeasy-api/openapi-generation/v2 v2.719.3
4242
github.com/speakeasy-api/openapi-overlay v0.10.3
4343
github.com/speakeasy-api/sdk-gen-config v1.35.0
4444
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.26.7

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ github.com/speakeasy-api/libopenapi v0.21.9-fixhiddencomps-fixed h1:PL/kpBY5vkBm
541541
github.com/speakeasy-api/libopenapi v0.21.9-fixhiddencomps-fixed/go.mod h1:Gc8oQkjr2InxwumK0zOBtKN9gIlv9L2VmSVIUk2YxcU=
542542
github.com/speakeasy-api/openapi v1.7.3 h1:QM9VglcsxRPH19Xr47nYRtDsKOlczCdRRxPYa0pAGz0=
543543
github.com/speakeasy-api/openapi v1.7.3/go.mod h1:fy+CvRcKj+HDU0QNdnyG6UkfJOEjhqCuNC7o4AtLPAk=
544-
github.com/speakeasy-api/openapi-generation/v2 v2.716.16 h1:v4w20MhftTfuTmd8Z7FlQrbiwoceze5wSUBBVDazuc4=
545-
github.com/speakeasy-api/openapi-generation/v2 v2.716.16/go.mod h1:fy5/XuA7hfY9pJkesh8av1l6PoQT1KFjzLZe38OAYFI=
544+
github.com/speakeasy-api/openapi-generation/v2 v2.719.3 h1:m+G+Nx3VBAxVECzEr0BrLEaYKr2MAiRhxzw/XjiYciA=
545+
github.com/speakeasy-api/openapi-generation/v2 v2.719.3/go.mod h1:fy5/XuA7hfY9pJkesh8av1l6PoQT1KFjzLZe38OAYFI=
546546
github.com/speakeasy-api/openapi-overlay v0.10.3 h1:70een4vwHyslIp796vM+ox6VISClhtXsCjrQNhxwvWs=
547547
github.com/speakeasy-api/openapi-overlay v0.10.3/go.mod h1:RJjV0jbUHqXLS0/Mxv5XE7LAnJHqHw+01RDdpoGqiyY=
548548
github.com/speakeasy-api/sdk-gen-config v1.35.0 h1:9yM5BwCqs+HmbyjIXwy+bciIdZROSJJWp98prFwe0OE=

0 commit comments

Comments
 (0)