Skip to content

Commit 03efd89

Browse files
docs: update Pinia Colada example with new configuration options
Update example configuration to demonstrate new features: - Enable autoDetectHttpMethod with clear documentation - Show groupByTag configuration options - Demonstrate operationTypes overrides with examples - Add exportFromIndex option explanation - Include commented examples for common use cases This provides users with a clear reference for utilizing the new HTTP method auto-detection and groupByTag features. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent bd7688a commit 03efd89

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

examples/openapi-ts-pinia-colada/openapi-ts.config.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ export default defineConfig({
1616
enums: 'javascript',
1717
name: '@hey-api/typescript'
1818
},
19-
'@pinia/colada'
19+
{
20+
name: '@pinia/colada',
21+
// Enable auto-detection of query vs mutation based on HTTP method
22+
autoDetectHttpMethod: true,
23+
// Group generated files by OpenAPI tags for better organization
24+
groupByTag: true, // Set to true to organize by tags
25+
// Export all tag files from index
26+
exportFromIndex: true,
27+
// Override specific operations if needed
28+
operationTypes: {
29+
// Example overrides (uncomment to use):
30+
// 'getPetById': 'both', // Generate both query and mutation
31+
// 'updatePet': 'query', // Force mutation to be a query
32+
}
33+
}
2034
]
2135
})

0 commit comments

Comments
 (0)