@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (!(o instanceof SchemaDocument)) {
            return false;
        }

        SchemaDocument that = (SchemaDocument) o;
        return Objects.equals(idKeyword, that.idKeyword)
                && Objects.equals(schemaKeyword, that.schemaKeyword)
                && rootSchema.equals(that.rootSchema)
                && definitions.equals(that.definitions)
                && extensions.equals(that.extensions);
    }
Gets all extensions of the schema document.

@return Returns the extensions added to the schema.
smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/SchemaDocument.java