Skip to content

Releases: GoComply/xsd2go

v0.1.8

20 Nov 10:46
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.7...v0.1.8

v0.1.6

10 Apr 17:35
1d78392
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.5...v0.1.6

v0.1.5

10 Apr 15:41
14c79f2
Compare
Choose a tag to compare

What's Changed

  • Maintenance: Fix gosec warnings by @isimluk in #41
  • Implement xsd:all within xsd:ComplexType by @isimluk in #43
  • Refactor: Extact method: isElementInlined by @isimluk in #44
  • Fix gosec failure: filepath pseudo sanitization by @isimluk in #47
  • Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 by @dependabot in #46
  • Implement few missing types by @isimluk in #49
  • Bump github.com/urfave/cli from 1.22.5 to 1.22.7 by @dependabot in #50
  • Bump github.com/urfave/cli from 1.22.7 to 1.22.8 by @dependabot in #52
  • Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 by @dependabot in #55
  • Bump github.com/stretchr/testify from 1.7.2 to 1.7.3 by @dependabot in #56
  • Bump github.com/stretchr/testify from 1.7.3 to 1.7.4 by @dependabot in #57
  • Bump github.com/urfave/cli from 1.22.8 to 1.22.9 by @dependabot in #54
  • Bump github.com/stretchr/testify from 1.7.4 to 1.7.5 by @dependabot in #58
  • Bump github.com/stretchr/testify from 1.7.5 to 1.8.0 by @dependabot in #59
  • Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 by @dependabot in #62
  • Bump github.com/urfave/cli from 1.22.9 to 1.22.11 by @dependabot in #64
  • Bump github.com/urfave/cli from 1.22.11 to 1.22.12 by @dependabot in #66
  • Bugfix/handle iso8859 1 encoded xmls by @elahmo in #69
  • Bump github.com/iancoleman/strcase from 0.0.0-20191112232945-16388991a334 to 0.2.0 by @dependabot in #67
  • Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in #68
  • Chores: maintenance by @isimluk in #71
  • Bump actions/checkout from 2 to 3 by @dependabot in #74
  • Bump golangci/golangci-lint-action from 2 to 3 by @dependabot in #75
  • Bump actions/setup-go from 1 to 4 by @dependabot in #72
  • Bump goreleaser/goreleaser-action from 2 to 4 by @dependabot in #73
  • Chores: drop go 1.15 and go 1.16 support by @isimluk in #77
  • Bump golang.org/x/net from 0.8.0 to 0.9.0 by @dependabot in #76
  • chores: remove dead badge by @isimluk in #78

New Contributors

Full Changelog: v0.1.4...v0.1.5

v0.1.4

28 Nov 19:32
f8ea01a
Compare
Choose a tag to compare

Changelog

3f17ffd Add OVAL XSD test to CI
bfd512a Add SCAP DataStream XSDs to CI
208ac6b Add SCAP XSD2Go generation to the CI
8f74d5c Add SCAP/XCCDF generation to the CI
58321e2 Add goreportcard badge
30feed3 Add gosec to the CI
00b13c5 Amend the readme to better reflect the current realities
d1a8d65 Assert for the duplicate shorthand xmlns in the XSD workspace
441e85e Avoid unnecessary assignment
279debe Bump go version
18ca570 Bump go versions in CI
89d5c8a CI: Add golangci-lint
95cf05a CI: Ensure clean git repo
061de1e CI: go vet ./...
76ad36f CLI tool should check for arg parse errors
68c81ab Correct foreign module manipulation
103cf82 Fix go vet unreachable code
3f61c7d Fix gopath/pkger manipulation
ed7e6a1 Implement ability to explicitly set --xmlns-override(s)
cd91092 Improve error reporting
8e7fa82 Improve golangci-lint action output
59a9fc5 Make sure to format pkg/template after refresh
a02f371 Merge pull request #31 from isimluk/maintenance
94dcf46 Merge pull request #32 from isimluk/bump-go-version
44e8a6a Merge pull request #33 from isimluk/ci-lint
03285be Merge pull request #34 from isimluk/fix-20
ad463de Merge pull request #35 from isimluk/misc-improvemtns
b1709e5 Merge pull request #36 from isimluk/goreportcard
9407f6d Merge pull request #37 from isimluk/scap-xsd-integration
1c27e68 Merge pull request #38 from isimluk/scap-xsd-integration
0dd9bbe Merge pull request #39 from isimluk/oval-xsd-integration
f8ea01a Merge pull request #40 from isimluk/add-datastream-xsd-to-ci
452c16f Remove unused method
95de50e Sanitize '.' character in the package names
f96959e Simplify code as proposed by gofmt -s
5f7a2fe Simplify string manipulation of a buffer
ed17481 Support type="xs:unsignedInt"
1f8f367 Tests for swid extensions
470c68b Update README.md
ed24d4b tests: add missing assertion

v0.1.3

27 Nov 12:28
f6c28e9
Compare
Choose a tag to compare

Changelog

9491e0a Add stock XMLDSIG schema to our test suite
2d07753 Adding XMLNmae to ComplexTypes when not explicitly defined
4def72e Adding support for attribute groups
8f04406 Adding support for enums
63530a4 All the smoke tests should compare output to pre-generated files
b8bb847 Bump github.com/stretchr/testify from 1.6.1 to 1.7.0
0f22bb7 Bump github.com/urfave/cli from 1.22.4 to 1.22.5
9d9d8da Compile Restriction for simple types
8644204 Do export schema that contains only simple types
c182902 Do not import "encoding/xml" if schema includes only simple types
546204e Don't cache included XSDs
b3beb01 Ensure that schema without elements is exported just fine
944e39e Expect int64 instead of string for SimpleType HMACOutputLengthType
ee41cf4 Fixing refs to simple types
56060ad Fixing tests
b716877 Implement missing plain types
ae679b7 Make tests more flexible: do not rely on XSD defining simple_schema/models.go
d90e951 Merge branch 'master' into master
c58dedd Merge pull request #12 from wiz-sec/master
4542678 Merge pull request #13 from wiz-sec/enums
e68609c Merge pull request #14 from isimluk/tests-to-run-go-build
51431a6 Merge pull request #16 from wiz-sec/xmlname
ce09c2b Merge pull request #17 from GoComply/dependabot/go_modules/github.com/urfave/cli-1.22.5
ce0e60e Merge pull request #18 from GoComply/dependabot/go_modules/github.com/stretchr/testify-1.7.0
fed76aa Merge pull request #24 from vvidovic/feature/xsd-include
b8b7b28 Merge pull request #25 from vvidovic/fix/quote-tag-in-xmlname
7041982 Merge pull request #28 from Vany/master
1ff4e8b Merge pull request #29 from nicoflink/bugfix/Schema-GetType
f6c28e9 Merge pull request #30 from nicoflink/bugfix/Usage-SimpleTypes
0be7909 Merge remote-tracking branch 'gocomply/master' into xmlname
c4948dd Quoting tag in XMLName field
def7266 Replace constant "string" with function parameter
7779483 Rewrite deduplication of inherited elements
a7246e1 Smoke test should assert that generated is valid golang file
ccf9bcb Test: Rename output files used for assertions
dba37a8 Use name of simple types in elements
b68d35d XSD include implementation
0d2d7a8 fixing some enums casing
f75f0b0 fixing tests
9b63e00 fixing tests
566ce5c fixing xmlnames
78771a5 forgot pkg/xsd/enum.go
d25df79 implement long and double
171e069 more enums fixes
a7cf97c update pkged.go

v0.1.2

30 Oct 15:28
Compare
Choose a tag to compare

Changelog

b69a246 Allow multiple elements within element
ac7b5f0 Always add InnerXml to ComplexType
f9010e2 Avoid duplicate elements within xsd:choice/xsd:sequence structure
eb8f0b4 Do not import plain string from foreign module
430a5a8 Fixing handling sequences within choices
662f8f4 Introduce Choice.Elements() method
04b6332 Introduce instance variable allElements to Choice similarly to Sequence
1939d6d Merge pull request #10 from wiz-sec/master
f8241d5 Merge pull request #8 from wiz-sec/master
14cc411 Refactor: Extract method
fa29313 Replace if-else with a map
9290e0b Types defined in a given schema shall take precedence over stock XML types
067ed63 Updated pkg/template/pkged.go
5b1f9a3 Use existing (pseudo)constant to determine whether it is a static type
aad9022 When element references simple type it should still be considered to be "string"
ebed1e9 fixing tests on windows

v0.1.1

20 Oct 19:32
b5e46a0
Compare
Choose a tag to compare

Changelog

c45ce70 Add make vendor Makefile target
5fedd10 Bump github.com/markbates/pkger from 0.16.0 to 0.17.1
56f6a51 Bump github.com/stretchr/testify from 1.4.0 to 1.6.1
6ddd148 Implement xsd:int and xsd:integer
ffbb2d2 Introduce first test and test harness
2d830ce Let's have bot manage dependencies as they grow
9ec4dc9 Merge pull request #4 from GoComply/dependabot/go_modules/github.com/stretchr/testify-1.6.1
6afa965 Merge pull request #5 from GoComply/dependabot/go_modules/github.com/markbates/pkger-0.17.1
b0882a5 Recognize optional attributes correctly
fc997ab Refactor: Extract method: Modifiers()
2773bd9 Remove redundant word
f34a52c Update README.md
da68c85 Update README.md
b5e46a0 Update README.md
5dcc04b make vendor
bd6f8c4 make vendor
70e492a vendor dependencies

v0.1.0

25 Aug 18:47
Compare
Choose a tag to compare

Changelog

2647ea1 Add strict assertion to the element compilation
b281efc Address unfortunate case when Attribute name overrides element name
b7d2115 Adjust error message
5c83d7a Adjust variable names, so this does not wake me up at nights
a380eb3 Amend exemplary usage to reflect the need to have all the files around
b0652a3 Assert that element defines either complexType or refType
a687cd8 Assume that simpleType is always just string
998824b Attempt to export sub-elements of the complexTypes
18dcb6d Avoid double space in the output
2ede605 Avoid exporting empty go code
ffdcd89 Bugfix - remove duplicate compiling for xsd:elements within xsd:element/xsd:complexType
143b446 Bundle types.tmpl file
7cdb822 Camelize name of elements listed in the xsd:schema
c54be59 Change order of elements within xsd:extension
d998058 Collect attributes from extended type
ce7fe01 Collect xsd:element's from xsd:choice's
101ee31 Compilation should be common method in Type interface
ef69216 Compile also elements withing complexType / sequence
a4d3b73 Consider element to be scalar when xsd:element is missing any further info
334f4c6 Convert references (like xml:lang) to sensible Go variable name
22d4c68 Do not allow '-' character in golang package names
0972456 Do not use pointer reference, when optional element is of GoType string
8ee2914 Do not use xmlns prefix as the filename for generated files
0ff2aad Document which xmlns was used to generate golang models
f057558 Drop PrimarySchema variable
c37c783 Drop unnecessary blank lines within go imports
d53d15a Each element should come with pre-generated XMLName head element
bf41cca Elemements with unbounded maxOccurs should be parsed into a list
4beffaa Empty maxOccurs defaults to 1 in XSD standard
e0d0c1e Export element's attributes from any typ
f501c5c Extension based on simple or static type includes parseable text
9836615 Extension shall include also elements from the extended type
190a092 Figure out GoName of referenced xsd:elements
3c8a473 First naive implementation of xsd elements containing other elements
9d46e69 Fix []Attribute initialization, do not setup copy, but the original
87a3690 Fix accidental typo
d3e2069 Fix broken panicing
ca7996f Fix default cardinality for elements within xsd:choice
56fdf1b Fix segmentation fault
77bfd7c Fix the XmlName method for the indirect/referenced elements
ad454e1 Fix the schema import, do not initiate the copy but the original
d044607 Fix: xsd:decimal can actually have floating point
b328fab Generate also xml parsing hints of the complexType
dd1e2ea Generate golang code for all schemas, even imports of imports of imports
efa1f3f Generated code shall import encoding/xml
9247da6 Get a rid of Element's refType
16d1e16 Get a rid of metaschema left-overs
7b913db Guess the golang package name from xsd filename, when xmlnsPrefix is empty
81043bf Handle type references across the various xsd files
b326676 Implement couple of others xml/xsd static types
6344efc Implement dummy static type for cases when someone refers to type "string"
dd1ffb4 Implement query of xmlns uri by prefixes based on parsed header
4556860 Implement xsd:restriction within xsd:complexContent
f3db978 Import dependent schema only when there is schemaLocation set-up
df88bf2 Import go modules by their full name
1144eb7 Import other go modules that are needed
a5c1a17 In case of missing attribute name, use the one from the xsd:attribute/@ref=
e5d8be5 Initial commit
d20f16a Initial commmit and project structure
875d80a Initiate Attributes with the backreference to the the parent schema
f2f23f4 Inject Go package uri to each xsd schema processor
0fdbf39 Introduce GoFieldName to allow for short-hand naming of elements with name clashes
dfc6062 Let's try that goreleaser magic
b58dc9c Link xsd:*types that are included within xsd:simpleContent/xsd:extension
6e4f708 Make an explicit distinction between top-level elements and inlined elements
15c440e Move parser code to the xsd module
3862d1e Move xsd:element validation up to the compile phase
9350718 Optional sub-elements need has to unmarshall to pointer
d52a429 Output attributes of complexTypes to golang
01d0dd6 Output golang code even for imported schemas
ab2ec8b Output in-lined elements to the go package as first class citizens
063c103 Overcomplicate compilation to support workaround name clashes of inlined elements
c942570 Parse xsd:simpleContent within xsd:complexType
ffb81bb Print out which files are being generated
f38a6d4 Process attribute elements under xsd:complexType/xsd:simpleContent
d6dada7 Process xsd:choice direct child of xsd:complexType
3e58783 Process xsd:element tags
afc2fb6 Propagate arrays from xsd:choice to children xsd:element's
98f4ace Propagate backlink to xsd:schema to each and every xsd:element
c19da1b Refactor: Extract method: Attributes
3983b21 Refactor: Extract method: Attributes()
ad78bc5 Refactor: Extract method: Elements()
faa7090 Refactor: Extract method: GoTypeName
f0b0252 Refactor: Extract method: StaticType
7cbda4a Refactor: Extract method: XmlName
f8faf65 Refactor: Extract method: isArray
b4fd70e Refactor: Extract method: isPlainString()
14e6033 Refactor: Extract method: xmlnsByPrefixInternal
c08ac5b Refactor: Move []Attribute pre-processing out of the getter method
624af6c Refactor: Move xsd:extension to separate file
72b039b Refactor: Move xsd:sequence processing to separate file
b06131c Refactor: Publicize ImportedSchema instance variable
1935fd9 Refactor: Rename file
1fbc849 Refactor: Rename variable
8d856a8 Refactor: move attribute names name clash code down to the complexType
c87e23c Refactor: move file opening down to the xsd module
fdc8dc8 Refactor: move simpleContent to a separate file
1da2a26 Refer to foreign symbol correctly, in case the symbol comes from foreign module
8e31384 Register imported modules
3d3942e Resolve attribute references
657f9d6 Resolve xsd:element to xsd:element references internally
da7dcd6 Resolve xsd:extension reference and assert sanity
82ce1be Rework duplicates handling
bc972e7 Rework loading of xsd schema and its imports
bd5158a Search for xmlns within imported schemas
1fbdab6 Search through importedModules to find correct xmlns
de3e50b Shameful monkey patch to avoid DataStream and XmlDSig name clash
51d7682 Show elements included by complexType
8c50f07 Skeleton for parsing ,chardata within complexTypes
01e199a Skip export of xsd:complexType that shares the name as existing xsd:element
6007c0d Sort list of imports, so our generated files are stable
3eff5ce Start parsing ,chardata within xsd:elements
ba46981 Start parsing and compiling xsd:choice
3d425f5 Start parsing complextType and attribute elements
7901eee Start parsing imported schemas (xsd depedencies)
e651948 Start parsing xsd:complexContent elements
2e505a7 Start parsing xsd:element to xsd:element references
e18acb2 Start parsing xsd:import elements
fc46b26 Start processing xsd:complexContent/xsd:attribute
d48e80b Start processing xsd:complexContent/xsd:element
af41cdd Start producing ,innerxml parsing hint for mixed complexTypes
c3fadd4 Start resolving ComplexTypes
a46bb14 Start supporting xsd:simpleType along the xsd:complexType
8f73e45 Struct items in the gocode should be camelized
5674005 Support xsd:string as refType
e9aa4a8 Update a readme
9d1bf39 Use GoFieldName consistently
30cd89e Use consistent type names
d157e3b Use custom code to parse xmlns:... elements
579ad5c Use xmlns prefix defined in xsd as the name of the module
ad8f19b We need go array, when maxOccurs is a number greater that 1
c03bdc5 When elements contains simple type, we can use string for unmarsharing
0ca65f3 XML Elements that refer to xsd:complexTypes needs to be handled specially
9515f8a export complexTypes to the golang code
2abce5d xccdf:Benchmark can have both 'Id' and 'id' attribute