Skip to content

Commit

Permalink
Fix #3101 Code gen schema import missing
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Sep 19, 2024
1 parent 6e33068 commit 3d8c70c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ final case class EndpointGen(config: Config) {
caseClasses = code.caseClasses,
enums = code.enums,
)
Nil -> s"$method.${Inline.RequestBodyType}"
code.imports -> s"$method.${Inline.RequestBodyType}"
}
case OpenAPI.ReferenceOr.Reference(SchemaRef(ref), _, _) => Nil -> ref
case other => throw new Exception(s"Unexpected request body schema: $other")
Expand Down

0 comments on commit 3d8c70c

Please sign in to comment.