From 85e1d425458033408e257c13f80d5a19399b422f Mon Sep 17 00:00:00 2001 From: Yusuke Tsutsumi Date: Tue, 5 Nov 2024 13:27:59 -0800 Subject: [PATCH] more fixes - incorrect syntax in 132 create. --- aep/general/0133/aep.md.j2 | 10 ++++--- aep/general/oas.yaml | 58 -------------------------------------- 2 files changed, 6 insertions(+), 62 deletions(-) diff --git a/aep/general/0133/aep.md.j2 b/aep/general/0133/aep.md.j2 index e60eaa2b..59a5ce59 100644 --- a/aep/general/0133/aep.md.j2 +++ b/aep/general/0133/aep.md.j2 @@ -64,7 +64,7 @@ rpc CreateBook(CreateBookRequest) returns (Book) { {% tab oas %} -{% sample '../oas.yaml', '/publishers/{publisher_id}/books:' %} +{% sample '../oas.yaml', '$.paths./publishers/{publisher}/books.post' %} {% endtabs %} @@ -110,9 +110,9 @@ message CreateBookRequest { {% tab oas %} -- The request body **must** be the resource being created. +{% sample '../oas.yaml', '$.paths./publishers/{publisher}/books.post.requestBody' %} -{% sample '../oas.yaml', 'book:' %} +- The request body **must** be the resource being created. {% endtabs %} @@ -164,7 +164,9 @@ publishers/012345678-abcd-cdef/books/12341234-5678-abcd {% tab oas %} -- The `id` is a query parameter on the request URI. +{% sample '../oas.yaml', '$.paths./publishers/{publisher}/books.post.requestBody' %} + +- The `id` field **must** be a query parameter on the request. {% endtabs %} diff --git a/aep/general/oas.yaml b/aep/general/oas.yaml index 39d5db83..e44bc54a 100644 --- a/aep/general/oas.yaml +++ b/aep/general/oas.yaml @@ -100,7 +100,6 @@ paths: - in: query name: id required: true - schema: {} type: string requestBody: content: @@ -121,7 +120,6 @@ paths: - in: path name: isbn required: true - schema: {} type: string responses: '200': @@ -136,12 +134,10 @@ paths: - in: query name: max_page_size required: true - schema: {} type: integer - in: query name: page_token required: true - schema: {} type: string responses: '200': @@ -160,7 +156,6 @@ paths: - in: query name: id required: true - schema: {} type: string requestBody: content: @@ -181,7 +176,6 @@ paths: - in: path name: publisher required: true - schema: {} type: string responses: '200': @@ -192,7 +186,6 @@ paths: - in: path name: publisher required: true - schema: {} type: string responses: '200': @@ -206,7 +199,6 @@ paths: - in: path name: publisher required: true - schema: {} type: string requestBody: content: @@ -226,7 +218,6 @@ paths: - in: path name: publisher required: true - schema: {} type: string requestBody: content: @@ -247,17 +238,14 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: query name: max_page_size required: true - schema: {} type: integer - in: query name: page_token required: true - schema: {} type: string responses: '200': @@ -280,12 +268,10 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: query name: id required: true - schema: {} type: string requestBody: content: @@ -306,12 +292,10 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: path name: book required: true - schema: {} type: string responses: '200': @@ -322,12 +306,10 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: path name: book required: true - schema: {} type: string responses: '200': @@ -341,37 +323,10 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: path name: book required: true - schema: {} - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/book' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/book' - description: Successful response - put: - parameters: - - in: path - name: publisher - required: true - schema: {} - type: string - - in: path - name: book - required: true - schema: {} type: string requestBody: content: @@ -392,22 +347,18 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: path name: book required: true - schema: {} type: string - in: query name: max_page_size required: true - schema: {} type: integer - in: query name: page_token required: true - schema: {} type: string responses: '200': @@ -426,17 +377,14 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: path name: book required: true - schema: {} type: string - in: query name: id required: true - schema: {} type: string requestBody: content: @@ -457,17 +405,14 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: path name: book required: true - schema: {} type: string - in: path name: book-edition required: true - schema: {} type: string responses: '200': @@ -478,17 +423,14 @@ paths: - in: path name: publisher required: true - schema: {} type: string - in: path name: book required: true - schema: {} type: string - in: path name: book-edition required: true - schema: {} type: string responses: '200':