Skip to content

Commit

Permalink
Merge pull request #29 from nicoflink/bugfix/Schema-GetType
Browse files Browse the repository at this point in the history
Schema - GetType: Replace constant "string" with function parameter
  • Loading branch information
isimluk authored Nov 18, 2021
2 parents 7041982 + def7266 commit 1ff4e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/xsd/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (sch *Schema) GetType(name string) Type {
}
}
if IsStaticType(name) {
return StaticType("string")
return StaticType(name)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion tests/xsd-examples/valid/xmldsig-core-schema.xsd.out
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ type X509IssuerSerialType struct {

X509IssuerName string `xml:"X509IssuerName"`

X509SerialNumber string `xml:"X509SerialNumber"`
X509SerialNumber int64 `xml:"X509SerialNumber"`

InnerXml string `xml:",innerxml"`
}
Expand Down

0 comments on commit 1ff4e8b

Please sign in to comment.