From 0e2bbf58d47073b77b338983258107e80f2cbabd Mon Sep 17 00:00:00 2001 From: Lucky3028 Date: Fri, 9 Dec 2022 20:50:25 +0900 Subject: [PATCH 1/2] fix: fix ref --- schema/paths/forms/eachForm.yml | 2 +- schema/paths/forms/index.yml | 10 +++++----- schema/paths/forms/types/form.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/schema/paths/forms/eachForm.yml b/schema/paths/forms/eachForm.yml index 083df07..93a4b5c 100644 --- a/schema/paths/forms/eachForm.yml +++ b/schema/paths/forms/eachForm.yml @@ -14,6 +14,6 @@ get: content: application/json: schema: - $ref: './form.yml#/schemas/form' + $ref: './types/form.yml#/schemas/form' '404': description: フォームが存在しない diff --git a/schema/paths/forms/index.yml b/schema/paths/forms/index.yml index 659f55c..dc395eb 100644 --- a/schema/paths/forms/index.yml +++ b/schema/paths/forms/index.yml @@ -10,18 +10,18 @@ post: type: object properties: id: - $ref: './form.yml#/schemas/form_id' + $ref: './types/form.yml#/schemas/form_id' '500': application/json: schema: type: object allOf: - - $ref: './form.yml#/schemas/form_dynamic_props' + - $ref: './types/form.yml#/schemas/form_dynamic_props' - properties: questions: type: array items: - $ref: './question.yml#/schemas/question_dynamic_props' + $ref: './types/question.yml#/schemas/question_dynamic_props' required: - name - questions @@ -73,8 +73,8 @@ get: allOf: - properties: id: - $ref: './form.yml#/schemas/form_id' - - $ref: './form.yml#/schemas/form_dynamic_props' + $ref: './types/form.yml#/schemas/form_id' + - $ref: './types/form.yml#/schemas/form_dynamic_props' required: - id - name diff --git a/schema/paths/forms/types/form.yml b/schema/paths/forms/types/form.yml index b5d44c1..2c4672a 100644 --- a/schema/paths/forms/types/form.yml +++ b/schema/paths/forms/types/form.yml @@ -27,7 +27,7 @@ schemas: id: $ref: '#/schemas/form_id' questions: - $ref: './question.yml#/schemas/questions' + $ref: './types/question.yml#/schemas/questions' required: - id - name From 2de0f3ff960758ca9ea0797fa2f3e181e3e37957 Mon Sep 17 00:00:00 2001 From: Lucky3028 Date: Fri, 9 Dec 2022 20:52:17 +0900 Subject: [PATCH 2/2] fix: fix ref --- schema/paths/forms/types/form.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/paths/forms/types/form.yml b/schema/paths/forms/types/form.yml index 2c4672a..b5d44c1 100644 --- a/schema/paths/forms/types/form.yml +++ b/schema/paths/forms/types/form.yml @@ -27,7 +27,7 @@ schemas: id: $ref: '#/schemas/form_id' questions: - $ref: './types/question.yml#/schemas/questions' + $ref: './question.yml#/schemas/questions' required: - id - name