From e8858ef773e3395369a2140f9891f1a87d5462b3 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:12:34 -0500 Subject: [PATCH] Treat solely tables with-@TYPE items as AP objects By default, at least. @TYPE is considered a requirement for a proper node object, as per the spec. --- src/json-ld.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json-ld.lisp b/src/json-ld.lisp index 16e1c00..4fd7151 100644 --- a/src/json-ld.lisp +++ b/src/json-ld.lisp @@ -339,8 +339,8 @@ parsed into hash-tables) will be parsed into CLOS objects." (type (identify-json-type parsed-table ctx)) (type-def (or (gethash type *json-types*) (gethash *default-json-type* *json-types*))) - (valid-object (or type (gethash "@id" table)))) - (if (or valid-object (gethash ".always-object" ctx)) + (valid-object-p type)) + (if (or valid-object-p (gethash ".always-object" ctx)) (parse-table-into-object parsed-table type-def ctx) parsed-table))))