galbe 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -280,9 +280,9 @@ const parseEndpointDef = (method: string, path: string, def?: OpenAPIV3.Operatio
280
280
  if (_p.$ref) continue
281
281
  let p = _p as OpenAPIV3.ParameterObject
282
282
  let o = (s: string) => {
283
- const [isOptional, so] = [...(s.match(/^\$T.optional\((.*)\)$/) || [])]
283
+ const [_, so] = [...(s.match(/^\$T.optional\((.*)\)$/) || [])]
284
284
  s = so ?? s
285
- return p.in !== 'path' && !p.required && !isOptional ? `$T.optional(${s})` : s
285
+ return p.in !== 'path' && !p.required ? `$T.optional(${s})` : s
286
286
  }
287
287
  sp[p.in][p.name] = o(
288
288
  unref(parseOapiSchema(p.schema, { description: p.description }), m => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "galbe",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Fast, lightweight and highly customizable JavaScript web framework based on Bun",
5
5
  "author": "Pierre Caillaud M (https://github.com/pierre-cm)",
6
6
  "type": "module",