Skip to content
Snippets Groups Projects
Commit 3db26f2b authored by syuilo's avatar syuilo
Browse files

fix(backend): fix openAPI operationId format

parent 6bd78770
No related branches found
No related tags found
6 merge requests!556release 2024.5.0,!554prepare for 2024.5, 2nd try,!552prepare for release 2024.5,!516merge from misskey: preparing for release 2024.5.0,!502merge from misskey at end of April,!479more merges from misskey
......@@ -93,7 +93,7 @@ export function genOpenapiSpec(config: Config, includeSelfRef = false) {
const hasBody = (schema.type === 'object' && schema.properties && Object.keys(schema.properties).length >= 1);
const info = {
operationId: endpoint.name,
operationId: endpoint.name.replaceAll('/', '___'), // NOTE: スラッシュは使えない
summary: endpoint.name,
description: desc,
externalDocs: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment