Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Restrictions on AnyType do not result in a valid constructor #462

Open
wernerschram opened this issue Feb 15, 2018 · 0 comments
Open

Restrictions on AnyType do not result in a valid constructor #462

wernerschram opened this issue Feb 15, 2018 · 0 comments

Comments

@wernerschram
Copy link

wernerschram commented Feb 15, 2018

A complexType with a restriction base of xs:anyType results in a class with a constructor without a parameter for setting the value. The further code assumes that there is a parameter for setting the element value, which causes a compile error.

I'm using the following versions:

  "org.scala-lang.modules"  %% "scala-xml"                  % "1.0.2",
  "org.scala-lang.modules"  %% "scala-parser-combinators"   % "1.0.1",
  "net.databinder.dispatch" %% "dispatch-core"              % "0.13.3",

I included a simple xsd snippet with a complexType named AnyTypeRestriction1 that shows the problem.

  <xs:complexType name="AnyTypeRestriction1">
    <xs:simpleContent>
        <xs:restriction base="xs:anyType">
        </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant