cmawhorter / fancy

1 stars 2 forks source link

Use json schema internally #31

Open cmawhorter opened 7 years ago

cmawhorter commented 7 years ago

The model the the template page receives has all properties wrapped in arrays. The reason being that the properties all behave identically.

In practice, this has as many problems as it solves. The theme is "dev land" anyway, so they understand type and can tell the diff between an array and string.

JSON schema would help the theme know what type of data they were dealing with.