Skip to content

Instantly share code, notes, and snippets.

Swagger schema validation failed.
#/paths/~1ordinals~1v1~1/get/responses/200/content/application~1json/schema/properties/server_version must NOT have additional properties
#/paths/~1ordinals~1v1~1/get/responses/200/content/application~1json/schema/properties/server_version must have required property '$ref'
#/paths/~1ordinals~1v1~1/get/responses/200/content/application~1json/schema/properties/server_version must match exactly one schema in oneOf
#/paths/~1ordinals~1v1~1/get/responses/200/content/application~1json/schema must have required property '$ref'
#/paths/~1ordinals~1v1~1/get/responses/200/content/application~1json/schema must match exactly one schema in oneOf
#/paths/~1ordinals~1v1~1/get/responses/200 must have required property '$ref'
#/paths/~1ordinals~1v1~1/get/responses/200 must match exactly one schema in oneOf
#/paths/~1ordinals~1v1~1inscriptions/get/parameters/0/schema/anyOf/0 must NOT have additional properties
#/paths/~1ordinals~1v1~1inscriptions/get/parameters/0/schema/anyO
@kyranjamie
kyranjamie / migrate-labels-no-spaces.js
Created March 12, 2024 12:14
Script to remove all spaces from Github labels
// Super hacky script to paste into dev tools to remove spaces from github labels
[...document.querySelectorAll(".js-label-list > div")].forEach(async (el, i) => {
await new Promise((resolve) => setTimeout(resolve, 400 * i));
const edit = el.querySelector(".js-edit-label");
edit?.click();
const label = el.querySelector('[placeholder="Label name"]');
const value = label?.getAttribute("value");
const newValue = value?.replaceAll(' ', '')
console.log(newValue)
label?.setAttribute("value", newValue);