Skip to content

Instantly share code, notes, and snippets.

package org.springframework.boot.liquibase.autoconfigure;
import liquibase.Scope;
import liquibase.exception.LiquibaseException;
import liquibase.integration.spring.SpringLiquibase;
import org.springframework.core.env.Environment;
import org.springframework.util.Assert;
import java.sql.SQLOutput;
@dmiska25
dmiska25 / postman_sync.py
Created May 28, 2025 04:18
Sync a Postman collection with an OpenAPI specification **without** overwriting team‑specific tweaks (auth, test scripts, headers, etc.)
"""
postman_sync.py
────────────────
Sync a Postman collection with an OpenAPI specification **without** overwriting
team‑specific tweaks (auth, test scripts, headers, etc.).
What this minimal script does
─────────────────────────────
1. Loads an OpenAPI (JSON or YAML) file.
2. Sanitises it (replaces enum examples with <enum> to avoid noisy diffs).