From aeda7a8f8b43d5bc13f9ef8244412c3dcb881437 Mon Sep 17 00:00:00 2001 From: mferrera Date: Thu, 19 Dec 2024 12:57:49 +0100 Subject: [PATCH] DROPME: showing it works --- schema/definitions/0.8.0/schema/fmu_results.json | 3 +++ src/fmu/dataio/_model/root.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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)