From c97789c85ad038f72d3e64800188aecfd49506e3 Mon Sep 17 00:00:00 2001 From: caixw Date: Sat, 23 Sep 2023 11:38:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=A0=E9=99=A4=20misc/openapi.y?= =?UTF-8?q?aml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 现在可以直接引用 RFC7807 --- .github/workflows/cache.yml | 9 ++++++++- misc/openapi.yaml | 34 ---------------------------------- 2 files changed, 8 insertions(+), 35 deletions(-) delete mode 100644 misc/openapi.yaml diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 82dc1822..b67c5754 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -43,7 +43,14 @@ jobs: go-version: ${{ matrix.go }} id: go + - name: Vet + run: | + cd cache/caches + go vet -v ./... + - name: Test env: LANG: en - run: go test -v + run: | + cd cache/caches + go test -v ./... diff --git a/misc/openapi.yaml b/misc/openapi.yaml deleted file mode 100644 index cc56950d..00000000 --- a/misc/openapi.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# SPDX-License-Identifier: MIT - -# 这并不是一个完整的 openapi 文档,仅定义了部分常用的类型, -# 可被作为 restdoc 的一部分被 @openapi 引用。 - -openapi: 3.1.0 -components: - schemas: - github.com.issue9.web.Problem: - type: object - properties: - title: - type: string - type: - type: string - format: uri - default: 'about:blank' - detail: - type: string - status: - type: integer - format: int32 - minimum: 100 - maximum: 600 - params: - type: array - items: - type: object - properties: - name: - type: string - reason: - type: string -