JSON Schema Compatibility and the Robustness Principle
yokota.blog·8h·
Discuss: Hacker News

In a previous article, I explained how to evolve JSON Schemas, based on whether backward, forward, or full (both backward and forward) compatibility is desired. In JSON Schema, the value of additionalProperties determines whether the JSON content model is open (if the value is true), closed (if the value is false), or partially open (if the value is any other value besides true or false). The discussion in that article led to the following points.

  • For backward compatibility, one can add optional properties to an open content model or remove optional properties from a closed content model.
  • For forward compatibility, one can add optional properties to a closed content model or remove optiona…

Similar Posts

Loading similar posts...