From 6d285d2c4fac3d17c6dd6dd7828c3b4e04cb6902 Mon Sep 17 00:00:00 2001 From: Jay Danielian Date: Thu, 1 Aug 2019 13:05:44 -0400 Subject: [PATCH] Notes in the todos --- .../lib/open_api/rswag/specs/example_group_helpers.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/rswag-specs/lib/open_api/rswag/specs/example_group_helpers.rb b/rswag-specs/lib/open_api/rswag/specs/example_group_helpers.rb index 9c356c5..b30277d 100644 --- a/rswag-specs/lib/open_api/rswag/specs/example_group_helpers.rb +++ b/rswag-specs/lib/open_api/rswag/specs/example_group_helpers.rb @@ -44,14 +44,9 @@ module OpenApi # TODO: setup travis CI? # MUST HAVES - # TODO: *** look at handling different ways schemas can be defined in 3.0 for requestBody and response - # can we handle all of them? - # Then can look at handling different request_body things like $ref, etc - # TODO: look at adding request_body method to handle diffs in Open API 2.0 to 3.0 - # TODO: look at adding examples in content request_body - # https://swagger.io/docs/specification/describing-request-body/ - # need to make sure we output requestBody in the swagger generator .json - # also need to make sure that it can handle content: , required: true/false, schema: ref + # need to run ```npm install``` in rswag-ui dir to get assets to load + # not sure if its an asset issue or what but this should load => http://localhost:3000/api-docs/index.html + # TODO: fix examples in the main README def request_body(attributes) # can make this generic, and accept any incoming hash (like parameter method)