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

Support for XSD nillable and xsi:nil="true" #60

Merged
merged 16 commits into from
Jan 24, 2024

Merge branch 'master' into nillable

c74d183
Select commit
Loading
Failed to load commit list.
Merged

Support for XSD nillable and xsi:nil="true" #60

Merge branch 'master' into nillable
c74d183
Select commit
Loading
Failed to load commit list.
Azure Pipelines / LinqToXsdCore (Build, test for PR) failed Jan 19, 2024 in 14m 16s

Build #20240119.1 had test failures

Details

Tests

  • Failed: 14 (12.28%)
  • Passed: 93 (81.58%)
  • Other: 7 (6.14%)
  • Total: 114

Annotations

Check failure on line 29798 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / LinqToXsdCore (Build, test for PR)

Build log #L29798

Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1

Check failure on line 29803 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / LinqToXsdCore (Build, test for PR)

Build log #L29803

Dotnet command failed with non-zero exit code on the following projects : [ 'D:\\a\\1\\s\\LinqToXsd-TestingSuite.slnf' ]

Check failure on line 1 in Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("SBML")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / LinqToXsdCore (Build, test for PR)

Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("SBML")

Xml.Schema.Linq.LinqToXsdException : C:\SBML\sbml.level-2.version-5.release-1.xsd failed to generated code.
  ----> System.Xml.Schema.XmlSchemaException : The 'http://www.w3.org/1998/Math/MathML:math' element is not declared.
Raw output
   at Xml.Schema.Linq.Tests.CodeGenerationTests.CheckTypeOfVoidExpressionsInGeneratedCode(IEnumerable`1 xsdsToProcess, Int32 randomSubset) in D:\a\1\s\XObjectsTests\CodeGenerationTests.cs:line 156
--XmlSchemaException
   at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object sender, ValidationEventArgs e)
   at System.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
   at System.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e)
   at System.Xml.Schema.Compiler.CompileElement(XmlSchemaElement xe)
   at System.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle)
   at System.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle)
   at System.Xml.Schema.Compiler.CompileComplexTypeElements(XmlSchemaComplexType complexType)
   at System.Xml.Schema.Compiler.Compile()
   at System.Xml.Schema.Compiler.Execute(XmlSchemaSet schemaSet, SchemaInfo schemaCompiledInfo)
   at System.Xml.Schema.XmlSchemaSet.Compile()
   at Xml.Schema.Linq.Extensions.GeneralExtensionMethods.ToXmlSchemaSet(XmlReader reader, XmlResolver resolver) in D:\a\1\s\XObjectsCore\Extensions\GeneralExtensionMethods.cs:line 68
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTree(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 344
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTreeOrError(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 354

Check failure on line 1 in Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("OpenPackagingConventions-XMLSchema")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / LinqToXsdCore (Build, test for PR)

Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("OpenPackagingConventions-XMLSchema")

Xml.Schema.Linq.LinqToXsdException : C:\OpenPackagingConventions-XMLSchema\opc-coreProperties.xsd failed to generated code.
  ----> System.Xml.Schema.XmlSchemaException : The namespace attribute 'http://purl.org/dc/elements/1.1/' of an import should be the same value as the targetNamespace 'http://schemas.microsoft.com/data/udc' of the imported schema.
Raw output
   at Xml.Schema.Linq.Tests.CodeGenerationTests.CheckTypeOfVoidExpressionsInGeneratedCode(IEnumerable`1 xsdsToProcess, Int32 randomSubset) in D:\a\1\s\XObjectsTests\CodeGenerationTests.cs:line 156
--XmlSchemaException
   at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object sender, ValidationEventArgs e)
   at System.Xml.Schema.Preprocessor.Preprocess(XmlSchema schema, String targetNamespace, ArrayList imports)
   at System.Xml.Schema.Preprocessor.Execute(XmlSchema schema, String targetNamespace, Boolean loadExternals)
   at System.Xml.Schema.XmlSchemaSet.PreprocessSchema(XmlSchema& schema, String targetNamespace)
   at System.Xml.Schema.XmlSchemaSet.Add(String targetNamespace, XmlSchema schema)
   at System.Xml.Schema.XmlSchemaSet.Add(String targetNamespace, XmlReader schemaDocument)
   at Xml.Schema.Linq.Extensions.GeneralExtensionMethods.ToXmlSchemaSet(XmlReader reader, XmlResolver resolver) in D:\a\1\s\XObjectsCore\Extensions\GeneralExtensionMethods.cs:line 68
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTree(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 344
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTreeOrError(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 354

Check failure on line 1 in Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("LegalRuleML")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / LinqToXsdCore (Build, test for PR)

Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("LegalRuleML")

Xml.Schema.Linq.LinqToXsdException : C:\LegalRuleML\basic.lrml-basic.xsd failed to generated code.
  ----> System.Xml.Schema.XmlSchemaException : The global element 'http://docs.oasis-open.org/legalruleml/ns/v1.0/:LegalRuleML' has already been declared.
Raw output
   at Xml.Schema.Linq.Tests.CodeGenerationTests.CheckTypeOfVoidExpressionsInGeneratedCode(IEnumerable`1 xsdsToProcess, Int32 randomSubset) in D:\a\1\s\XObjectsTests\CodeGenerationTests.cs:line 156
   at Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode(String assemblyName) in D:\a\1\s\XObjectsTests\CodeGenerationTests.cs:line 106
--XmlSchemaException
   at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object sender, ValidationEventArgs e)
   at System.Xml.Schema.Compiler.Prepare(XmlSchema schema, Boolean cleanup)
   at System.Xml.Schema.XmlSchemaSet.Compile()
   at Xml.Schema.Linq.Extensions.GeneralExtensionMethods.ToXmlSchemaSet(XmlReader reader, XmlResolver resolver) in D:\a\1\s\XObjectsCore\Extensions\GeneralExtensionMethods.cs:line 68
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTree(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 344
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTreeOrError(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 354

Check failure on line 1 in Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("XSD")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / LinqToXsdCore (Build, test for PR)

Xml.Schema.Linq.Tests.CodeGenerationTests.NoVoidTypeOfExpressionsInGeneratedCode("XSD")

Xml.Schema.Linq.LinqToXsdException : C:\XSD\W3C XMLSchema v1_1.xsd failed to generated code.
  ----> System.Xml.Schema.XmlSchemaException : Invalid particle derivation by restriction - 'Derived element 'http://www.w3.org/2001/XMLSchema:any' is not a valid restriction of base element 'http://www.w3.org/2001/XMLSchema:sequence' according to Elt:Elt -- NameAndTypeOK.'.
Raw output
   at Xml.Schema.Linq.Tests.CodeGenerationTests.CheckTypeOfVoidExpressionsInGeneratedCode(IEnumerable`1 xsdsToProcess, Int32 randomSubset) in D:\a\1\s\XObjectsTests\CodeGenerationTests.cs:line 156
--XmlSchemaException
   at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object sender, ValidationEventArgs e)
   at System.Xml.Schema.Compiler.Compile()
   at System.Xml.Schema.Compiler.Execute(XmlSchemaSet schemaSet, SchemaInfo schemaCompiledInfo)
   at System.Xml.Schema.XmlSchemaSet.Compile()
   at Xml.Schema.Linq.Extensions.GeneralExtensionMethods.ToXmlSchemaSet(XmlReader reader, XmlResolver resolver) in D:\a\1\s\XObjectsCore\Extensions\GeneralExtensionMethods.cs:line 68
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTree(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 344
   at Xml.Schema.Linq.Tests.Utilities.GenerateSyntaxTreeOrError(IFileInfo xsdFile, IMockFileDataAccessor mfs) in D:\a\1\s\XObjectsTests\Utilities.cs:line 354