File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/py_semantic_taxonomy/adapters/routers Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -254,3 +254,5 @@ class Association(BaseModel):
254254 description = "https://rdf-vocabulary.ddialliance.org/xkos.html#correspondences" ,
255255 example = [{"@id" : "http://data.europa.eu/xsp/cn2024/010011000090" }],
256256 )
257+
258+ model_config = ConfigDict (extra = "allow" )
Original file line number Diff line number Diff line change @@ -108,5 +108,9 @@ def test_association_from_json_ld(cn):
108108
109109
110110def test_association_to_json_ld (cn ):
111+ cn .association_top ["foo" ] = "bar"
112+
113+ assert Association .from_json_ld (cn .association_top ).extra ["foo" ] == "bar"
111114 given = Association .from_json_ld (cn .association_top ).to_json_ld ()
115+ assert given ["foo" ] == "bar"
112116 assert given == cn .association_top , "Conversion to JSON-LD failed"
You can’t perform that action at this time.
0 commit comments