fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: add async example to patch.schemas JSDoc

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+11
+11
packages/shared/src/config/parser/patch.ts
··· 129 129 * - `Record<string, fn>`: Patch specific named schemas 130 130 * - `function`: Bulk callback receives `(name, schema)` for every schema 131 131 * 132 + * Both patterns support async functions for operations like fetching data 133 + * from external sources or performing I/O. 134 + * 132 135 * @example 133 136 * ```js 134 137 * // Named schemas ··· 158 161 * if (match) { 159 162 * schema.description = (schema.description || '') + 160 163 * `\n@version ${match[1]}.${match[2]}.${match[3]}`; 164 + * } 165 + * } 166 + * 167 + * // Async example - fetch metadata from external source 168 + * schemas: async (name, schema) => { 169 + * const metadata = await fetchSchemaMetadata(name); 170 + * if (metadata) { 171 + * schema.description = `${schema.description}\n\n${metadata.notes}`; 161 172 * } 162 173 * } 163 174 * ```