GetDKAN / RootedJsonData

Access and modify JSON-based data objects while enforcing JSON Schema
GNU General Public License v3.0
1 stars 0 forks source link

Improve no property behavior and schema storage #6

Closed dafeder closed 3 years ago

dafeder commented 3 years ago

Fixes two issues:

  1. It was hard to tell if a property was actually set. Now, requesting a non-existant property will return null instead of false, and the magic __isset() method has been added.
  2. We were storing the schema as an Opis Schema object, but that's not very useful because it doesn't have any way to convert back into a string. Now we just store the string and instantiate a Schema object internally where needed.