'JSON schema registration failing on Full compatibility mode in AWS Glue Schema Registry

Using AWS Glue schema registry, I'm trying to register a schema of JSON format with FULL compatibility mode but the schema version [refer version(2) below] is getting failed due to compatibility issues.

Version(1)

{
  "type": "object",
  "properties": {
    "foo": { "type": "string" },
    "bar": { "type": "string" }
  },
  "additionalProperties": { "type": "string" }
}

Version(2)

{
  "type": "object",
  "properties": {
    "foo": { "type": "string" },
    "bar": { "type": "string" },
    "zap": { "type": "string" }
  },
  "additionalProperties": { "type": "string" }
}

I've referred https://yokota.blog/2021/03/29/understanding-json-schema-compatibility/ for creating the sample schemas.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source