From 63c1cd7bff14b96fa2ea2bf93fbd6b0f01a19535 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 8 Nov 2022 15:18:35 +1100 Subject: [PATCH] Remove invalid id attribute from DFC offer This one is a bit confusing. The attribute changes throughout the different versions of the ontology and the DFC examples are not in line with the specification. WIP I guess. The previous nil attribute failed JSON-LD validation and DFC examples just contain the reference as I did it now. But I think that we will need to update it again vor DFC-v1.7. --- .../app/serializers/dfc_provider/offer_serializer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/dfc_provider/app/serializers/dfc_provider/offer_serializer.rb b/engines/dfc_provider/app/serializers/dfc_provider/offer_serializer.rb index bf5c5daafe..02c00a2e38 100644 --- a/engines/dfc_provider/app/serializers/dfc_provider/offer_serializer.rb +++ b/engines/dfc_provider/app/serializers/dfc_provider/offer_serializer.rb @@ -20,8 +20,7 @@ module DfcProvider def offers_to { - '@type' => '@id', - '@id' => nil + '@type' => '@id' } end