We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985df44 commit 3c68e75Copy full SHA for 3c68e75
src/generators/scala/ScalaConstrainer.ts
@@ -78,7 +78,7 @@ export const ScalaDefaultTypeMapping: ScalaTypeMapping = {
78
return constrainedModel.name;
79
},
80
Reference({ constrainedModel }): string {
81
- if (constrainedModel.ref.constructor.name === 'ConstrainedEnumModel') {
+ if (constrainedModel.ref instanceof ConstrainedEnumModel) {
82
return `${constrainedModel.name}.Value`;
83
}
84
0 commit comments