Skip to content

Commit

Permalink
Fixing value types (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Oct 24, 2023
1 parent 97e6a50 commit 10c7d3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/schema/elements.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ func GetElementValueType(e specschema.ElementType) string {
if e.List.CustomType != nil {
return e.List.CustomType.ValueType
}
return "types.ListType"
return "types.List"
case e.Map != nil:
if e.Map.CustomType != nil {
return e.Map.CustomType.ValueType
}
return "types.MapType"
return "types.Map"
case e.Number != nil:
if e.Number.CustomType != nil {
return e.Number.CustomType.ValueType
Expand All @@ -101,12 +101,12 @@ func GetElementValueType(e specschema.ElementType) string {
if e.Object.CustomType != nil {
return e.Object.CustomType.ValueType
}
return "types.ObjectType"
return "types.Object"
case e.Set != nil:
if e.Set.CustomType != nil {
return e.Set.CustomType.ValueType
}
return "types.SetType"
return "types.Set"
case e.String != nil:
if e.String.CustomType != nil {
return e.String.CustomType.ValueType
Expand Down

0 comments on commit 10c7d3a

Please sign in to comment.