Skip to content

Commit

Permalink
core: Fix unpopulated defaultValue property on CodegenParameter for…
Browse files Browse the repository at this point in the history
… OAI 3 specs
  • Loading branch information
karlvr committed Aug 20, 2024
1 parent 33281d9 commit fe54120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-steaks-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openapi-generator-plus/core": minor
---

Fix unpopulated `defaultValue` property on CodegenParameter for OAI 3 specs
2 changes: 1 addition & 1 deletion packages/core/src/process/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function toCodegenParameter(parameter: OpenAPI.Parameter, scopeName: string, sta
})

examples = toCodegenExamples(parameter.example, parameter.examples, undefined, schemaUse, state)
defaultValue = null
defaultValue = schemaUse.defaultValue
}

const vendorExtensions = toCodegenVendorExtensions(parameter)
Expand Down

0 comments on commit fe54120

Please sign in to comment.