Skip to content

Commit

Permalink
Fix extracting OpenAPI entity name
Browse files Browse the repository at this point in the history
  • Loading branch information
pwliwanow committed Nov 25, 2024
1 parent 9683f1a commit cfc690f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ object OpenApiConverterUtils {
getEntityName(Some(r.id), parsed)
case r: Schema.Lazy[_] =>
getEntityName(r.schema)
case r: zio.schema.Schema.Transform[_, _, _] =>
getEntityName(r.schema)
case other =>
OpenApiParsedAnnotations.extractAnnotations(other.annotations).entityName
}
Expand All @@ -33,6 +35,8 @@ object OpenApiConverterUtils {
getEntityName(Some(r.id), parsed)
case r: Schema.Lazy[_] =>
getEntityName(r.schema, parsed)
case r: zio.schema.Schema.Transform[_, _, _] =>
getEntityName(r.schema)
case _ =>
parsed.entityName
}
Expand Down

0 comments on commit cfc690f

Please sign in to comment.