fluree / db

Fluree database library
https://fluree.github.io/db/
Other
333 stars 21 forks source link

Fix Schema Map Deserialization #763

Closed zonotope closed 2 months ago

zonotope commented 2 months ago

The schema map wasn't being properly (de)serialized. First, the schema serialization code was checking for a number when it should have been checking for an sid when deciding which keys in the schema map to serialize. Secondly, the deserialization code didn't take into account that the serialized schema sids were wrapped in vectors. This patch fixes both of those issues so that the schema now loads properly.