ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.

DISCRIMINATOR-OAS

OpenAPI polymorphism keyword applied to EDI schemas.

Definition

discriminator is defined in OpenAPI 3.0+. Declares a propertyName whose value dynamically selects the sub-schema to apply (oneOf mapping). Used to model heterogeneous EDI message families — discriminator.propertyName='transactionSetId', mapping to '850': PurchaseOrder, '855': PurchaseOrderAck, '810': Invoice.

Origin

Introduced in OpenAPI 3.0 (2017), refined in 3.1 (JSON-Schema 2020-12 alignment).

Example in context

components.schemas.X12Message: {oneOf: [{$ref: '#/components/schemas/PO'}, ...], discriminator: {propertyName: 'transactionSetId', mapping: {'850': '#/components/schemas/PO'}}}

Last updated: May 15, 2026