Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapiのwarn #728

Open
mehm8128 opened this issue Oct 26, 2023 · 1 comment
Open

openapiのwarn #728

mehm8128 opened this issue Oct 26, 2023 · 1 comment
Labels
good first issue Good issue for new contributors to get started with

Comments

@mehm8128
Copy link
Contributor

#726File以外に見逃してたところがあった
他の命名と合うような感じでoperationIdをつけたい

[main] WARN  o.o.codegen.DefaultCodegen - Empty operationId found for path: get /tags/{tagID}. Renamed to auto-generated operationId: tagsTagIDGet
[main] WARN  o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /tags/{tagID}. Renamed to auto-generated operationId: tagsTagIDDelete
@mehm8128 mehm8128 changed the title openapiのエラー openapiのwarn Oct 26, 2023
@mehm8128 mehm8128 added the good first issue Good issue for new contributors to get started with label Oct 30, 2023
@H1rono
Copy link
Member

H1rono commented Jun 23, 2024

Jomon/docs/swagger.yaml

Lines 392 to 435 in 444568f

/tags/{tagID}:
parameters:
- name: tagID
in: path
required: true
schema:
type: string
format: uuid
get:
description: タグの情報を取得する。
tags:
- Tags
responses:
"200":
description: 取得に成功した場合。
content:
application/json:
schema:
# なにこれ
allOf:
- $ref: "#/components/schemas/Tag"
- type: object
properties:
transactions:
type: array
items:
type: string
format: uuid
requests:
type: array
items:
type: string
format: uuid
"404":
$ref: "#/components/responses/404"
delete:
description: タグを削除する
tags:
- Tags
responses:
"200":
description: 削除に成功した場合。
"404":
$ref: "#/components/responses/404"

operationIdが(descriptionと同じレベルに)指定されていないのが原因なので、適切なoperationIdを設定する
だけ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good issue for new contributors to get started with
Projects
None yet
Development

No branches or pull requests

2 participants