{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/775d3e9ceaf28ac0b21055084beb795e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"775d3e9ceaf28ac0b21055084beb795e","url":"https://api.github.com/users/OlegYch","login":"OlegYch","id":268312},"labels":[],"assignee":null,"updated_at":"2011-11-15T05:33:16Z","comments":9,"closed_at":null,"url":"https://api.github.com/repos/eed3si9n/scalaxb/issues/118","body":"## steps\r\n\r\ncompile two input files with the command\r\n\r\n```\r\n>scalaxb-0.6.7-SNAPSHOT Service3.wsdl Service2.wsdl\r\n```\r\n\r\nService2.wsdl\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<wsdl:definitions xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\r\n                  xmlns:ns1=\"http://schemas.datacontract.org/Entities\"\r\n                  xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\r\n                  targetNamespace=\"http://tempuri.org/\">\r\n  <wsdl:types>\r\n    <xsd:schema\r\n        attributeFormDefault=\"unqualified\" elementFormDefault=\"qualified\"\r\n        targetNamespace=\"http://schemas.datacontract.org/Entities\">\r\n      <xsd:complexType name=\"BaseProperty\">\r\n        <xsd:sequence>\r\n          <xsd:element minOccurs=\"0\" name=\"Definition\" nillable=\"true\" type=\"xsd:string\"/>\r\n        </xsd:sequence>\r\n      </xsd:complexType>\r\n    </xsd:schema>\r\n  </wsdl:types>\r\n</wsdl:definitions>\r\n```\r\n\r\nService3.wsdl\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<wsdl:definitions xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"\r\n                  xmlns:ns1=\"http://schemas.datacontract.org/Entities\"\r\n                  xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\r\n                  targetNamespace=\"http://tempuri.org/\">\r\n  <wsdl:types>\r\n    <xsd:schema\r\n        attributeFormDefault=\"unqualified\" elementFormDefault=\"qualified\"\r\n        targetNamespace=\"http://schemas.datacontract.org/Entities\">\r\n      <xsd:complexType name=\"BaseProperty\">\r\n        <xsd:sequence>\r\n          <xsd:element minOccurs=\"0\" name=\"Definition\" nillable=\"true\" type=\"xsd:string\"/>\r\n        </xsd:sequence>\r\n      </xsd:complexType>\r\n      <xsd:complexType name=\"PropertyOfint\">\r\n        <xsd:complexContent>\r\n          <xsd:extension base=\"ns1:BaseProperty\">\r\n            <xsd:sequence>\r\n              <xsd:element minOccurs=\"0\" name=\"Value\" type=\"xsd:int\"/>\r\n            </xsd:sequence>\r\n          </xsd:extension>\r\n        </xsd:complexContent>\r\n      </xsd:complexType>\r\n    </xsd:schema>\r\n  </wsdl:types>\r\n</wsdl:definitions>\r\n```\r\n\r\n## problem \r\n\r\nService3_type1.scala\r\n\r\n```scala\r\ncase class PropertyOfint(Definition: Option[Option[String]] = None,\r\n  Value: Option[Int] = None) extends BaseProperty\r\n```\r\n\r\nService2_type1.scala\r\n\r\n```scala\r\ncase class BaseProperty(Definition: Option[Option[String]] = None)\r\n```","html_url":"https://github.com/eed3si9n/scalaxb/issues/118","number":118,"title":"base trait is not generated in case when one of input files does not contain subtypes, but others do","id":2223383,"created_at":"2011-11-13T21:41:58Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/8f41595db400be30176f6f04630c2842?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8f41595db400be30176f6f04630c2842","url":"https://api.github.com/users/eed3si9n","login":"eed3si9n","id":184683},"updated_at":"2011-11-15T05:33:16Z","url":"https://api.github.com/repos/eed3si9n/scalaxb/issues/comments/2741201","body":"> the goal of being able to generate valid code for a valid input imo is crucial.\r\n\r\nRight. In my opinion, the moment you have a duplicated types across the schemas, it's already invalid.\r\nI guess I could try to detect that the merged type needs trait or not, but this would be an enhancement, not a bug fix.","id":2741201,"created_at":"2011-11-15T05:33:16Z"}}