← top index

Patched schemas (xsd-patched/)

The verbatim copies in xsd/ reflect the upstream repository and most of them do not compile standalone (typically a missing <xs:include> of another schema such as ore_types.xsd; instruments.xsd also lacks global Trade/Portfolio declarations). The copies here apply mechanical fixes only (add includes, lowercase include targets, declare the upstream-intended global elements) and are published only if they pass an lxml compile check at build time. Use these for validating your own XML.

SchemaPatch appliedCompile status
baseltrafficlightconfig.xsdok
calendaradjustment.xsdadded include of ore_types.xsd (provides calendar); added include of instruments.xsd (provides date)ok
collateralbalance.xsdadded include of ore_types.xsd (provides currencyCode); added include of instruments.xsd (provides nettingSetGroup)ok
conventions.xsdadded include of ore_types.xsd (provides averagingDataPeriodType); added include of instruments.xsd (provides date)ok
counterparty.xsdadded include of simulation.xsd (provides correlationValue)ok
creditsimulation.xsdadded include of ore_types.xsd (provides bool)ok
currencyconfig.xsdadded include of ore_types.xsd (provides roundingType)ok
curveconfig.xsdadded include of instruments.xsd (provides date)ok
historicalreturnconfig.xsdok
iborfallbackconfig.xsdadded include of ore_types.xsd (provides bool); added include of instruments.xsd (provides date)ok
input.xsdinclude target lowercased: baselTrafficLightconfig.xsd -> baseltrafficlightconfig.xsdstill-fails — Element '{http://www.w3.org/2001/XMLSchema}element': A global element declaration 'subTradeGroup' does already exist., line 7
instruments.xsddeclared global Trade/Portfolio elements (mirrors the upstream-commented definition), abstract subTradeGroup, included scriptlibrary.xsd (ore_script)ok
nettingsetdefinitions.xsdadded include of ore_types.xsd (provides currencyCode); added include of instruments.xsd (provides nettingSetGroup)ok
ore.xsdok
ore_types.xsdunchanged (defines shared simple types)ok
pricingengines.xsdok
referencedata.xsdadded include of ore_types.xsd (provides CurrencyHedgedIndexRebalancingStrategy); added include of instruments.xsd (provides bondBasketData)ok
scriptlibrary.xsdok
sensitivity.xsdadded include of ore_types.xsd (provides bool)ok
simmcalibration.xsdok
simulation.xsdadded include of ore_types.xsd (provides bool)ok
stress.xsdadded include of ore_types.xsd (provides bool); added include of sensitivity.xsd (provides discountcurves)ok
todaysmarket.xsdadded include of ore_types.xsd (provides currencyCode)ok

Validation of real example files against the patched set

CheckResult
instruments.xsd vs examples/marketrisk/input/zerotoparshift/portfolio.xmlvalid
instruments.xsd vs examples/ore-python/notebooks/dependencies/portfolio.xmlvalid
instruments.xsd vs examples/ore-python/notebooks/example_4/input/portfolio.xmlvalid
conventions.xsd vs shared/conventions.xmlvalid
curveconfig.xsd vs shared/curveconfig.xmlvalid
todaysmarket.xsd vs shared/todaysmarket.xmlvalid
pricingengines.xsd vs shared/pricingengine.xmlvalid

Gate ran with lxml at build time, ORE 1.8.15.