diff --git a/schema/definitions/0.8.0/schema/fmu_results.json b/schema/definitions/0.8.0/schema/fmu_results.json index 35ce99019..0b26ef9e0 100644 --- a/schema/definitions/0.8.0/schema/fmu_results.json +++ b/schema/definitions/0.8.0/schema/fmu_results.json @@ -214,6 +214,9 @@ "AnyProduct": { "description": "The ``product`` field contains information about which product this data object\nrepresent. Data that is tagged as a product is a standard result from FMU that\nconforms to a specified standard.\n\nThis class, ``AnyProduct``, acts as a container for different data products, with\nthe exact product being identified by the ``product.name`` field.", "discriminator": { + "mapping": { + "inplace_volumes": "#/$defs/InplaceVolumesProduct" + }, "propertyName": "name" }, "oneOf": [ diff --git a/src/fmu/dataio/_model/root.py b/src/fmu/dataio/_model/root.py index 627f5d152..8d7d1f8fe 100644 --- a/src/fmu/dataio/_model/root.py +++ b/src/fmu/dataio/_model/root.py @@ -274,7 +274,6 @@ def generate( # sumo-core's validator does not recognize these. del json_schema["discriminator"]["mapping"] del json_schema["$defs"]["AnyData"]["discriminator"]["mapping"] - del json_schema["$defs"]["AnyProduct"]["discriminator"]["mapping"] return self._remove_format_path(json_schema)