val icon indicating copy to clipboard operation
val copied to clipboard

Support backward compatibility checking

Open thisfred opened this issue 10 years ago • 0 comments

As a developer using val I want to be able to automatically verify if modifications to one of my schema's will be backwards compatible with a previous version.

so something like:

schema_v1 = Schema({
    "username": str,
    "password": str})

schema_v2 = Schema({
    "username": str,
    "one_time_code": str})

print(is_backward_compatible(schema_v2, schema_v1)
False

schema_v2 = Schema({
    "username": str,
    Optional(password): str,
    Optional(one_time_code): str})

print(is_backward_compatible(schema_v2, schema_v1)
True

thisfred avatar Feb 16 '15 00:02 thisfred