import { OverrideObject } from '@asyncapi/diff'; const unclassified: OverrideObject[string] = { add: 'unclassified', remove: 'unclassified', edit: 'unclassified', }; /** * Asyncapi classifier overrides. See: https://github.com/asyncapi/diff#standard-object. * Standard defs (defaults) are here: https://github.com/asyncapi/diff/blob/master/src/standard.ts. */ export const override: OverrideObject = { // Custom property used to name queues. '/x-service-id': { add: 'breaking', remove: 'breaking', edit: 'breaking', }, // Changing or removing queue name is a breaking change. '/channels/*/bindings/amqp/queue/name': { add: 'non-breaking', remove: 'breaking', edit: 'breaking', }, // (workaround) To find the rule above every subpath needs to be defined (if not already defined in standard defs) // see: https://github.com/asyncapi/diff/pull/19 '/channels/*/bindings/amqp/queue': unclassified, '/channels/*/bindings/amqp': unclassified, };