Skip to content

Commit 5d1726f

Browse files
authored
Fix missing comma in OpenAPI generator configuration example
This PR fixes a syntax error in the OpenAPI generator configuration documentation where a comma is missing between globalHost and handleApi properties. Changes made: Added missing comma after globalHost: 'globalThis' configuration option This fixes the JSON syntax error that would cause configuration parsing to fail Before fix: <JAVASCRIPT> globalHost: 'globalThis' // <- Missing comma here /** * (Optional) Filter or transform generated API interface functions... */ handleApi: apiDescriptor => { After fix: <JAVASCRIPT> globalHost: 'globalThis', // <- Comma added /** * (Optional) Filter or transform generated API interface functions... */ handleApi: apiDescriptor => { This is a documentation fix that improves the user experience for developers following the OpenAPI generator configuration examples. Without this fix, users copying the example configuration would encounter syntax errors.
1 parent ffe5b12 commit 5d1726f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/02-getting-started/09-openapi-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ module.exports = defineConfig({
141141
/**
142142
* Host object for global API mounting. Default is `globalThis` (represents `window` in browsers and `global` in Node.js).
143143
*/
144-
globalHost: 'globalThis'
144+
globalHost: 'globalThis',
145145

146146
/**
147147
* (Optional) Filter or transform generated API interface functions. Return a new `apiDescriptor` to generate API call functions. If not specified, the `apiDescriptor` object remains unchanged.

0 commit comments

Comments
 (0)