Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixing xmlnames #16

Merged
merged 5 commits into from
Nov 3, 2020
Merged

Fixing xmlnames #16

merged 5 commits into from
Nov 3, 2020

Conversation

grzn
Copy link
Contributor

@grzn grzn commented Nov 2, 2020

This PR fixes a number of issues:

  • GoForeignModule when the element is in a different namespace than the restriction
  • XMLName in cases there's a since element and its an abstract one; this solves TestType not unmrshalling any tests.

@isimluk
Copy link
Member

isimluk commented Nov 2, 2020

Second commit is fine and fixes the different namespaces of attributes from extension very well. I am tempted to merge just the second commit to get us closer to stability.

I am sorry for the merge conflicts.

@grzn
Copy link
Contributor Author

grzn commented Nov 2, 2020

The tests here pass, in scap they failed because they failed to pull the schemas? I'll take another look in the morning.

grzn added 2 commits November 3, 2020 10:58
* gocomply/master:
  Add stock XMLDSIG schema to our test suite
  Make tests more flexible: do not rely on XSD defining simple_schema/models.go
  Smoke test should assert that generated is valid golang file
  All the smoke tests should compare output to pre-generated files
  Test: Rename output files used for assertions
  Rewrite deduplication of inherited elements
  Do not import "encoding/xml" if schema includes only simple types
  Ensure that schema without elements is exported just fine
  Do export schema that contains only simple types
  Implement missing plain types
@isimluk
Copy link
Member

isimluk commented Nov 3, 2020

Thanks!

@isimluk isimluk merged commit 51431a6 into GoComply:master Nov 3, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants