Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.1.0

Check warning on line 1 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

oas3-api-servers OpenAPI "servers" must be present and non-empty array.

info:

Check warning on line 3 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

info-contact Info object must have "contact" object. info
title: Checkin API
Expand All @@ -7,7 +7,7 @@

paths:
/verify-email:
post:

Check warning on line 10 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./verify-email.post
summary: isct メールアドレスの確認メールを送信
tags:
- Auth
Expand All @@ -32,7 +32,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/verify-email/confirm:
get:

Check warning on line 35 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./verify-email/confirm.get
summary: メール確認トークンの確認ページを表示
tags:
- Auth
Expand Down Expand Up @@ -64,7 +64,7 @@
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
post:

Check warning on line 67 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./verify-email/confirm.post
summary: メール確認トークンを消費してログインを完了
tags:
- Auth
Expand Down Expand Up @@ -103,7 +103,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/csrf:
get:

Check warning on line 106 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./csrf.get
summary: CSRF トークン用 cookie を発行
tags:
- Auth
Expand Down Expand Up @@ -218,7 +218,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/invoices:
get:

Check warning on line 221 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./invoices.get
summary: 請求書由来の入金一覧を取得
tags:
- Invoice
Expand All @@ -233,13 +233,7 @@
description: 請求書ステータス
in: query
schema:
type: string
enum:
- draft
- open
- paid
- uncollectible
- void
$ref: '#/components/schemas/InvoiceStatus'
- name: collection_method
description: 請求書の支払い方法
in: query
Expand Down Expand Up @@ -288,7 +282,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/webhook/invoice-paid:
post:

Check warning on line 285 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./webhook/invoice-paid.post
summary: Webhook の invoice.paid イベントを受け取る
tags:
- Webhook
Expand All @@ -315,7 +309,7 @@
$ref: '#/components/responses/InternalServerError'

/checkout/sessions:
get:

Check warning on line 312 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./checkout/sessions.get
summary: オンライン決済ページ由来の入金一覧を取得
tags:
- CheckoutSession
Expand Down Expand Up @@ -352,7 +346,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/admin:
get:

Check warning on line 349 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./admin.get
summary: 管理者の一覧を取得
tags:
- Admin
Expand Down Expand Up @@ -536,6 +530,16 @@
required:
- customer_id
- product_id
InvoiceStatus:
description: 請求書ステータス
type: string
enum:
- draft
- open
- paid
- uncollectible
- void
example: draft
PostInvoiceResponse:
description: Invoice creation result
type: object
Expand Down Expand Up @@ -590,15 +594,7 @@
customer:
$ref: '#/components/schemas/Customer'
status:
type: string
description: 請求書ステータス
enum:
- draft
- open
- paid
- uncollectible
- void
example: draft
$ref: '#/components/schemas/InvoiceStatus'
payment_intent:
type:
- string
Expand Down
146 changes: 67 additions & 79 deletions server/gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading