Skip to content

Commit

Permalink
fix usings for csharp generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Jul 31, 2024
1 parent 346f8ac commit 0c88f47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ interface CsharpObjectTypeExtensions : ExtensionsBase {
if (props.any { it is VrapArrayType && (it.itemType.simpleName() == "Object" || it.itemType.simpleName() == "DateTime" || it.itemType.simpleName() == "TimeSpan") }) {
usings = usings.plus("System")
}
if (props.any { it.simpleName() == "Date" }) {
if (props.any { it.simpleName() == "Date" || (it is VrapArrayType && (it.itemType.simpleName() == "Date")) }) {
usings = usings.plus("commercetools.Base.Models")
}
if (isInterface || this.discriminator.isNullOrEmpty().not() || (this.isInlineType && (this.type as ObjectType).discriminator.isNullOrEmpty().not())) {
Expand Down

0 comments on commit 0c88f47

Please sign in to comment.