From d3954eee34661ab68896029edb55bb4d8ea377a7 Mon Sep 17 00:00:00 2001 From: "bot-go-openapi[bot]" <246880138+bot-go-openapi[bot]@users.noreply.github.com> Date: Wed, 10 Jun 2026 18:19:50 +0000 Subject: [PATCH] chore: regenerate examples from go-swagger@master Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../client/customers/create_responses.go | 16 +- .../client/customers/customers_client.go | 48 +-- .../client/customers/get_id_responses.go | 32 +- .../restapi/operations/auth_sample_api.go | 2 +- .../restapi/operations/customers/create.go | 8 +- .../operations/customers/create_parameters.go | 5 +- .../operations/customers/create_responses.go | 24 +- .../restapi/operations/customers/get_id.go | 8 +- .../operations/customers/get_id_parameters.go | 5 +- .../operations/customers/get_id_responses.go | 48 +-- ...auto_configure_a_to_do_list_application.go | 2 +- .../a_to_do_list_application_api.go | 2 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- .../restapi/operations/todos/find_todos.go | 8 +- .../operations/todos/find_todos_parameters.go | 12 +- .../operations/todos/find_todos_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- cli/cli/add_one_operation.go | 4 +- cli/cli/destroy_one_operation.go | 4 +- cli/cli/error_model.go | 12 +- cli/cli/find_todos_operation.go | 8 +- cli/cli/github_reactions_model.go | 18 +- cli/cli/item_model.go | 18 +- cli/cli/put_test2766_operation.go | 8 +- cli/cli/update_one_operation.go | 8 +- cli/client/operations/operations_client.go | 26 +- .../operations/put_test2766_responses.go | 8 +- cli/client/todos/add_one_responses.go | 16 +- cli/client/todos/destroy_one_responses.go | 16 +- cli/client/todos/find_todos_responses.go | 16 +- cli/client/todos/todos_client.go | 92 ++--- cli/client/todos/update_one_responses.go | 16 +- composed-auth/restapi/operations/add_order.go | 14 +- .../operations/add_order_parameters.go | 7 +- .../restapi/operations/add_order_responses.go | 36 +- .../restapi/operations/get_account.go | 12 +- .../operations/get_account_responses.go | 32 +- composed-auth/restapi/operations/get_items.go | 12 +- .../restapi/operations/get_items_responses.go | 24 +- composed-auth/restapi/operations/get_order.go | 12 +- .../operations/get_order_parameters.go | 7 +- .../restapi/operations/get_order_responses.go | 40 +-- .../restapi/operations/get_orders_for_item.go | 12 +- .../get_orders_for_item_parameters.go | 7 +- .../get_orders_for_item_responses.go | 40 +-- .../operations/multi_auth_example_api.go | 54 ++- .../stratoscale/client/pet/pet_client.go | 52 +-- .../client/pet/pet_create_parameters.go | 7 +- .../client/pet/pet_create_responses.go | 16 +- .../client/pet/pet_delete_parameters.go | 11 +- .../client/pet/pet_delete_responses.go | 24 +- .../client/pet/pet_get_parameters.go | 11 +- .../client/pet/pet_get_responses.go | 24 +- .../client/pet/pet_list_parameters.go | 7 +- .../client/pet/pet_list_responses.go | 16 +- .../client/pet/pet_update_parameters.go | 7 +- .../client/pet/pet_update_responses.go | 32 +- .../client/pet/pet_upload_image_parameters.go | 25 +- .../client/pet/pet_upload_image_responses.go | 8 +- .../client/store/inventory_get_responses.go | 8 +- .../client/store/order_create_parameters.go | 7 +- .../client/store/order_create_responses.go | 16 +- .../client/store/order_delete_parameters.go | 11 +- .../client/store/order_delete_responses.go | 24 +- .../client/store/order_get_parameters.go | 11 +- .../client/store/order_get_responses.go | 24 +- .../stratoscale/client/store/store_client.go | 48 +-- .../stratoscale/restapi/configure_petstore.go | 24 +- .../restapi/operations/pet/pet_create.go | 8 +- .../operations/pet/pet_create_parameters.go | 8 +- .../operations/pet/pet_create_responses.go | 20 +- .../restapi/operations/pet/pet_delete.go | 8 +- .../operations/pet/pet_delete_parameters.go | 13 +- .../operations/pet/pet_delete_responses.go | 24 +- .../restapi/operations/pet/pet_get.go | 8 +- .../operations/pet/pet_get_parameters.go | 8 +- .../operations/pet/pet_get_responses.go | 28 +- .../restapi/operations/pet/pet_list.go | 8 +- .../operations/pet/pet_list_parameters.go | 10 +- .../operations/pet/pet_list_responses.go | 20 +- .../restapi/operations/pet/pet_update.go | 8 +- .../operations/pet/pet_update_parameters.go | 8 +- .../operations/pet/pet_update_responses.go | 36 +- .../operations/pet/pet_upload_image.go | 8 +- .../pet/pet_upload_image_parameters.go | 20 +- .../pet/pet_upload_image_responses.go | 12 +- .../restapi/operations/petstore_api.go | 2 +- .../restapi/operations/store/inventory_get.go | 8 +- .../store/inventory_get_responses.go | 12 +- .../restapi/operations/store/order_create.go | 8 +- .../store/order_create_parameters.go | 8 +- .../store/order_create_responses.go | 20 +- .../restapi/operations/store/order_delete.go | 12 +- .../store/order_delete_parameters.go | 10 +- .../store/order_delete_responses.go | 24 +- .../restapi/operations/store/order_get.go | 12 +- .../operations/store/order_get_parameters.go | 12 +- .../operations/store/order_get_responses.go | 28 +- .../operations/external_types_demo_api.go | 16 +- .../restapi/operations/get_stream.go | 8 +- .../operations/get_stream_responses.go | 16 +- .../restapi/operations/get_test_swagger.go | 8 +- .../operations/get_test_swagger_responses.go | 16 +- .../restapi/operations/post_test_swagger.go | 8 +- .../post_test_swagger_parameters.go | 14 +- .../operations/post_test_swagger_responses.go | 18 +- .../restapi/operations/put_test_swagger.go | 8 +- .../operations/put_test_swagger_parameters.go | 16 +- .../operations/put_test_swagger_responses.go | 14 +- .../client/uploads/upload_file_responses.go | 8 +- file-server/client/uploads/uploads_client.go | 26 +- .../restapi/operations/file_upload_api.go | 2 +- .../restapi/operations/uploads/upload_file.go | 8 +- .../uploads/upload_file_parameters.go | 7 +- .../uploads/upload_file_responses.go | 8 +- .../operations/simple_to_do_list_api_api.go | 8 +- .../flag/restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- flags/flag/restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../operations/simple_to_do_list_api_api.go | 8 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- .../go-flags/restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../operations/simple_to_do_list_api_api.go | 8 +- .../pflag/restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- flags/pflag/restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../operations/simple_to_do_list_api_api.go | 8 +- .../xflag/restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- flags/xflag/restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../operations/simple_to_do_list_api_api.go | 8 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- .../restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../operations/simple_to_do_list_api_api.go | 8 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- flags/xpflag/restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- generated/restapi/operations/pet/add_pet.go | 8 +- .../operations/pet/add_pet_parameters.go | 6 +- .../operations/pet/add_pet_responses.go | 8 +- .../restapi/operations/pet/delete_pet.go | 8 +- .../operations/pet/delete_pet_parameters.go | 15 +- .../operations/pet/delete_pet_responses.go | 8 +- .../operations/pet/find_pets_by_status.go | 12 +- .../pet/find_pets_by_status_parameters.go | 8 +- .../pet/find_pets_by_status_responses.go | 20 +- .../operations/pet/find_pets_by_tags.go | 12 +- .../pet/find_pets_by_tags_parameters.go | 8 +- .../pet/find_pets_by_tags_responses.go | 20 +- .../restapi/operations/pet/get_pet_by_id.go | 12 +- .../pet/get_pet_by_id_parameters.go | 8 +- .../operations/pet/get_pet_by_id_responses.go | 28 +- .../restapi/operations/pet/update_pet.go | 8 +- .../operations/pet/update_pet_parameters.go | 6 +- .../operations/pet/update_pet_responses.go | 24 +- .../operations/pet/update_pet_with_form.go | 8 +- .../pet/update_pet_with_form_parameters.go | 24 +- .../pet/update_pet_with_form_responses.go | 8 +- generated/restapi/operations/petstore_api.go | 12 +- .../restapi/operations/store/delete_order.go | 12 +- .../store/delete_order_parameters.go | 8 +- .../store/delete_order_responses.go | 16 +- .../operations/store/get_order_by_id.go | 12 +- .../store/get_order_by_id_parameters.go | 8 +- .../store/get_order_by_id_responses.go | 28 +- .../restapi/operations/store/place_order.go | 8 +- .../store/place_order_parameters.go | 6 +- .../operations/store/place_order_responses.go | 20 +- .../restapi/operations/user/create_user.go | 12 +- .../operations/user/create_user_parameters.go | 6 +- .../operations/user/create_user_responses.go | 8 +- .../user/create_users_with_array_input.go | 8 +- ...reate_users_with_array_input_parameters.go | 6 +- ...create_users_with_array_input_responses.go | 8 +- .../user/create_users_with_list_input.go | 8 +- ...create_users_with_list_input_parameters.go | 6 +- .../create_users_with_list_input_responses.go | 8 +- .../restapi/operations/user/delete_user.go | 12 +- .../operations/user/delete_user_parameters.go | 8 +- .../operations/user/delete_user_responses.go | 16 +- .../operations/user/get_user_by_name.go | 8 +- .../user/get_user_by_name_parameters.go | 8 +- .../user/get_user_by_name_responses.go | 28 +- .../restapi/operations/user/login_user.go | 8 +- .../operations/user/login_user_parameters.go | 12 +- .../operations/user/login_user_responses.go | 20 +- .../restapi/operations/user/logout_user.go | 8 +- .../operations/user/logout_user_responses.go | 8 +- .../restapi/operations/user/update_user.go | 12 +- .../operations/user/update_user_parameters.go | 14 +- .../operations/user/update_user_responses.go | 16 +- .../restapi/operations/greeter/greet.go | 8 +- .../restapi/operations/greeter/greet_name.go | 8 +- .../greeter/greet_name_parameters.go | 7 +- .../greeter/greet_name_responses.go | 24 +- .../operations/greeter/greet_responses.go | 24 +- middleware/restapi/operations/greeter_api.go | 6 +- oauth2/restapi/operations/customers/create.go | 8 +- .../operations/customers/create_parameters.go | 5 +- .../operations/customers/create_responses.go | 24 +- oauth2/restapi/operations/customers/get_id.go | 8 +- .../operations/customers/get_id_parameters.go | 5 +- .../operations/customers/get_id_responses.go | 48 +-- .../restapi/operations/get_auth_callback.go | 8 +- .../operations/get_auth_callback_responses.go | 24 +- oauth2/restapi/operations/get_login.go | 8 +- .../restapi/operations/get_login_responses.go | 24 +- oauth2/restapi/operations/oauth_sample_api.go | 2 +- .../client/operations/chunked_responses.go | 8 +- .../client/operations/operations_client.go | 34 +- .../client/operations/elapse_parameters.go | 7 +- .../client/operations/elapse_responses.go | 16 +- .../client/operations/operations_client.go | 34 +- .../restapi/operations/countdown_api.go | 2 +- stream-server/restapi/operations/elapse.go | 12 +- .../restapi/operations/elapse_parameters.go | 12 +- .../restapi/operations/elapse_responses.go | 20 +- .../tasks/add_comment_to_task_parameters.go | 18 +- .../tasks/add_comment_to_task_responses.go | 22 +- .../client/tasks/create_task_parameters.go | 7 +- .../client/tasks/create_task_responses.go | 23 +- .../client/tasks/delete_task_parameters.go | 11 +- .../client/tasks/delete_task_responses.go | 16 +- .../tasks/get_task_comments_parameters.go | 35 +- .../tasks/get_task_comments_responses.go | 16 +- .../tasks/get_task_details_parameters.go | 11 +- .../tasks/get_task_details_responses.go | 24 +- .../client/tasks/list_tasks_parameters.go | 38 +- .../client/tasks/list_tasks_responses.go | 31 +- task-tracker/client/tasks/tasks_client.go | 330 ++++++++---------- .../client/tasks/update_task_parameters.go | 18 +- .../client/tasks/update_task_responses.go | 24 +- .../tasks/upload_task_file_parameters.go | 25 +- .../tasks/upload_task_file_responses.go | 16 +- .../restapi/operations/task_tracker_api.go | 14 +- .../operations/tasks/add_comment_to_task.go | 14 +- .../tasks/add_comment_to_task_parameters.go | 14 +- .../tasks/add_comment_to_task_responses.go | 22 +- .../restapi/operations/tasks/create_task.go | 16 +- .../tasks/create_task_parameters.go | 8 +- .../operations/tasks/create_task_responses.go | 25 +- .../restapi/operations/tasks/delete_task.go | 12 +- .../tasks/delete_task_parameters.go | 8 +- .../operations/tasks/delete_task_responses.go | 22 +- .../operations/tasks/get_task_comments.go | 12 +- .../tasks/get_task_comments_parameters.go | 22 +- .../tasks/get_task_comments_responses.go | 26 +- .../operations/tasks/get_task_details.go | 18 +- .../tasks/get_task_details_parameters.go | 8 +- .../tasks/get_task_details_responses.go | 38 +- .../restapi/operations/tasks/list_tasks.go | 18 +- .../operations/tasks/list_tasks_parameters.go | 32 +- .../operations/tasks/list_tasks_responses.go | 41 +-- .../restapi/operations/tasks/update_task.go | 16 +- .../tasks/update_task_parameters.go | 16 +- .../operations/tasks/update_task_responses.go | 38 +- .../operations/tasks/upload_task_file.go | 12 +- .../tasks/upload_task_file_parameters.go | 20 +- .../tasks/upload_task_file_responses.go | 22 +- .../restapi/operations/todo_list_api.go | 8 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- .../restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../client/todos/add_one_responses.go | 16 +- .../client/todos/destroy_one_responses.go | 16 +- .../client/todos/find_responses.go | 16 +- todo-list-strict/client/todos/todos_client.go | 92 ++--- .../client/todos/update_one_responses.go | 16 +- .../operations/simple_to_do_list_api_api.go | 8 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- .../restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- todo-list/client/todos/add_one_responses.go | 16 +- .../client/todos/destroy_one_responses.go | 16 +- todo-list/client/todos/find_responses.go | 16 +- todo-list/client/todos/todos_client.go | 92 ++--- .../client/todos/update_one_responses.go | 16 +- todo-list/restapi/operations/todo_list_api.go | 8 +- todo-list/restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- todo-list/restapi/operations/todos/find.go | 8 +- .../operations/todos/find_parameters.go | 23 +- .../operations/todos/find_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../experimental/experimental_client.go | 48 +-- .../get_experimental_responses.go | 16 +- .../put_experimental_responses.go | 24 +- .../classic_client/todos/add_one_responses.go | 24 +- .../todos/destroy_one_responses.go | 16 +- .../classic_client/todos/find_responses.go | 16 +- .../classic_client/todos/todos_client.go | 92 ++--- .../todos/update_one_responses.go | 24 +- .../experimental/experimental_client.go | 20 +- .../get_experimental_responses.go | 16 +- .../put_experimental_responses.go | 24 +- .../todos/add_one_responses.go | 24 +- .../todos/destroy_one_responses.go | 16 +- .../todos/find_responses.go | 16 +- .../stratoscale_client/todos/todos_client.go | 36 +- .../todos/update_one_responses.go | 24 +- .../gen/restapi/operations/get_greeting.go | 8 +- .../operations/get_greeting_parameters.go | 6 +- .../operations/get_greeting_responses.go | 13 +- .../gen/restapi/operations/greeter_api.go | 2 +- .../restapi/operations/todo_list_api.go | 2 +- .../restapi/operations/todos/find_todos.go | 8 +- .../operations/todos/find_todos_parameters.go | 12 +- .../operations/todos/find_todos_responses.go | 24 +- .../restapi/operations/todo_list_api.go | 2 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- .../restapi/operations/todos/find_todos.go | 8 +- .../operations/todos/find_todos_parameters.go | 12 +- .../operations/todos/find_todos_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- .../restapi/operations/todo_list_api.go | 2 +- .../restapi/operations/todos/add_one.go | 8 +- .../operations/todos/add_one_parameters.go | 5 +- .../operations/todos/add_one_responses.go | 24 +- .../restapi/operations/todos/destroy_one.go | 8 +- .../todos/destroy_one_parameters.go | 7 +- .../operations/todos/destroy_one_responses.go | 20 +- .../restapi/operations/todos/find_todos.go | 8 +- .../operations/todos/find_todos_parameters.go | 12 +- .../operations/todos/find_todos_responses.go | 24 +- .../restapi/operations/todos/update_one.go | 8 +- .../operations/todos/update_one_parameters.go | 12 +- .../operations/todos/update_one_responses.go | 24 +- 421 files changed, 2534 insertions(+), 4370 deletions(-) diff --git a/authentication/client/customers/create_responses.go b/authentication/client/customers/create_responses.go index 28d47cce..62c79de5 100644 --- a/authentication/client/customers/create_responses.go +++ b/authentication/client/customers/create_responses.go @@ -44,11 +44,9 @@ func NewCreateCreated() *CreateCreated { return &CreateCreated{} } -/* -CreateCreated describes a response with status code 201, with default header values. - -created -*/ +// CreateCreated describes a response with status code 201, with default header values. +// +// created type CreateCreated struct { Payload *models.Customer } @@ -116,11 +114,9 @@ func NewCreateDefault(code int) *CreateDefault { } } -/* -CreateDefault describes a response with status code -1, with default header values. - -error -*/ +// CreateDefault describes a response with status code -1, with default header values. +// +// error type CreateDefault struct { _statusCode int diff --git a/authentication/client/customers/customers_client.go b/authentication/client/customers/customers_client.go index ea11244a..d0e46498 100644 --- a/authentication/client/customers/customers_client.go +++ b/authentication/client/customers/customers_client.go @@ -43,9 +43,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for customers API. -*/ +// Client for customers API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -116,14 +114,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -Createcreates a new customer to track. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.CreateContext] instead. -*/ +// Create creates a new customer to track. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.CreateContext] instead. func (a *Client) Create(params *CreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCreated, error) { var ctx context.Context if params.inner.ctx != nil { @@ -135,11 +131,9 @@ func (a *Client) Create(params *CreateParams, authInfo runtime.ClientAuthInfoWri return a.CreateContext(ctx, params, authInfo, opts...) } -/* -CreateContextcreates a new customer to track. - -Do not use the deprecated [CreateParams.Context] with this method: it would be ignored. -*/ +// CreateContext creates a new customer to track. +// +// Do not use the deprecated [CreateParams.Context] with this method: it would be ignored. func (a *Client) CreateContext(ctx context.Context, params *CreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCreated, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -182,14 +176,12 @@ func (a *Client) CreateContext(ctx context.Context, params *CreateParams, authIn return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -GetIDgets a customer Id given an s s n. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.GetIDContext] instead. -*/ +// GetID gets a customer Id given an s s n. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.GetIDContext] instead. func (a *Client) GetID(params *GetIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIDOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -201,11 +193,9 @@ func (a *Client) GetID(params *GetIDParams, authInfo runtime.ClientAuthInfoWrite return a.GetIDContext(ctx, params, authInfo, opts...) } -/* -GetIDContextgets a customer Id given an s s n. - -Do not use the deprecated [GetIDParams.Context] with this method: it would be ignored. -*/ +// GetIDContext gets a customer Id given an s s n. +// +// Do not use the deprecated [GetIDParams.Context] with this method: it would be ignored. func (a *Client) GetIDContext(ctx context.Context, params *GetIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIDOK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/authentication/client/customers/get_id_responses.go b/authentication/client/customers/get_id_responses.go index cdaa4d14..5eb3e6c2 100644 --- a/authentication/client/customers/get_id_responses.go +++ b/authentication/client/customers/get_id_responses.go @@ -56,11 +56,9 @@ func NewGetIDOK() *GetIDOK { return &GetIDOK{} } -/* -GetIDOK describes a response with status code 200, with default header values. - -OK -*/ +// GetIDOK describes a response with status code 200, with default header values. +// +// OK type GetIDOK struct { Payload *models.Customer } @@ -126,11 +124,9 @@ func NewGetIDUnauthorized() *GetIDUnauthorized { return &GetIDUnauthorized{} } -/* -GetIDUnauthorized describes a response with status code 401, with default header values. - -unauthorized -*/ +// GetIDUnauthorized describes a response with status code 401, with default header values. +// +// unauthorized type GetIDUnauthorized struct { Payload *models.Error } @@ -196,11 +192,9 @@ func NewGetIDNotFound() *GetIDNotFound { return &GetIDNotFound{} } -/* -GetIDNotFound describes a response with status code 404, with default header values. - -resource not found -*/ +// GetIDNotFound describes a response with status code 404, with default header values. +// +// resource not found type GetIDNotFound struct { Payload *models.Error } @@ -268,11 +262,9 @@ func NewGetIDDefault(code int) *GetIDDefault { } } -/* -GetIDDefault describes a response with status code -1, with default header values. - -error -*/ +// GetIDDefault describes a response with status code -1, with default header values. +// +// error type GetIDDefault struct { _statusCode int diff --git a/authentication/restapi/operations/auth_sample_api.go b/authentication/restapi/operations/auth_sample_api.go index 12e3163d..95263163 100644 --- a/authentication/restapi/operations/auth_sample_api.go +++ b/authentication/restapi/operations/auth_sample_api.go @@ -66,7 +66,7 @@ func NewAuthSampleAPI(spec *loads.Document) *AuthSampleAPI { } } -/*AuthSampleAPI the auth sample API */ +// AuthSampleAPI the auth sample API type AuthSampleAPI struct { spec *loads.Document context *middleware.Context diff --git a/authentication/restapi/operations/customers/create.go b/authentication/restapi/operations/customers/create.go index 06e38a37..89d164cd 100644 --- a/authentication/restapi/operations/customers/create.go +++ b/authentication/restapi/operations/customers/create.go @@ -28,11 +28,9 @@ func NewCreate(ctx *middleware.Context, handler CreateHandler) *Create { return &Create{Context: ctx, Handler: handler} } -/* - Create swagger:route POST /customers customers create - -Create a new customer to track -*/ +// Create swagger:route POST /customers customers create +// +// Create a new customer to track type Create struct { Context *middleware.Context Handler CreateHandler diff --git a/authentication/restapi/operations/customers/create_parameters.go b/authentication/restapi/operations/customers/create_parameters.go index 5e8a8f34..ab9e9a43 100644 --- a/authentication/restapi/operations/customers/create_parameters.go +++ b/authentication/restapi/operations/customers/create_parameters.go @@ -27,10 +27,7 @@ func NewCreateParams() CreateParams { type CreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Info *models.Customer } diff --git a/authentication/restapi/operations/customers/create_responses.go b/authentication/restapi/operations/customers/create_responses.go index bd98ca09..52e24ffd 100644 --- a/authentication/restapi/operations/customers/create_responses.go +++ b/authentication/restapi/operations/customers/create_responses.go @@ -12,16 +12,12 @@ import ( // CreateCreatedCode is the HTTP code returned for type CreateCreated const CreateCreatedCode int = 201 -/* -CreateCreated created - -swagger:response createCreated -*/ +// CreateCreated created +// +// swagger:response createCreated type CreateCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Customer `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *CreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -CreateDefault error - -swagger:response createDefault -*/ +// CreateDefault error +// +// swagger:response createDefault type CreateDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/authentication/restapi/operations/customers/get_id.go b/authentication/restapi/operations/customers/get_id.go index 43042ef4..95b16d1e 100644 --- a/authentication/restapi/operations/customers/get_id.go +++ b/authentication/restapi/operations/customers/get_id.go @@ -28,11 +28,9 @@ func NewGetID(ctx *middleware.Context, handler GetIDHandler) *GetID { return &GetID{Context: ctx, Handler: handler} } -/* - GetID swagger:route GET /customers customers getId - -Get a customerId given an SSN -*/ +// GetID swagger:route GET /customers customers getId +// +// Get a customerId given an SSN type GetID struct { Context *middleware.Context Handler GetIDHandler diff --git a/authentication/restapi/operations/customers/get_id_parameters.go b/authentication/restapi/operations/customers/get_id_parameters.go index d7e644ba..931bac37 100644 --- a/authentication/restapi/operations/customers/get_id_parameters.go +++ b/authentication/restapi/operations/customers/get_id_parameters.go @@ -27,10 +27,7 @@ func NewGetIDParams() GetIDParams { type GetIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Info *models.SocialID } diff --git a/authentication/restapi/operations/customers/get_id_responses.go b/authentication/restapi/operations/customers/get_id_responses.go index abecd467..939d1ca3 100644 --- a/authentication/restapi/operations/customers/get_id_responses.go +++ b/authentication/restapi/operations/customers/get_id_responses.go @@ -12,16 +12,12 @@ import ( // GetIDOKCode is the HTTP code returned for type GetIDOK const GetIDOKCode int = 200 -/* -GetIDOK OK - -swagger:response getIdOK -*/ +// GetIDOK OK +// +// swagger:response getIdOK type GetIDOK struct { - /* - In: Body - */ + // In: Body Payload *models.Customer `json:"body,omitempty"` } @@ -57,16 +53,12 @@ func (o *GetIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produce // GetIDUnauthorizedCode is the HTTP code returned for type GetIDUnauthorized const GetIDUnauthorizedCode int = 401 -/* -GetIDUnauthorized unauthorized - -swagger:response getIdUnauthorized -*/ +// GetIDUnauthorized unauthorized +// +// swagger:response getIdUnauthorized type GetIDUnauthorized struct { - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } @@ -102,16 +94,12 @@ func (o *GetIDUnauthorized) WriteResponse(rw http.ResponseWriter, producer runti // GetIDNotFoundCode is the HTTP code returned for type GetIDNotFound const GetIDNotFoundCode int = 404 -/* -GetIDNotFound resource not found - -swagger:response getIdNotFound -*/ +// GetIDNotFound resource not found +// +// swagger:response getIdNotFound type GetIDNotFound struct { - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } @@ -144,17 +132,13 @@ func (o *GetIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -GetIDDefault error - -swagger:response getIdDefault -*/ +// GetIDDefault error +// +// swagger:response getIdDefault type GetIDDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/auto-configure/restapi/auto_configure_a_to_do_list_application.go b/auto-configure/restapi/auto_configure_a_to_do_list_application.go index ab6bdac5..de855062 100644 --- a/auto-configure/restapi/auto_configure_a_to_do_list_application.go +++ b/auto-configure/restapi/auto_configure_a_to_do_list_application.go @@ -46,7 +46,7 @@ type Authable interface { KeyAuth(token string) (any, error) } -/* TodosHandler */ +// TodosHandler type TodosHandler interface { AddOne(params todos.AddOneParams, principal any) middleware.Responder DestroyOne(params todos.DestroyOneParams, principal any) middleware.Responder diff --git a/auto-configure/restapi/operations/a_to_do_list_application_api.go b/auto-configure/restapi/operations/a_to_do_list_application_api.go index 46658c6f..ca9e0ec0 100644 --- a/auto-configure/restapi/operations/a_to_do_list_application_api.go +++ b/auto-configure/restapi/operations/a_to_do_list_application_api.go @@ -79,7 +79,7 @@ func NewAToDoListApplicationAPI(spec *loads.Document) *AToDoListApplicationAPI { } } -/*AToDoListApplicationAPI The product of a tutorial on goswagger.io */ +// AToDoListApplicationAPI The product of a tutorial on goswagger.io type AToDoListApplicationAPI struct { spec *loads.Document context *middleware.Context diff --git a/auto-configure/restapi/operations/todos/add_one.go b/auto-configure/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/auto-configure/restapi/operations/todos/add_one.go +++ b/auto-configure/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/auto-configure/restapi/operations/todos/add_one_parameters.go b/auto-configure/restapi/operations/todos/add_one_parameters.go index f828765a..c72bcaeb 100644 --- a/auto-configure/restapi/operations/todos/add_one_parameters.go +++ b/auto-configure/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/auto-configure/restapi/operations/todos/add_one_responses.go b/auto-configure/restapi/operations/todos/add_one_responses.go index 6ec83fb4..154e5837 100644 --- a/auto-configure/restapi/operations/todos/add_one_responses.go +++ b/auto-configure/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/auto-configure/restapi/operations/todos/destroy_one.go b/auto-configure/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/auto-configure/restapi/operations/todos/destroy_one.go +++ b/auto-configure/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/auto-configure/restapi/operations/todos/destroy_one_parameters.go b/auto-configure/restapi/operations/todos/destroy_one_parameters.go index ab647b06..7f0d3637 100644 --- a/auto-configure/restapi/operations/todos/destroy_one_parameters.go +++ b/auto-configure/restapi/operations/todos/destroy_one_parameters.go @@ -26,11 +26,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID int64 } diff --git a/auto-configure/restapi/operations/todos/destroy_one_responses.go b/auto-configure/restapi/operations/todos/destroy_one_responses.go index d9004687..7e7e75b9 100644 --- a/auto-configure/restapi/operations/todos/destroy_one_responses.go +++ b/auto-configure/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/auto-configure/restapi/operations/todos/find_todos.go b/auto-configure/restapi/operations/todos/find_todos.go index 776c97d9..31226eeb 100644 --- a/auto-configure/restapi/operations/todos/find_todos.go +++ b/auto-configure/restapi/operations/todos/find_todos.go @@ -26,11 +26,9 @@ func NewFindTodos(ctx *middleware.Context, handler FindTodosHandler) *FindTodos return &FindTodos{Context: ctx, Handler: handler} } -/* - FindTodos swagger:route GET / todos findTodos - -FindTodos find todos API -*/ +// FindTodos swagger:route GET / todos findTodos +// +// FindTodos find todos API type FindTodos struct { Context *middleware.Context Handler FindTodosHandler diff --git a/auto-configure/restapi/operations/todos/find_todos_parameters.go b/auto-configure/restapi/operations/todos/find_todos_parameters.go index 8fbe147d..8ce8db8c 100644 --- a/auto-configure/restapi/operations/todos/find_todos_parameters.go +++ b/auto-configure/restapi/operations/todos/find_todos_parameters.go @@ -34,16 +34,10 @@ func NewFindTodosParams() FindTodosParams { type FindTodosParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: query - Default: 20 - */ + // In: query + // Default: 20 Limit *int32 - - /* - In: query - */ + // In: query Since *int64 } diff --git a/auto-configure/restapi/operations/todos/find_todos_responses.go b/auto-configure/restapi/operations/todos/find_todos_responses.go index 2e847d63..5f797e4e 100644 --- a/auto-configure/restapi/operations/todos/find_todos_responses.go +++ b/auto-configure/restapi/operations/todos/find_todos_responses.go @@ -12,16 +12,12 @@ import ( // FindTodosOKCode is the HTTP code returned for type FindTodosOK const FindTodosOKCode int = 200 -/* -FindTodosOK list the todo operations - -swagger:response findTodosOK -*/ +// FindTodosOK list the todo operations +// +// swagger:response findTodosOK type FindTodosOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindTodosOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -FindTodosDefault generic error response - -swagger:response findTodosDefault -*/ +// FindTodosDefault generic error response +// +// swagger:response findTodosDefault type FindTodosDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/auto-configure/restapi/operations/todos/update_one.go b/auto-configure/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/auto-configure/restapi/operations/todos/update_one.go +++ b/auto-configure/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/auto-configure/restapi/operations/todos/update_one_parameters.go b/auto-configure/restapi/operations/todos/update_one_parameters.go index 3ce5e3ea..c2978451 100644 --- a/auto-configure/restapi/operations/todos/update_one_parameters.go +++ b/auto-configure/restapi/operations/todos/update_one_parameters.go @@ -29,16 +29,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID int64 } diff --git a/auto-configure/restapi/operations/todos/update_one_responses.go b/auto-configure/restapi/operations/todos/update_one_responses.go index 6e8959ec..b53e85c8 100644 --- a/auto-configure/restapi/operations/todos/update_one_responses.go +++ b/auto-configure/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/cli/cli/add_one_operation.go b/cli/cli/add_one_operation.go index 998c1f6e..230f5a19 100644 --- a/cli/cli/add_one_operation.go +++ b/cli/cli/add_one_operation.go @@ -70,7 +70,7 @@ func registerOperationTodosAddOneBodyParamFlags(cmdPrefix string, cmd *cobra.Com if cmdPrefix == "" { flagBodyName = "body" } else { - flagBodyName = fmt.Sprintf("%v.body", cmdPrefix) + flagBodyName = fmt.Sprintf("%v.%s", cmdPrefix, "body") } _ = cmd.PersistentFlags().String(flagBodyName, "", `Optional json string for [body]. `) @@ -115,7 +115,7 @@ func retrieveOperationTodosAddOneBodyFlag(m *todos.AddOneParams, cmdPrefix strin if err != nil { return err, false } - logDebugf("Body dry-run payload: %v", string(flagBodyValueDebugBytes)) + logDebugf("%s dry-run payload: %v", "Body", string(flagBodyValueDebugBytes)) } retAdded = retAdded || added diff --git a/cli/cli/destroy_one_operation.go b/cli/cli/destroy_one_operation.go index ee17b466..21bd6aab 100644 --- a/cli/cli/destroy_one_operation.go +++ b/cli/cli/destroy_one_operation.go @@ -71,7 +71,7 @@ func registerOperationTodosDestroyOneIDParamFlags(cmdPrefix string, cmd *cobra.C if cmdPrefix == "" { flagIDName = "id" } else { - flagIDName = fmt.Sprintf("%v.id", cmdPrefix) + flagIDName = fmt.Sprintf("%v.%s", cmdPrefix, "id") } var flagIDDefault int64 @@ -89,7 +89,7 @@ func retrieveOperationTodosDestroyOneIDFlag(m *todos.DestroyOneParams, cmdPrefix if cmdPrefix == "" { flagIDName = "id" } else { - flagIDName = fmt.Sprintf("%v.id", cmdPrefix) + flagIDName = fmt.Sprintf("%v.%s", cmdPrefix, "id") } flagIDValue, err := cmd.Flags().GetInt64(flagIDName) diff --git a/cli/cli/error_model.go b/cli/cli/error_model.go index 68757055..409fba0d 100644 --- a/cli/cli/error_model.go +++ b/cli/cli/error_model.go @@ -37,7 +37,7 @@ func registerErrorPropCode(depth int, cmdPrefix string, cmd *cobra.Command) erro if cmdPrefix == "" { flagCodeName = "code" } else { - flagCodeName = fmt.Sprintf("%v.code", cmdPrefix) + flagCodeName = fmt.Sprintf("%v.%s", cmdPrefix, "code") } var flagCodeDefault int64 @@ -58,7 +58,7 @@ func registerErrorPropMessage(depth int, cmdPrefix string, cmd *cobra.Command) e if cmdPrefix == "" { flagMessageName = "message" } else { - flagMessageName = fmt.Sprintf("%v.message", cmdPrefix) + flagMessageName = fmt.Sprintf("%v.%s", cmdPrefix, "message") } var flagMessageDefault string @@ -93,14 +93,14 @@ func retrieveErrorPropCodeFlags(depth int, m *models.Error, cmdPrefix string, cm } retAdded := false - flagCodeName := fmt.Sprintf("%v.code", cmdPrefix) + flagCodeName := fmt.Sprintf("%v.%s", cmdPrefix, "code") if cmd.Flags().Changed(flagCodeName) { var flagCodeName string if cmdPrefix == "" { flagCodeName = "code" } else { - flagCodeName = fmt.Sprintf("%v.code", cmdPrefix) + flagCodeName = fmt.Sprintf("%v.%s", cmdPrefix, "code") } flagCodeValue, err := cmd.Flags().GetInt64(flagCodeName) @@ -121,14 +121,14 @@ func retrieveErrorPropMessageFlags(depth int, m *models.Error, cmdPrefix string, } retAdded := false - flagMessageName := fmt.Sprintf("%v.message", cmdPrefix) + flagMessageName := fmt.Sprintf("%v.%s", cmdPrefix, "message") if cmd.Flags().Changed(flagMessageName) { var flagMessageName string if cmdPrefix == "" { flagMessageName = "message" } else { - flagMessageName = fmt.Sprintf("%v.message", cmdPrefix) + flagMessageName = fmt.Sprintf("%v.%s", cmdPrefix, "message") } flagMessageValue, err := cmd.Flags().GetString(flagMessageName) diff --git a/cli/cli/find_todos_operation.go b/cli/cli/find_todos_operation.go index 2aa4775b..31bd535f 100644 --- a/cli/cli/find_todos_operation.go +++ b/cli/cli/find_todos_operation.go @@ -77,7 +77,7 @@ func registerOperationTodosFindTodosLimitParamFlags(cmdPrefix string, cmd *cobra if cmdPrefix == "" { flagLimitName = "limit" } else { - flagLimitName = fmt.Sprintf("%v.limit", cmdPrefix) + flagLimitName = fmt.Sprintf("%v.%s", cmdPrefix, "limit") } var flagLimitDefault int32 = 20 @@ -95,7 +95,7 @@ func registerOperationTodosFindTodosSinceParamFlags(cmdPrefix string, cmd *cobra if cmdPrefix == "" { flagSinceName = "since" } else { - flagSinceName = fmt.Sprintf("%v.since", cmdPrefix) + flagSinceName = fmt.Sprintf("%v.%s", cmdPrefix, "since") } var flagSinceDefault int64 @@ -113,7 +113,7 @@ func retrieveOperationTodosFindTodosLimitFlag(m *todos.FindTodosParams, cmdPrefi if cmdPrefix == "" { flagLimitName = "limit" } else { - flagLimitName = fmt.Sprintf("%v.limit", cmdPrefix) + flagLimitName = fmt.Sprintf("%v.%s", cmdPrefix, "limit") } flagLimitValue, err := cmd.Flags().GetInt32(flagLimitName) @@ -135,7 +135,7 @@ func retrieveOperationTodosFindTodosSinceFlag(m *todos.FindTodosParams, cmdPrefi if cmdPrefix == "" { flagSinceName = "since" } else { - flagSinceName = fmt.Sprintf("%v.since", cmdPrefix) + flagSinceName = fmt.Sprintf("%v.%s", cmdPrefix, "since") } flagSinceValue, err := cmd.Flags().GetInt64(flagSinceName) diff --git a/cli/cli/github_reactions_model.go b/cli/cli/github_reactions_model.go index 853c0f26..4b8348e5 100644 --- a/cli/cli/github_reactions_model.go +++ b/cli/cli/github_reactions_model.go @@ -41,7 +41,7 @@ func registerGithubReactionsPropPlus1(depth int, cmdPrefix string, cmd *cobra.Co if cmdPrefix == "" { flagPlus1Name = "+1" } else { - flagPlus1Name = fmt.Sprintf("%v.+1", cmdPrefix) + flagPlus1Name = fmt.Sprintf("%v.%s", cmdPrefix, "+1") } var flagPlus1Default int64 @@ -62,7 +62,7 @@ func registerGithubReactionsPropMinus1(depth int, cmdPrefix string, cmd *cobra.C if cmdPrefix == "" { flagMinus1Name = "-1" } else { - flagMinus1Name = fmt.Sprintf("%v.-1", cmdPrefix) + flagMinus1Name = fmt.Sprintf("%v.%s", cmdPrefix, "-1") } var flagMinus1Default int64 @@ -83,7 +83,7 @@ func registerGithubReactionsPropConfused(depth int, cmdPrefix string, cmd *cobra if cmdPrefix == "" { flagConfusedName = "confused" } else { - flagConfusedName = fmt.Sprintf("%v.confused", cmdPrefix) + flagConfusedName = fmt.Sprintf("%v.%s", cmdPrefix, "confused") } var flagConfusedDefault int64 @@ -124,14 +124,14 @@ func retrieveGithubReactionsPropPlus1Flags(depth int, m *models.GithubReactions, } retAdded := false - flagPlus1Name := fmt.Sprintf("%v.+1", cmdPrefix) + flagPlus1Name := fmt.Sprintf("%v.%s", cmdPrefix, "+1") if cmd.Flags().Changed(flagPlus1Name) { var flagPlus1Name string if cmdPrefix == "" { flagPlus1Name = "+1" } else { - flagPlus1Name = fmt.Sprintf("%v.+1", cmdPrefix) + flagPlus1Name = fmt.Sprintf("%v.%s", cmdPrefix, "+1") } flagPlus1Value, err := cmd.Flags().GetInt64(flagPlus1Name) @@ -152,14 +152,14 @@ func retrieveGithubReactionsPropMinus1Flags(depth int, m *models.GithubReactions } retAdded := false - flagMinus1Name := fmt.Sprintf("%v.-1", cmdPrefix) + flagMinus1Name := fmt.Sprintf("%v.%s", cmdPrefix, "-1") if cmd.Flags().Changed(flagMinus1Name) { var flagMinus1Name string if cmdPrefix == "" { flagMinus1Name = "-1" } else { - flagMinus1Name = fmt.Sprintf("%v.-1", cmdPrefix) + flagMinus1Name = fmt.Sprintf("%v.%s", cmdPrefix, "-1") } flagMinus1Value, err := cmd.Flags().GetInt64(flagMinus1Name) @@ -180,14 +180,14 @@ func retrieveGithubReactionsPropConfusedFlags(depth int, m *models.GithubReactio } retAdded := false - flagConfusedName := fmt.Sprintf("%v.confused", cmdPrefix) + flagConfusedName := fmt.Sprintf("%v.%s", cmdPrefix, "confused") if cmd.Flags().Changed(flagConfusedName) { var flagConfusedName string if cmdPrefix == "" { flagConfusedName = "confused" } else { - flagConfusedName = fmt.Sprintf("%v.confused", cmdPrefix) + flagConfusedName = fmt.Sprintf("%v.%s", cmdPrefix, "confused") } flagConfusedValue, err := cmd.Flags().GetInt64(flagConfusedName) diff --git a/cli/cli/item_model.go b/cli/cli/item_model.go index 11535d40..e77c1cc3 100644 --- a/cli/cli/item_model.go +++ b/cli/cli/item_model.go @@ -41,7 +41,7 @@ func registerItemPropCompleted(depth int, cmdPrefix string, cmd *cobra.Command) if cmdPrefix == "" { flagCompletedName = "completed" } else { - flagCompletedName = fmt.Sprintf("%v.completed", cmdPrefix) + flagCompletedName = fmt.Sprintf("%v.%s", cmdPrefix, "completed") } var flagCompletedDefault bool @@ -62,7 +62,7 @@ func registerItemPropDescription(depth int, cmdPrefix string, cmd *cobra.Command if cmdPrefix == "" { flagDescriptionName = "description" } else { - flagDescriptionName = fmt.Sprintf("%v.description", cmdPrefix) + flagDescriptionName = fmt.Sprintf("%v.%s", cmdPrefix, "description") } var flagDescriptionDefault string @@ -83,7 +83,7 @@ func registerItemPropID(depth int, cmdPrefix string, cmd *cobra.Command) error { if cmdPrefix == "" { flagIDName = "id" } else { - flagIDName = fmt.Sprintf("%v.id", cmdPrefix) + flagIDName = fmt.Sprintf("%v.%s", cmdPrefix, "id") } var flagIDDefault int64 @@ -124,14 +124,14 @@ func retrieveItemPropCompletedFlags(depth int, m *models.Item, cmdPrefix string, } retAdded := false - flagCompletedName := fmt.Sprintf("%v.completed", cmdPrefix) + flagCompletedName := fmt.Sprintf("%v.%s", cmdPrefix, "completed") if cmd.Flags().Changed(flagCompletedName) { var flagCompletedName string if cmdPrefix == "" { flagCompletedName = "completed" } else { - flagCompletedName = fmt.Sprintf("%v.completed", cmdPrefix) + flagCompletedName = fmt.Sprintf("%v.%s", cmdPrefix, "completed") } flagCompletedValue, err := cmd.Flags().GetBool(flagCompletedName) @@ -152,14 +152,14 @@ func retrieveItemPropDescriptionFlags(depth int, m *models.Item, cmdPrefix strin } retAdded := false - flagDescriptionName := fmt.Sprintf("%v.description", cmdPrefix) + flagDescriptionName := fmt.Sprintf("%v.%s", cmdPrefix, "description") if cmd.Flags().Changed(flagDescriptionName) { var flagDescriptionName string if cmdPrefix == "" { flagDescriptionName = "description" } else { - flagDescriptionName = fmt.Sprintf("%v.description", cmdPrefix) + flagDescriptionName = fmt.Sprintf("%v.%s", cmdPrefix, "description") } flagDescriptionValue, err := cmd.Flags().GetString(flagDescriptionName) @@ -180,14 +180,14 @@ func retrieveItemPropIDFlags(depth int, m *models.Item, cmdPrefix string, cmd *c } retAdded := false - flagIDName := fmt.Sprintf("%v.id", cmdPrefix) + flagIDName := fmt.Sprintf("%v.%s", cmdPrefix, "id") if cmd.Flags().Changed(flagIDName) { var flagIDName string if cmdPrefix == "" { flagIDName = "id" } else { - flagIDName = fmt.Sprintf("%v.id", cmdPrefix) + flagIDName = fmt.Sprintf("%v.%s", cmdPrefix, "id") } flagIDValue, err := cmd.Flags().GetInt64(flagIDName) diff --git a/cli/cli/put_test2766_operation.go b/cli/cli/put_test2766_operation.go index 662821bd..716e15aa 100644 --- a/cli/cli/put_test2766_operation.go +++ b/cli/cli/put_test2766_operation.go @@ -78,7 +78,7 @@ func registerOperationOperationsPutTest2766Minus1ParamFlags(cmdPrefix string, cm if cmdPrefix == "" { flagMinus1Name = "-1" } else { - flagMinus1Name = fmt.Sprintf("%v.-1", cmdPrefix) + flagMinus1Name = fmt.Sprintf("%v.%s", cmdPrefix, "-1") } var flagMinus1Default int64 @@ -94,7 +94,7 @@ func registerOperationOperationsPutTest2766BodyParamFlags(cmdPrefix string, cmd if cmdPrefix == "" { flagBodyName = "body" } else { - flagBodyName = fmt.Sprintf("%v.body", cmdPrefix) + flagBodyName = fmt.Sprintf("%v.%s", cmdPrefix, "body") } _ = cmd.PersistentFlags().String(flagBodyName, "", `Optional json string for [body]. `) @@ -115,7 +115,7 @@ func retrieveOperationOperationsPutTest2766Minus1Flag(m *operations.PutTest2766P if cmdPrefix == "" { flagMinus1Name = "-1" } else { - flagMinus1Name = fmt.Sprintf("%v.-1", cmdPrefix) + flagMinus1Name = fmt.Sprintf("%v.%s", cmdPrefix, "-1") } flagMinus1Value, err := cmd.Flags().GetInt64(flagMinus1Name) @@ -161,7 +161,7 @@ func retrieveOperationOperationsPutTest2766BodyFlag(m *operations.PutTest2766Par if err != nil { return err, false } - logDebugf("Body dry-run payload: %v", string(flagBodyValueDebugBytes)) + logDebugf("%s dry-run payload: %v", "Body", string(flagBodyValueDebugBytes)) } retAdded = retAdded || added diff --git a/cli/cli/update_one_operation.go b/cli/cli/update_one_operation.go index bb1afdb6..fa8c03ae 100644 --- a/cli/cli/update_one_operation.go +++ b/cli/cli/update_one_operation.go @@ -76,7 +76,7 @@ func registerOperationTodosUpdateOneBodyParamFlags(cmdPrefix string, cmd *cobra. if cmdPrefix == "" { flagBodyName = "body" } else { - flagBodyName = fmt.Sprintf("%v.body", cmdPrefix) + flagBodyName = fmt.Sprintf("%v.%s", cmdPrefix, "body") } _ = cmd.PersistentFlags().String(flagBodyName, "", `Optional json string for [body]. `) @@ -97,7 +97,7 @@ func registerOperationTodosUpdateOneIDParamFlags(cmdPrefix string, cmd *cobra.Co if cmdPrefix == "" { flagIDName = "id" } else { - flagIDName = fmt.Sprintf("%v.id", cmdPrefix) + flagIDName = fmt.Sprintf("%v.%s", cmdPrefix, "id") } var flagIDDefault int64 @@ -139,7 +139,7 @@ func retrieveOperationTodosUpdateOneBodyFlag(m *todos.UpdateOneParams, cmdPrefix if err != nil { return err, false } - logDebugf("Body dry-run payload: %v", string(flagBodyValueDebugBytes)) + logDebugf("%s dry-run payload: %v", "Body", string(flagBodyValueDebugBytes)) } retAdded = retAdded || added @@ -155,7 +155,7 @@ func retrieveOperationTodosUpdateOneIDFlag(m *todos.UpdateOneParams, cmdPrefix s if cmdPrefix == "" { flagIDName = "id" } else { - flagIDName = fmt.Sprintf("%v.id", cmdPrefix) + flagIDName = fmt.Sprintf("%v.%s", cmdPrefix, "id") } flagIDValue, err := cmd.Flags().GetInt64(flagIDName) diff --git a/cli/client/operations/operations_client.go b/cli/client/operations/operations_client.go index 448a4491..43df3014 100644 --- a/cli/client/operations/operations_client.go +++ b/cli/client/operations/operations_client.go @@ -44,9 +44,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for operations API. -*/ +// Client for operations API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -108,14 +106,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -PutTest2766put test2766 API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.PutTest2766Context] instead. -*/ +// PutTest2766 put test2766 API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.PutTest2766Context] instead. func (a *Client) PutTest2766(params *PutTest2766Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTest2766OK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -127,11 +123,9 @@ func (a *Client) PutTest2766(params *PutTest2766Params, authInfo runtime.ClientA return a.PutTest2766Context(ctx, params, authInfo, opts...) } -/* -PutTest2766Contextput test2766 API. - -Do not use the deprecated [PutTest2766Params.Context] with this method: it would be ignored. -*/ +// PutTest2766Context put test2766 API. +// +// Do not use the deprecated [PutTest2766Params.Context] with this method: it would be ignored. func (a *Client) PutTest2766Context(ctx context.Context, params *PutTest2766Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTest2766OK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/cli/client/operations/put_test2766_responses.go b/cli/client/operations/put_test2766_responses.go index 803e2fb3..55a76dd7 100644 --- a/cli/client/operations/put_test2766_responses.go +++ b/cli/client/operations/put_test2766_responses.go @@ -37,11 +37,9 @@ func NewPutTest2766OK() *PutTest2766OK { return &PutTest2766OK{} } -/* -PutTest2766OK describes a response with status code 200, with default header values. - -test issue #2766 -*/ +// PutTest2766OK describes a response with status code 200, with default header values. +// +// test issue #2766 type PutTest2766OK struct { Payload *models.GithubReactions } diff --git a/cli/client/todos/add_one_responses.go b/cli/client/todos/add_one_responses.go index bab3db32..8b2e538b 100644 --- a/cli/client/todos/add_one_responses.go +++ b/cli/client/todos/add_one_responses.go @@ -44,11 +44,9 @@ func NewAddOneCreated() *AddOneCreated { return &AddOneCreated{} } -/* -AddOneCreated describes a response with status code 201, with default header values. - -Created -*/ +// AddOneCreated describes a response with status code 201, with default header values. +// +// Created type AddOneCreated struct { Payload *models.Item } @@ -116,11 +114,9 @@ func NewAddOneDefault(code int) *AddOneDefault { } } -/* -AddOneDefault describes a response with status code -1, with default header values. - -error -*/ +// AddOneDefault describes a response with status code -1, with default header values. +// +// error type AddOneDefault struct { _statusCode int diff --git a/cli/client/todos/destroy_one_responses.go b/cli/client/todos/destroy_one_responses.go index 4d4240d0..6f843cbe 100644 --- a/cli/client/todos/destroy_one_responses.go +++ b/cli/client/todos/destroy_one_responses.go @@ -44,11 +44,9 @@ func NewDestroyOneNoContent() *DestroyOneNoContent { return &DestroyOneNoContent{} } -/* -DestroyOneNoContent describes a response with status code 204, with default header values. - -Deleted -*/ +// DestroyOneNoContent describes a response with status code 204, with default header values. +// +// Deleted type DestroyOneNoContent struct { } @@ -102,11 +100,9 @@ func NewDestroyOneDefault(code int) *DestroyOneDefault { } } -/* -DestroyOneDefault describes a response with status code -1, with default header values. - -error -*/ +// DestroyOneDefault describes a response with status code -1, with default header values. +// +// error type DestroyOneDefault struct { _statusCode int diff --git a/cli/client/todos/find_todos_responses.go b/cli/client/todos/find_todos_responses.go index c87f8caf..d2a02b76 100644 --- a/cli/client/todos/find_todos_responses.go +++ b/cli/client/todos/find_todos_responses.go @@ -44,11 +44,9 @@ func NewFindTodosOK() *FindTodosOK { return &FindTodosOK{} } -/* -FindTodosOK describes a response with status code 200, with default header values. - -list the todo operations -*/ +// FindTodosOK describes a response with status code 200, with default header values. +// +// list the todo operations type FindTodosOK struct { Payload []*models.Item } @@ -114,11 +112,9 @@ func NewFindTodosDefault(code int) *FindTodosDefault { } } -/* -FindTodosDefault describes a response with status code -1, with default header values. - -generic error response -*/ +// FindTodosDefault describes a response with status code -1, with default header values. +// +// generic error response type FindTodosDefault struct { _statusCode int diff --git a/cli/client/todos/todos_client.go b/cli/client/todos/todos_client.go index 30b01f67..ff3cf789 100644 --- a/cli/client/todos/todos_client.go +++ b/cli/client/todos/todos_client.go @@ -43,9 +43,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for todos API. -*/ +// Client for todos API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -119,14 +117,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -AddOneadd one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.AddOneContext] instead. -*/ +// AddOne add one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.AddOneContext] instead. func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error) { var ctx context.Context if params.inner.ctx != nil { @@ -138,11 +134,9 @@ func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWri return a.AddOneContext(ctx, params, authInfo, opts...) } -/* -AddOneContextadd one API. - -Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. -*/ +// AddOneContext add one API. +// +// Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -185,14 +179,12 @@ func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authIn return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -DestroyOnedestroy one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.DestroyOneContext] instead. -*/ +// DestroyOne destroy one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.DestroyOneContext] instead. func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -204,11 +196,9 @@ func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAut return a.DestroyOneContext(ctx, params, authInfo, opts...) } -/* -DestroyOneContextdestroy one API. - -Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. -*/ +// DestroyOneContext destroy one API. +// +// Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -251,14 +241,12 @@ func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -FindTodosfind todos API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.FindTodosContext] instead. -*/ +// FindTodos find todos API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.FindTodosContext] instead. func (a *Client) FindTodos(params *FindTodosParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindTodosOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -270,11 +258,9 @@ func (a *Client) FindTodos(params *FindTodosParams, authInfo runtime.ClientAuthI return a.FindTodosContext(ctx, params, authInfo, opts...) } -/* -FindTodosContextfind todos API. - -Do not use the deprecated [FindTodosParams.Context] with this method: it would be ignored. -*/ +// FindTodosContext find todos API. +// +// Do not use the deprecated [FindTodosParams.Context] with this method: it would be ignored. func (a *Client) FindTodosContext(ctx context.Context, params *FindTodosParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindTodosOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -317,14 +303,12 @@ func (a *Client) FindTodosContext(ctx context.Context, params *FindTodosParams, return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -UpdateOneupdate one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.UpdateOneContext] instead. -*/ +// UpdateOne update one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.UpdateOneContext] instead. func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -336,11 +320,9 @@ func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthI return a.UpdateOneContext(ctx, params, authInfo, opts...) } -/* -UpdateOneContextupdate one API. - -Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. -*/ +// UpdateOneContext update one API. +// +// Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. func (a *Client) UpdateOneContext(ctx context.Context, params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/cli/client/todos/update_one_responses.go b/cli/client/todos/update_one_responses.go index 39191f04..df4b4e96 100644 --- a/cli/client/todos/update_one_responses.go +++ b/cli/client/todos/update_one_responses.go @@ -44,11 +44,9 @@ func NewUpdateOneOK() *UpdateOneOK { return &UpdateOneOK{} } -/* -UpdateOneOK describes a response with status code 200, with default header values. - -OK -*/ +// UpdateOneOK describes a response with status code 200, with default header values. +// +// OK type UpdateOneOK struct { Payload *models.Item } @@ -116,11 +114,9 @@ func NewUpdateOneDefault(code int) *UpdateOneDefault { } } -/* -UpdateOneDefault describes a response with status code -1, with default header values. - -error -*/ +// UpdateOneDefault describes a response with status code -1, with default header values. +// +// error type UpdateOneDefault struct { _statusCode int diff --git a/composed-auth/restapi/operations/add_order.go b/composed-auth/restapi/operations/add_order.go index 3c38a4bb..def8969a 100644 --- a/composed-auth/restapi/operations/add_order.go +++ b/composed-auth/restapi/operations/add_order.go @@ -28,14 +28,12 @@ func NewAddOrder(ctx *middleware.Context, handler AddOrderHandler) *AddOrder { return &AddOrder{Context: ctx, Handler: handler} } -/* - AddOrder swagger:route POST /order/add addOrder - -post a new order - -Registered customers should be able to add purchase orders. -Registered inventory managers should be able to add replenishment orders. -*/ +// AddOrder swagger:route POST /order/add addOrder +// +// post a new order +// +// Registered customers should be able to add purchase orders. +// Registered inventory managers should be able to add replenishment orders. type AddOrder struct { Context *middleware.Context Handler AddOrderHandler diff --git a/composed-auth/restapi/operations/add_order_parameters.go b/composed-auth/restapi/operations/add_order_parameters.go index 1a714e2c..9a65e380 100644 --- a/composed-auth/restapi/operations/add_order_parameters.go +++ b/composed-auth/restapi/operations/add_order_parameters.go @@ -29,11 +29,8 @@ func NewAddOrderParams() AddOrderParams { type AddOrderParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: body - */ + // Required: true + // In: body Order *models.Order } diff --git a/composed-auth/restapi/operations/add_order_responses.go b/composed-auth/restapi/operations/add_order_responses.go index 28c19e6c..a800301a 100644 --- a/composed-auth/restapi/operations/add_order_responses.go +++ b/composed-auth/restapi/operations/add_order_responses.go @@ -12,11 +12,9 @@ import ( // AddOrderOKCode is the HTTP code returned for type AddOrderOK const AddOrderOKCode int = 200 -/* -AddOrderOK empty response - -swagger:response addOrderOK -*/ +// AddOrderOK empty response +// +// swagger:response addOrderOK type AddOrderOK struct { } @@ -37,11 +35,9 @@ func (o *AddOrderOK) WriteResponse(rw http.ResponseWriter, producer runtime.Prod // AddOrderUnauthorizedCode is the HTTP code returned for type AddOrderUnauthorized const AddOrderUnauthorizedCode int = 401 -/* -AddOrderUnauthorized unauthorized access for a lack of authentication - -swagger:response addOrderUnauthorized -*/ +// AddOrderUnauthorized unauthorized access for a lack of authentication +// +// swagger:response addOrderUnauthorized type AddOrderUnauthorized struct { } @@ -62,11 +58,9 @@ func (o *AddOrderUnauthorized) WriteResponse(rw http.ResponseWriter, producer ru // AddOrderForbiddenCode is the HTTP code returned for type AddOrderForbidden const AddOrderForbiddenCode int = 403 -/* -AddOrderForbidden forbidden access for a lack of sufficient privileges - -swagger:response addOrderForbidden -*/ +// AddOrderForbidden forbidden access for a lack of sufficient privileges +// +// swagger:response addOrderForbidden type AddOrderForbidden struct { } @@ -84,17 +78,13 @@ func (o *AddOrderForbidden) WriteResponse(rw http.ResponseWriter, producer runti rw.WriteHeader(403) } -/* -AddOrderDefault other error response - -swagger:response addOrderDefault -*/ +// AddOrderDefault other error response +// +// swagger:response addOrderDefault type AddOrderDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/composed-auth/restapi/operations/get_account.go b/composed-auth/restapi/operations/get_account.go index 35e303cb..f3cdbb63 100644 --- a/composed-auth/restapi/operations/get_account.go +++ b/composed-auth/restapi/operations/get_account.go @@ -28,13 +28,11 @@ func NewGetAccount(ctx *middleware.Context, handler GetAccountHandler) *GetAccou return &GetAccount{Context: ctx, Handler: handler} } -/* - GetAccount swagger:route GET /account getAccount - -registered user account - -Every registered user should be able to access this operation -*/ +// GetAccount swagger:route GET /account getAccount +// +// registered user account +// +// Every registered user should be able to access this operation type GetAccount struct { Context *middleware.Context Handler GetAccountHandler diff --git a/composed-auth/restapi/operations/get_account_responses.go b/composed-auth/restapi/operations/get_account_responses.go index 466af89f..6f18b2b7 100644 --- a/composed-auth/restapi/operations/get_account_responses.go +++ b/composed-auth/restapi/operations/get_account_responses.go @@ -12,16 +12,12 @@ import ( // GetAccountOKCode is the HTTP code returned for type GetAccountOK const GetAccountOKCode int = 200 -/* -GetAccountOK registered user personal account infos - -swagger:response getAccountOK -*/ +// GetAccountOK registered user personal account infos +// +// swagger:response getAccountOK type GetAccountOK struct { - /* - In: Body - */ + // In: Body Payload any `json:"body,omitempty"` } @@ -55,11 +51,9 @@ func (o *GetAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pr // GetAccountUnauthorizedCode is the HTTP code returned for type GetAccountUnauthorized const GetAccountUnauthorizedCode int = 401 -/* -GetAccountUnauthorized unauthorized access for a lack of authentication - -swagger:response getAccountUnauthorized -*/ +// GetAccountUnauthorized unauthorized access for a lack of authentication +// +// swagger:response getAccountUnauthorized type GetAccountUnauthorized struct { } @@ -77,17 +71,13 @@ func (o *GetAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer rw.WriteHeader(401) } -/* -GetAccountDefault other error response - -swagger:response getAccountDefault -*/ +// GetAccountDefault other error response +// +// swagger:response getAccountDefault type GetAccountDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/composed-auth/restapi/operations/get_items.go b/composed-auth/restapi/operations/get_items.go index 08005208..31da0d13 100644 --- a/composed-auth/restapi/operations/get_items.go +++ b/composed-auth/restapi/operations/get_items.go @@ -26,13 +26,11 @@ func NewGetItems(ctx *middleware.Context, handler GetItemsHandler) *GetItems { return &GetItems{Context: ctx, Handler: handler} } -/* - GetItems swagger:route GET /items getItems - -items on sale - -Everybody should be able to access this operation -*/ +// GetItems swagger:route GET /items getItems +// +// items on sale +// +// Everybody should be able to access this operation type GetItems struct { Context *middleware.Context Handler GetItemsHandler diff --git a/composed-auth/restapi/operations/get_items_responses.go b/composed-auth/restapi/operations/get_items_responses.go index 6eab36f2..295ecb11 100644 --- a/composed-auth/restapi/operations/get_items_responses.go +++ b/composed-auth/restapi/operations/get_items_responses.go @@ -12,16 +12,12 @@ import ( // GetItemsOKCode is the HTTP code returned for type GetItemsOK const GetItemsOKCode int = 200 -/* -GetItemsOK multiple items - -swagger:response getItemsOK -*/ +// GetItemsOK multiple items +// +// swagger:response getItemsOK type GetItemsOK struct { - /* - In: Body - */ + // In: Body Payload []models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *GetItemsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Prod } } -/* -GetItemsDefault other error response - -swagger:response getItemsDefault -*/ +// GetItemsDefault other error response +// +// swagger:response getItemsDefault type GetItemsDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/composed-auth/restapi/operations/get_order.go b/composed-auth/restapi/operations/get_order.go index f77831f0..37f2ac83 100644 --- a/composed-auth/restapi/operations/get_order.go +++ b/composed-auth/restapi/operations/get_order.go @@ -28,13 +28,11 @@ func NewGetOrder(ctx *middleware.Context, handler GetOrderHandler) *GetOrder { return &GetOrder{Context: ctx, Handler: handler} } -/* - GetOrder swagger:route GET /order/{orderID} getOrder - -retrieves an order - -Only registered customers should be able to retrieve orders -*/ +// GetOrder swagger:route GET /order/{orderID} getOrder +// +// retrieves an order +// +// Only registered customers should be able to retrieve orders type GetOrder struct { Context *middleware.Context Handler GetOrderHandler diff --git a/composed-auth/restapi/operations/get_order_parameters.go b/composed-auth/restapi/operations/get_order_parameters.go index 0225a47a..66305923 100644 --- a/composed-auth/restapi/operations/get_order_parameters.go +++ b/composed-auth/restapi/operations/get_order_parameters.go @@ -25,11 +25,8 @@ func NewGetOrderParams() GetOrderParams { type GetOrderParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path OrderID string } diff --git a/composed-auth/restapi/operations/get_order_responses.go b/composed-auth/restapi/operations/get_order_responses.go index bd0ee1f4..f8cd7114 100644 --- a/composed-auth/restapi/operations/get_order_responses.go +++ b/composed-auth/restapi/operations/get_order_responses.go @@ -12,16 +12,12 @@ import ( // GetOrderOKCode is the HTTP code returned for type GetOrderOK const GetOrderOKCode int = 200 -/* -GetOrderOK content of an order - -swagger:response getOrderOK -*/ +// GetOrderOK content of an order +// +// swagger:response getOrderOK type GetOrderOK struct { - /* - In: Body - */ + // In: Body Payload *models.Order `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *GetOrderOK) WriteResponse(rw http.ResponseWriter, producer runtime.Prod // GetOrderUnauthorizedCode is the HTTP code returned for type GetOrderUnauthorized const GetOrderUnauthorizedCode int = 401 -/* -GetOrderUnauthorized unauthorized access for a lack of authentication - -swagger:response getOrderUnauthorized -*/ +// GetOrderUnauthorized unauthorized access for a lack of authentication +// +// swagger:response getOrderUnauthorized type GetOrderUnauthorized struct { } @@ -82,11 +76,9 @@ func (o *GetOrderUnauthorized) WriteResponse(rw http.ResponseWriter, producer ru // GetOrderForbiddenCode is the HTTP code returned for type GetOrderForbidden const GetOrderForbiddenCode int = 403 -/* -GetOrderForbidden forbidden access for a lack of sufficient privileges - -swagger:response getOrderForbidden -*/ +// GetOrderForbidden forbidden access for a lack of sufficient privileges +// +// swagger:response getOrderForbidden type GetOrderForbidden struct { } @@ -104,17 +96,13 @@ func (o *GetOrderForbidden) WriteResponse(rw http.ResponseWriter, producer runti rw.WriteHeader(403) } -/* -GetOrderDefault other error response - -swagger:response getOrderDefault -*/ +// GetOrderDefault other error response +// +// swagger:response getOrderDefault type GetOrderDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/composed-auth/restapi/operations/get_orders_for_item.go b/composed-auth/restapi/operations/get_orders_for_item.go index bddd5f8c..c25f4e0b 100644 --- a/composed-auth/restapi/operations/get_orders_for_item.go +++ b/composed-auth/restapi/operations/get_orders_for_item.go @@ -28,13 +28,11 @@ func NewGetOrdersForItem(ctx *middleware.Context, handler GetOrdersForItemHandle return &GetOrdersForItem{Context: ctx, Handler: handler} } -/* - GetOrdersForItem swagger:route GET /orders/{itemID} getOrdersForItem - -retrieves all orders for an item - -Only registered resellers should be able to search orders for an item -*/ +// GetOrdersForItem swagger:route GET /orders/{itemID} getOrdersForItem +// +// retrieves all orders for an item +// +// Only registered resellers should be able to search orders for an item type GetOrdersForItem struct { Context *middleware.Context Handler GetOrdersForItemHandler diff --git a/composed-auth/restapi/operations/get_orders_for_item_parameters.go b/composed-auth/restapi/operations/get_orders_for_item_parameters.go index 2bc91be5..5a7b9d68 100644 --- a/composed-auth/restapi/operations/get_orders_for_item_parameters.go +++ b/composed-auth/restapi/operations/get_orders_for_item_parameters.go @@ -25,11 +25,8 @@ func NewGetOrdersForItemParams() GetOrdersForItemParams { type GetOrdersForItemParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ItemID string } diff --git a/composed-auth/restapi/operations/get_orders_for_item_responses.go b/composed-auth/restapi/operations/get_orders_for_item_responses.go index 1f77bf15..57ce17d8 100644 --- a/composed-auth/restapi/operations/get_orders_for_item_responses.go +++ b/composed-auth/restapi/operations/get_orders_for_item_responses.go @@ -12,16 +12,12 @@ import ( // GetOrdersForItemOKCode is the HTTP code returned for type GetOrdersForItemOK const GetOrdersForItemOKCode int = 200 -/* -GetOrdersForItemOK multiple orders - -swagger:response getOrdersForItemOK -*/ +// GetOrdersForItemOK multiple orders +// +// swagger:response getOrdersForItemOK type GetOrdersForItemOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Order `json:"body,omitempty"` } @@ -60,11 +56,9 @@ func (o *GetOrdersForItemOK) WriteResponse(rw http.ResponseWriter, producer runt // GetOrdersForItemUnauthorizedCode is the HTTP code returned for type GetOrdersForItemUnauthorized const GetOrdersForItemUnauthorizedCode int = 401 -/* -GetOrdersForItemUnauthorized unauthorized access for a lack of authentication - -swagger:response getOrdersForItemUnauthorized -*/ +// GetOrdersForItemUnauthorized unauthorized access for a lack of authentication +// +// swagger:response getOrdersForItemUnauthorized type GetOrdersForItemUnauthorized struct { } @@ -85,11 +79,9 @@ func (o *GetOrdersForItemUnauthorized) WriteResponse(rw http.ResponseWriter, pro // GetOrdersForItemForbiddenCode is the HTTP code returned for type GetOrdersForItemForbidden const GetOrdersForItemForbiddenCode int = 403 -/* -GetOrdersForItemForbidden forbidden access for a lack of sufficient privileges - -swagger:response getOrdersForItemForbidden -*/ +// GetOrdersForItemForbidden forbidden access for a lack of sufficient privileges +// +// swagger:response getOrdersForItemForbidden type GetOrdersForItemForbidden struct { } @@ -107,17 +99,13 @@ func (o *GetOrdersForItemForbidden) WriteResponse(rw http.ResponseWriter, produc rw.WriteHeader(403) } -/* -GetOrdersForItemDefault other error response - -swagger:response getOrdersForItemDefault -*/ +// GetOrdersForItemDefault other error response +// +// swagger:response getOrdersForItemDefault type GetOrdersForItemDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/composed-auth/restapi/operations/multi_auth_example_api.go b/composed-auth/restapi/operations/multi_auth_example_api.go index 860a0f4a..271245ab 100644 --- a/composed-auth/restapi/operations/multi_auth_example_api.go +++ b/composed-auth/restapi/operations/multi_auth_example_api.go @@ -104,34 +104,32 @@ func NewMultiAuthExampleAPI(spec *loads.Document) *MultiAuthExampleAPI { } } -/* -MultiAuthExampleAPI This sample API demonstrates how to compose several authentication schemes -and configure complex security requirements for your operations. - -This API simulates a very simple market place with customers and resellers -of items. - -Personas: - - as a first time user, I want to see all items on sales - - as a registered customer, I want to post orders for items and - consult my past orders - - as a registered reseller, I want to see all pending orders on the items - I am selling on the market place - - as a reseller managing my own inventories, I want to post replenishment orders for the items I provide - - as a register user, I want to consult my personal account infos - -The situation we defined on the authentication side is as follows: - - every known user is authenticated using a basic token - - resellers are authenticated using API keys - we let the option to authenticate using a header or query param - - any registered user (customer or reseller) will add a signed JWT to access more API endpoints - -Obviously, there are several ways to achieve the same result. We just wanted to demonstrate here how -security requirements may compose several schemes. - -Note that we used the "OAuth2" declaration here but don't implement a real -OAuth2 workflow: our intend here is just to be able to extract scopes from a passed JWT token (the -only way to manipulate scoped authorizers with Swagger 2.0 is to declare them with type "oauth2"). -*/ +// MultiAuthExampleAPI This sample API demonstrates how to compose several authentication schemes +// and configure complex security requirements for your operations. +// +// This API simulates a very simple market place with customers and resellers +// of items. +// +// Personas: +// - as a first time user, I want to see all items on sales +// - as a registered customer, I want to post orders for items and +// consult my past orders +// - as a registered reseller, I want to see all pending orders on the items +// I am selling on the market place +// - as a reseller managing my own inventories, I want to post replenishment orders for the items I provide +// - as a register user, I want to consult my personal account infos +// +// The situation we defined on the authentication side is as follows: +// - every known user is authenticated using a basic token +// - resellers are authenticated using API keys - we let the option to authenticate using a header or query param +// - any registered user (customer or reseller) will add a signed JWT to access more API endpoints +// +// Obviously, there are several ways to achieve the same result. We just wanted to demonstrate here how +// security requirements may compose several schemes. +// +// Note that we used the "OAuth2" declaration here but don't implement a real +// OAuth2 workflow: our intend here is just to be able to extract scopes from a passed JWT token (the +// only way to manipulate scoped authorizers with Swagger 2.0 is to declare them with type "oauth2"). type MultiAuthExampleAPI struct { spec *loads.Document context *middleware.Context diff --git a/contributed-templates/stratoscale/client/pet/pet_client.go b/contributed-templates/stratoscale/client/pet/pet_client.go index 9b146059..a4d6dcc8 100644 --- a/contributed-templates/stratoscale/client/pet/pet_client.go +++ b/contributed-templates/stratoscale/client/pet/pet_client.go @@ -15,23 +15,23 @@ import ( // API is the interface of the pet client. type API interface { - /* - PetCreate adds a new pet to the store*/ + + // PetCreate adds a new pet to the store PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error) - /* - PetDelete deletes a pet*/ + + // PetDelete deletes a pet PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error) - /* - PetGet gets pet by it s ID*/ + + // PetGet gets pet by it s ID PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error) - /* - PetList lists pets*/ + + // PetList lists pets PetList(ctx context.Context, params *PetListParams) (*PetListOK, error) - /* - PetUpdate updates an existing pet*/ + + // PetUpdate updates an existing pet PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error) - /* - PetUploadImage uploads an image*/ + + // PetUploadImage uploads an image PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error) } @@ -44,18 +44,14 @@ func New(transport runtime.ContextualTransport, formats strfmt.Registry, authInf } } -/* -Client for pet API -*/ +// Client for pet API type Client struct { transport runtime.ContextualTransport formats strfmt.Registry authInfo runtime.ClientAuthInfoWriter } -/* -PetCreate adds a new pet to the store. -*/ +// PetCreate adds a new pet to the store. func (a *Client) PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "PetCreate", @@ -89,9 +85,7 @@ func (a *Client) PetCreate(ctx context.Context, params *PetCreateParams) (*PetCr panic(msg) } -/* -PetDelete deletes a pet. -*/ +// PetDelete deletes a pet. func (a *Client) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "PetDelete", @@ -127,9 +121,7 @@ func (a *Client) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDe panic(msg) } -/* -PetGet gets pet by it s ID. -*/ +// PetGet gets pet by it s ID. func (a *Client) PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "PetGet", @@ -165,9 +157,7 @@ func (a *Client) PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, e panic(msg) } -/* -PetList lists pets. -*/ +// PetList lists pets. func (a *Client) PetList(ctx context.Context, params *PetListParams) (*PetListOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "PetList", @@ -201,9 +191,7 @@ func (a *Client) PetList(ctx context.Context, params *PetListParams) (*PetListOK panic(msg) } -/* -PetUpdate updates an existing pet. -*/ +// PetUpdate updates an existing pet. func (a *Client) PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "PetUpdate", @@ -241,9 +229,7 @@ func (a *Client) PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUp panic(msg) } -/* -PetUploadImage uploads an image. -*/ +// PetUploadImage uploads an image. func (a *Client) PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "PetUploadImage", diff --git a/contributed-templates/stratoscale/client/pet/pet_create_parameters.go b/contributed-templates/stratoscale/client/pet/pet_create_parameters.go index ca409431..6171e452 100644 --- a/contributed-templates/stratoscale/client/pet/pet_create_parameters.go +++ b/contributed-templates/stratoscale/client/pet/pet_create_parameters.go @@ -63,10 +63,9 @@ PetCreateParams contains all the parameters to send to the API endpoint */ type PetCreateParams struct { - /* Body. - - Pet object that needs to be added to the store - */ + // Body. + // + // Pet object that needs to be added to the store Body *models.Pet HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/pet/pet_create_responses.go b/contributed-templates/stratoscale/client/pet/pet_create_responses.go index 909cb269..d428f24d 100644 --- a/contributed-templates/stratoscale/client/pet/pet_create_responses.go +++ b/contributed-templates/stratoscale/client/pet/pet_create_responses.go @@ -43,11 +43,9 @@ func NewPetCreateCreated() *PetCreateCreated { return &PetCreateCreated{} } -/* -PetCreateCreated describes a response with status code 201, with default header values. - -Created -*/ +// PetCreateCreated describes a response with status code 201, with default header values. +// +// Created type PetCreateCreated struct { Payload *models.Pet } @@ -113,11 +111,9 @@ func NewPetCreateMethodNotAllowed() *PetCreateMethodNotAllowed { return &PetCreateMethodNotAllowed{} } -/* -PetCreateMethodNotAllowed describes a response with status code 405, with default header values. - -Invalid input -*/ +// PetCreateMethodNotAllowed describes a response with status code 405, with default header values. +// +// Invalid input type PetCreateMethodNotAllowed struct { } diff --git a/contributed-templates/stratoscale/client/pet/pet_delete_parameters.go b/contributed-templates/stratoscale/client/pet/pet_delete_parameters.go index 06118faf..78aa9262 100644 --- a/contributed-templates/stratoscale/client/pet/pet_delete_parameters.go +++ b/contributed-templates/stratoscale/client/pet/pet_delete_parameters.go @@ -66,12 +66,11 @@ type PetDeleteParams struct { // APIKey. APIKey *string - /* PetID. - - Pet id to delete - - Format: int64 - */ + // PetID. + // + // Pet id to delete + // + // Format: int64 PetID int64 HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/pet/pet_delete_responses.go b/contributed-templates/stratoscale/client/pet/pet_delete_responses.go index ffa3f5ab..5b74128a 100644 --- a/contributed-templates/stratoscale/client/pet/pet_delete_responses.go +++ b/contributed-templates/stratoscale/client/pet/pet_delete_responses.go @@ -45,11 +45,9 @@ func NewPetDeleteNoContent() *PetDeleteNoContent { return &PetDeleteNoContent{} } -/* -PetDeleteNoContent describes a response with status code 204, with default header values. - -Deleted successfully -*/ +// PetDeleteNoContent describes a response with status code 204, with default header values. +// +// Deleted successfully type PetDeleteNoContent struct { } @@ -101,11 +99,9 @@ func NewPetDeleteBadRequest() *PetDeleteBadRequest { return &PetDeleteBadRequest{} } -/* -PetDeleteBadRequest describes a response with status code 400, with default header values. - -Invalid ID supplied -*/ +// PetDeleteBadRequest describes a response with status code 400, with default header values. +// +// Invalid ID supplied type PetDeleteBadRequest struct { } @@ -157,11 +153,9 @@ func NewPetDeleteNotFound() *PetDeleteNotFound { return &PetDeleteNotFound{} } -/* -PetDeleteNotFound describes a response with status code 404, with default header values. - -Pet not found -*/ +// PetDeleteNotFound describes a response with status code 404, with default header values. +// +// Pet not found type PetDeleteNotFound struct { } diff --git a/contributed-templates/stratoscale/client/pet/pet_get_parameters.go b/contributed-templates/stratoscale/client/pet/pet_get_parameters.go index 76456f3c..fd8897a2 100644 --- a/contributed-templates/stratoscale/client/pet/pet_get_parameters.go +++ b/contributed-templates/stratoscale/client/pet/pet_get_parameters.go @@ -63,12 +63,11 @@ PetGetParams contains all the parameters to send to the API endpoint */ type PetGetParams struct { - /* PetID. - - ID of pet to return - - Format: int64 - */ + // PetID. + // + // ID of pet to return + // + // Format: int64 PetID int64 HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/pet/pet_get_responses.go b/contributed-templates/stratoscale/client/pet/pet_get_responses.go index 588488c0..836851aa 100644 --- a/contributed-templates/stratoscale/client/pet/pet_get_responses.go +++ b/contributed-templates/stratoscale/client/pet/pet_get_responses.go @@ -49,11 +49,9 @@ func NewPetGetOK() *PetGetOK { return &PetGetOK{} } -/* -PetGetOK describes a response with status code 200, with default header values. - -successful operation -*/ +// PetGetOK describes a response with status code 200, with default header values. +// +// successful operation type PetGetOK struct { Payload *models.Pet } @@ -119,11 +117,9 @@ func NewPetGetBadRequest() *PetGetBadRequest { return &PetGetBadRequest{} } -/* -PetGetBadRequest describes a response with status code 400, with default header values. - -Invalid ID supplied -*/ +// PetGetBadRequest describes a response with status code 400, with default header values. +// +// Invalid ID supplied type PetGetBadRequest struct { } @@ -175,11 +171,9 @@ func NewPetGetNotFound() *PetGetNotFound { return &PetGetNotFound{} } -/* -PetGetNotFound describes a response with status code 404, with default header values. - -Pet not found -*/ +// PetGetNotFound describes a response with status code 404, with default header values. +// +// Pet not found type PetGetNotFound struct { } diff --git a/contributed-templates/stratoscale/client/pet/pet_list_parameters.go b/contributed-templates/stratoscale/client/pet/pet_list_parameters.go index 1d65246b..cc8c0cea 100644 --- a/contributed-templates/stratoscale/client/pet/pet_list_parameters.go +++ b/contributed-templates/stratoscale/client/pet/pet_list_parameters.go @@ -63,10 +63,9 @@ PetListParams contains all the parameters to send to the API endpoint */ type PetListParams struct { - /* Status. - - Status values that need to be considered for filter - */ + // Status. + // + // Status values that need to be considered for filter Status []string HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/pet/pet_list_responses.go b/contributed-templates/stratoscale/client/pet/pet_list_responses.go index b5d95ed0..f0a8eb34 100644 --- a/contributed-templates/stratoscale/client/pet/pet_list_responses.go +++ b/contributed-templates/stratoscale/client/pet/pet_list_responses.go @@ -43,11 +43,9 @@ func NewPetListOK() *PetListOK { return &PetListOK{} } -/* -PetListOK describes a response with status code 200, with default header values. - -successful operation -*/ +// PetListOK describes a response with status code 200, with default header values. +// +// successful operation type PetListOK struct { Payload []*models.Pet } @@ -111,11 +109,9 @@ func NewPetListBadRequest() *PetListBadRequest { return &PetListBadRequest{} } -/* -PetListBadRequest describes a response with status code 400, with default header values. - -Invalid status value -*/ +// PetListBadRequest describes a response with status code 400, with default header values. +// +// Invalid status value type PetListBadRequest struct { } diff --git a/contributed-templates/stratoscale/client/pet/pet_update_parameters.go b/contributed-templates/stratoscale/client/pet/pet_update_parameters.go index 70349b8d..d948932b 100644 --- a/contributed-templates/stratoscale/client/pet/pet_update_parameters.go +++ b/contributed-templates/stratoscale/client/pet/pet_update_parameters.go @@ -63,10 +63,9 @@ PetUpdateParams contains all the parameters to send to the API endpoint */ type PetUpdateParams struct { - /* Body. - - Pet object that needs to be added to the store - */ + // Body. + // + // Pet object that needs to be added to the store Body *models.Pet HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/pet/pet_update_responses.go b/contributed-templates/stratoscale/client/pet/pet_update_responses.go index d997e1fa..1c17b7fd 100644 --- a/contributed-templates/stratoscale/client/pet/pet_update_responses.go +++ b/contributed-templates/stratoscale/client/pet/pet_update_responses.go @@ -55,11 +55,9 @@ func NewPetUpdateCreated() *PetUpdateCreated { return &PetUpdateCreated{} } -/* -PetUpdateCreated describes a response with status code 201, with default header values. - -Updated successfully -*/ +// PetUpdateCreated describes a response with status code 201, with default header values. +// +// Updated successfully type PetUpdateCreated struct { Payload *models.Pet } @@ -125,11 +123,9 @@ func NewPetUpdateBadRequest() *PetUpdateBadRequest { return &PetUpdateBadRequest{} } -/* -PetUpdateBadRequest describes a response with status code 400, with default header values. - -Invalid ID supplied -*/ +// PetUpdateBadRequest describes a response with status code 400, with default header values. +// +// Invalid ID supplied type PetUpdateBadRequest struct { } @@ -181,11 +177,9 @@ func NewPetUpdateNotFound() *PetUpdateNotFound { return &PetUpdateNotFound{} } -/* -PetUpdateNotFound describes a response with status code 404, with default header values. - -Pet not found -*/ +// PetUpdateNotFound describes a response with status code 404, with default header values. +// +// Pet not found type PetUpdateNotFound struct { } @@ -237,11 +231,9 @@ func NewPetUpdateMethodNotAllowed() *PetUpdateMethodNotAllowed { return &PetUpdateMethodNotAllowed{} } -/* -PetUpdateMethodNotAllowed describes a response with status code 405, with default header values. - -Validation exception -*/ +// PetUpdateMethodNotAllowed describes a response with status code 405, with default header values. +// +// Validation exception type PetUpdateMethodNotAllowed struct { } diff --git a/contributed-templates/stratoscale/client/pet/pet_upload_image_parameters.go b/contributed-templates/stratoscale/client/pet/pet_upload_image_parameters.go index 0a08f6ac..3b2a578c 100644 --- a/contributed-templates/stratoscale/client/pet/pet_upload_image_parameters.go +++ b/contributed-templates/stratoscale/client/pet/pet_upload_image_parameters.go @@ -63,24 +63,21 @@ PetUploadImageParams contains all the parameters to send to the API endpoint */ type PetUploadImageParams struct { - /* AdditionalMetadata. - - Additional data to pass to server - */ + // AdditionalMetadata. + // + // Additional data to pass to server AdditionalMetadata *string - /* File. - - file to upload - */ + // File. + // + // file to upload File runtime.NamedReadCloser - /* PetID. - - ID of pet to update - - Format: int64 - */ + // PetID. + // + // ID of pet to update + // + // Format: int64 PetID int64 HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/pet/pet_upload_image_responses.go b/contributed-templates/stratoscale/client/pet/pet_upload_image_responses.go index 5f368253..fb191739 100644 --- a/contributed-templates/stratoscale/client/pet/pet_upload_image_responses.go +++ b/contributed-templates/stratoscale/client/pet/pet_upload_image_responses.go @@ -37,11 +37,9 @@ func NewPetUploadImageOK() *PetUploadImageOK { return &PetUploadImageOK{} } -/* -PetUploadImageOK describes a response with status code 200, with default header values. - -successful operation -*/ +// PetUploadImageOK describes a response with status code 200, with default header values. +// +// successful operation type PetUploadImageOK struct { Payload *models.APIResponse } diff --git a/contributed-templates/stratoscale/client/store/inventory_get_responses.go b/contributed-templates/stratoscale/client/store/inventory_get_responses.go index 3f893f23..efbdf840 100644 --- a/contributed-templates/stratoscale/client/store/inventory_get_responses.go +++ b/contributed-templates/stratoscale/client/store/inventory_get_responses.go @@ -36,11 +36,9 @@ func NewInventoryGetOK() *InventoryGetOK { return &InventoryGetOK{} } -/* -InventoryGetOK describes a response with status code 200, with default header values. - -successful operation -*/ +// InventoryGetOK describes a response with status code 200, with default header values. +// +// successful operation type InventoryGetOK struct { Payload map[string]int32 } diff --git a/contributed-templates/stratoscale/client/store/order_create_parameters.go b/contributed-templates/stratoscale/client/store/order_create_parameters.go index 97fcfd64..a4107dc1 100644 --- a/contributed-templates/stratoscale/client/store/order_create_parameters.go +++ b/contributed-templates/stratoscale/client/store/order_create_parameters.go @@ -63,10 +63,9 @@ OrderCreateParams contains all the parameters to send to the API endpoint */ type OrderCreateParams struct { - /* Body. - - order placed for purchasing the pet - */ + // Body. + // + // order placed for purchasing the pet Body *models.Order HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/store/order_create_responses.go b/contributed-templates/stratoscale/client/store/order_create_responses.go index 15376138..b7b6b65c 100644 --- a/contributed-templates/stratoscale/client/store/order_create_responses.go +++ b/contributed-templates/stratoscale/client/store/order_create_responses.go @@ -43,11 +43,9 @@ func NewOrderCreateOK() *OrderCreateOK { return &OrderCreateOK{} } -/* -OrderCreateOK describes a response with status code 200, with default header values. - -successful operation -*/ +// OrderCreateOK describes a response with status code 200, with default header values. +// +// successful operation type OrderCreateOK struct { Payload *models.Order } @@ -113,11 +111,9 @@ func NewOrderCreateBadRequest() *OrderCreateBadRequest { return &OrderCreateBadRequest{} } -/* -OrderCreateBadRequest describes a response with status code 400, with default header values. - -Invalid Order -*/ +// OrderCreateBadRequest describes a response with status code 400, with default header values. +// +// Invalid Order type OrderCreateBadRequest struct { } diff --git a/contributed-templates/stratoscale/client/store/order_delete_parameters.go b/contributed-templates/stratoscale/client/store/order_delete_parameters.go index 24e88673..402b167b 100644 --- a/contributed-templates/stratoscale/client/store/order_delete_parameters.go +++ b/contributed-templates/stratoscale/client/store/order_delete_parameters.go @@ -63,12 +63,11 @@ OrderDeleteParams contains all the parameters to send to the API endpoint */ type OrderDeleteParams struct { - /* OrderID. - - ID of the order that needs to be deleted - - Format: int64 - */ + // OrderID. + // + // ID of the order that needs to be deleted + // + // Format: int64 OrderID int64 HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/store/order_delete_responses.go b/contributed-templates/stratoscale/client/store/order_delete_responses.go index 64ebc478..4c12fd39 100644 --- a/contributed-templates/stratoscale/client/store/order_delete_responses.go +++ b/contributed-templates/stratoscale/client/store/order_delete_responses.go @@ -45,11 +45,9 @@ func NewOrderDeleteNoContent() *OrderDeleteNoContent { return &OrderDeleteNoContent{} } -/* -OrderDeleteNoContent describes a response with status code 204, with default header values. - -Deleted successfully -*/ +// OrderDeleteNoContent describes a response with status code 204, with default header values. +// +// Deleted successfully type OrderDeleteNoContent struct { } @@ -101,11 +99,9 @@ func NewOrderDeleteBadRequest() *OrderDeleteBadRequest { return &OrderDeleteBadRequest{} } -/* -OrderDeleteBadRequest describes a response with status code 400, with default header values. - -Invalid ID supplied -*/ +// OrderDeleteBadRequest describes a response with status code 400, with default header values. +// +// Invalid ID supplied type OrderDeleteBadRequest struct { } @@ -157,11 +153,9 @@ func NewOrderDeleteNotFound() *OrderDeleteNotFound { return &OrderDeleteNotFound{} } -/* -OrderDeleteNotFound describes a response with status code 404, with default header values. - -Order not found -*/ +// OrderDeleteNotFound describes a response with status code 404, with default header values. +// +// Order not found type OrderDeleteNotFound struct { } diff --git a/contributed-templates/stratoscale/client/store/order_get_parameters.go b/contributed-templates/stratoscale/client/store/order_get_parameters.go index 7d5a421c..8c285067 100644 --- a/contributed-templates/stratoscale/client/store/order_get_parameters.go +++ b/contributed-templates/stratoscale/client/store/order_get_parameters.go @@ -63,12 +63,11 @@ OrderGetParams contains all the parameters to send to the API endpoint */ type OrderGetParams struct { - /* OrderID. - - ID of pet that needs to be fetched - - Format: int64 - */ + // OrderID. + // + // ID of pet that needs to be fetched + // + // Format: int64 OrderID int64 HTTPClient *http.Client diff --git a/contributed-templates/stratoscale/client/store/order_get_responses.go b/contributed-templates/stratoscale/client/store/order_get_responses.go index 4a29bfed..d577d7bf 100644 --- a/contributed-templates/stratoscale/client/store/order_get_responses.go +++ b/contributed-templates/stratoscale/client/store/order_get_responses.go @@ -49,11 +49,9 @@ func NewOrderGetOK() *OrderGetOK { return &OrderGetOK{} } -/* -OrderGetOK describes a response with status code 200, with default header values. - -successful operation -*/ +// OrderGetOK describes a response with status code 200, with default header values. +// +// successful operation type OrderGetOK struct { Payload *models.Order } @@ -119,11 +117,9 @@ func NewOrderGetBadRequest() *OrderGetBadRequest { return &OrderGetBadRequest{} } -/* -OrderGetBadRequest describes a response with status code 400, with default header values. - -Invalid ID supplied -*/ +// OrderGetBadRequest describes a response with status code 400, with default header values. +// +// Invalid ID supplied type OrderGetBadRequest struct { } @@ -175,11 +171,9 @@ func NewOrderGetNotFound() *OrderGetNotFound { return &OrderGetNotFound{} } -/* -OrderGetNotFound describes a response with status code 404, with default header values. - -Order not found -*/ +// OrderGetNotFound describes a response with status code 404, with default header values. +// +// Order not found type OrderGetNotFound struct { } diff --git a/contributed-templates/stratoscale/client/store/store_client.go b/contributed-templates/stratoscale/client/store/store_client.go index 1d4e6414..8c087e48 100644 --- a/contributed-templates/stratoscale/client/store/store_client.go +++ b/contributed-templates/stratoscale/client/store/store_client.go @@ -15,21 +15,21 @@ import ( // API is the interface of the store client. type API interface { - /* - InventoryGet returns pet inventories by status*/ + + // InventoryGet returns pet inventories by status InventoryGet(ctx context.Context, params *InventoryGetParams) (*InventoryGetOK, error) - /* - OrderCreate places an order for a pet*/ + + // OrderCreate places an order for a pet OrderCreate(ctx context.Context, params *OrderCreateParams) (*OrderCreateOK, error) - /* - OrderDelete deletes purchase order by ID - For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors*/ + // OrderDelete deletes purchase order by ID + // + // For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors OrderDelete(ctx context.Context, params *OrderDeleteParams) (*OrderDeleteNoContent, error) - /* - OrderGet finds purchase order by ID - For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions*/ + // OrderGet finds purchase order by ID + // + // For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions OrderGet(ctx context.Context, params *OrderGetParams) (*OrderGetOK, error) } @@ -42,18 +42,14 @@ func New(transport runtime.ContextualTransport, formats strfmt.Registry, authInf } } -/* -Client for store API -*/ +// Client for store API type Client struct { transport runtime.ContextualTransport formats strfmt.Registry authInfo runtime.ClientAuthInfoWriter } -/* -InventoryGet returns pet inventories by status. -*/ +// InventoryGet returns pet inventories by status. func (a *Client) InventoryGet(ctx context.Context, params *InventoryGetParams) (*InventoryGetOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "InventoryGet", @@ -83,9 +79,7 @@ func (a *Client) InventoryGet(ctx context.Context, params *InventoryGetParams) ( panic(msg) } -/* -OrderCreate places an order for a pet. -*/ +// OrderCreate places an order for a pet. func (a *Client) OrderCreate(ctx context.Context, params *OrderCreateParams) (*OrderCreateOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "OrderCreate", @@ -119,11 +113,9 @@ func (a *Client) OrderCreate(ctx context.Context, params *OrderCreateParams) (*O panic(msg) } -/* -OrderDelete deletes purchase order by ID. - -For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors. -*/ +// OrderDelete deletes purchase order by ID. +// +// For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors. func (a *Client) OrderDelete(ctx context.Context, params *OrderDeleteParams) (*OrderDeleteNoContent, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "OrderDelete", @@ -159,11 +151,9 @@ func (a *Client) OrderDelete(ctx context.Context, params *OrderDeleteParams) (*O panic(msg) } -/* -OrderGet finds purchase order by ID. - -For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions. -*/ +// OrderGet finds purchase order by ID. +// +// For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions. func (a *Client) OrderGet(ctx context.Context, params *OrderGetParams) (*OrderGetOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "OrderGet", diff --git a/contributed-templates/stratoscale/restapi/configure_petstore.go b/contributed-templates/stratoscale/restapi/configure_petstore.go index 77573f75..f49b0622 100644 --- a/contributed-templates/stratoscale/restapi/configure_petstore.go +++ b/contributed-templates/stratoscale/restapi/configure_petstore.go @@ -25,33 +25,33 @@ const AuthKey contextKey = "Auth" //go:generate mockery --name PetAPI --inpackage -/* PetAPI */ +// PetAPI type PetAPI interface { - /* PetCreate Add a new pet to the store */ + // PetCreate Add a new pet to the store PetCreate(ctx context.Context, params pet.PetCreateParams) middleware.Responder - /* PetDelete Deletes a pet */ + // PetDelete Deletes a pet PetDelete(ctx context.Context, params pet.PetDeleteParams) middleware.Responder - /* PetGet Get pet by it's ID */ + // PetGet Get pet by it's ID PetGet(ctx context.Context, params pet.PetGetParams) middleware.Responder - /* PetList List pets */ + // PetList List pets PetList(ctx context.Context, params pet.PetListParams) middleware.Responder - /* PetUpdate Update an existing pet */ + // PetUpdate Update an existing pet PetUpdate(ctx context.Context, params pet.PetUpdateParams) middleware.Responder - /* PetUploadImage uploads an image */ + // PetUploadImage uploads an image PetUploadImage(ctx context.Context, params pet.PetUploadImageParams) middleware.Responder } //go:generate mockery --name StoreAPI --inpackage -/* StoreAPI */ +// StoreAPI type StoreAPI interface { - /* InventoryGet Returns pet inventories by status */ + // InventoryGet Returns pet inventories by status InventoryGet(ctx context.Context, params store.InventoryGetParams) middleware.Responder - /* OrderCreate Place an order for a pet */ + // OrderCreate Place an order for a pet OrderCreate(ctx context.Context, params store.OrderCreateParams) middleware.Responder - /* OrderDelete Delete purchase order by ID */ + // OrderDelete Delete purchase order by ID OrderDelete(ctx context.Context, params store.OrderDeleteParams) middleware.Responder - /* OrderGet Find purchase order by ID */ + // OrderGet Find purchase order by ID OrderGet(ctx context.Context, params store.OrderGetParams) middleware.Responder } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_create.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_create.go index 44ef0751..06d7f21b 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_create.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_create.go @@ -26,11 +26,9 @@ func NewPetCreate(ctx *middleware.Context, handler PetCreateHandler) *PetCreate return &PetCreate{Context: ctx, Handler: handler} } -/* - PetCreate swagger:route POST /pet pet petCreate - -Add a new pet to the store -*/ +// PetCreate swagger:route POST /pet pet petCreate +// +// Add a new pet to the store type PetCreate struct { Context *middleware.Context Handler PetCreateHandler diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_create_parameters.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_create_parameters.go index 4b7a39d0..09366361 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_create_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_create_parameters.go @@ -29,11 +29,9 @@ func NewPetCreateParams() PetCreateParams { type PetCreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Pet object that needs to be added to the store - Required: true - In: body - */ + // Pet object that needs to be added to the store + // Required: true + // In: body Body *models.Pet } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_create_responses.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_create_responses.go index 1c330c80..3063bfe7 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_create_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_create_responses.go @@ -12,16 +12,12 @@ import ( // PetCreateCreatedCode is the HTTP code returned for type PetCreateCreated const PetCreateCreatedCode int = 201 -/* -PetCreateCreated Created - -swagger:response petCreateCreated -*/ +// PetCreateCreated Created +// +// swagger:response petCreateCreated type PetCreateCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Pet `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *PetCreateCreated) WriteResponse(rw http.ResponseWriter, producer runtim // PetCreateMethodNotAllowedCode is the HTTP code returned for type PetCreateMethodNotAllowed const PetCreateMethodNotAllowedCode int = 405 -/* -PetCreateMethodNotAllowed Invalid input - -swagger:response petCreateMethodNotAllowed -*/ +// PetCreateMethodNotAllowed Invalid input +// +// swagger:response petCreateMethodNotAllowed type PetCreateMethodNotAllowed struct { } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_delete.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_delete.go index 9faba172..a8463a4b 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_delete.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_delete.go @@ -26,11 +26,9 @@ func NewPetDelete(ctx *middleware.Context, handler PetDeleteHandler) *PetDelete return &PetDelete{Context: ctx, Handler: handler} } -/* - PetDelete swagger:route DELETE /pet/{petId} pet petDelete - -Deletes a pet -*/ +// PetDelete swagger:route DELETE /pet/{petId} pet petDelete +// +// Deletes a pet type PetDelete struct { Context *middleware.Context Handler PetDeleteHandler diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_parameters.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_parameters.go index 5e084db9..4e091e1d 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_parameters.go @@ -26,16 +26,11 @@ func NewPetDeleteParams() PetDeleteParams { type PetDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: header - */ + // In: header APIKey *string - - /*Pet id to delete - Required: true - In: path - */ + // Pet id to delete + // Required: true + // In: path PetID int64 } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_responses.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_responses.go index 4739ce41..5ddedc6e 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_delete_responses.go @@ -11,11 +11,9 @@ import ( // PetDeleteNoContentCode is the HTTP code returned for type PetDeleteNoContent const PetDeleteNoContentCode int = 204 -/* -PetDeleteNoContent Deleted successfully - -swagger:response petDeleteNoContent -*/ +// PetDeleteNoContent Deleted successfully +// +// swagger:response petDeleteNoContent type PetDeleteNoContent struct { } @@ -36,11 +34,9 @@ func (o *PetDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runt // PetDeleteBadRequestCode is the HTTP code returned for type PetDeleteBadRequest const PetDeleteBadRequestCode int = 400 -/* -PetDeleteBadRequest Invalid ID supplied - -swagger:response petDeleteBadRequest -*/ +// PetDeleteBadRequest Invalid ID supplied +// +// swagger:response petDeleteBadRequest type PetDeleteBadRequest struct { } @@ -61,11 +57,9 @@ func (o *PetDeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer run // PetDeleteNotFoundCode is the HTTP code returned for type PetDeleteNotFound const PetDeleteNotFoundCode int = 404 -/* -PetDeleteNotFound Pet not found - -swagger:response petDeleteNotFound -*/ +// PetDeleteNotFound Pet not found +// +// swagger:response petDeleteNotFound type PetDeleteNotFound struct { } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_get.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_get.go index 4a7c318d..accb10cb 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_get.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_get.go @@ -26,11 +26,9 @@ func NewPetGet(ctx *middleware.Context, handler PetGetHandler) *PetGet { return &PetGet{Context: ctx, Handler: handler} } -/* - PetGet swagger:route GET /pet/{petId} pet petGet - -Get pet by it's ID -*/ +// PetGet swagger:route GET /pet/{petId} pet petGet +// +// Get pet by it's ID type PetGet struct { Context *middleware.Context Handler PetGetHandler diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_get_parameters.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_get_parameters.go index 26a9d8a9..02944019 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_get_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_get_parameters.go @@ -26,11 +26,9 @@ func NewPetGetParams() PetGetParams { type PetGetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*ID of pet to return - Required: true - In: path - */ + // ID of pet to return + // Required: true + // In: path PetID int64 } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_get_responses.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_get_responses.go index 0520c684..ad351934 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_get_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_get_responses.go @@ -12,16 +12,12 @@ import ( // PetGetOKCode is the HTTP code returned for type PetGetOK const PetGetOKCode int = 200 -/* -PetGetOK successful operation - -swagger:response petGetOK -*/ +// PetGetOK successful operation +// +// swagger:response petGetOK type PetGetOK struct { - /* - In: Body - */ + // In: Body Payload *models.Pet `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *PetGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produc // PetGetBadRequestCode is the HTTP code returned for type PetGetBadRequest const PetGetBadRequestCode int = 400 -/* -PetGetBadRequest Invalid ID supplied - -swagger:response petGetBadRequest -*/ +// PetGetBadRequest Invalid ID supplied +// +// swagger:response petGetBadRequest type PetGetBadRequest struct { } @@ -82,11 +76,9 @@ func (o *PetGetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtim // PetGetNotFoundCode is the HTTP code returned for type PetGetNotFound const PetGetNotFoundCode int = 404 -/* -PetGetNotFound Pet not found - -swagger:response petGetNotFound -*/ +// PetGetNotFound Pet not found +// +// swagger:response petGetNotFound type PetGetNotFound struct { } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_list.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_list.go index 31ef290a..cbad4934 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_list.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_list.go @@ -26,11 +26,9 @@ func NewPetList(ctx *middleware.Context, handler PetListHandler) *PetList { return &PetList{Context: ctx, Handler: handler} } -/* - PetList swagger:route GET /pet pet petList - -List pets -*/ +// PetList swagger:route GET /pet pet petList +// +// List pets type PetList struct { Context *middleware.Context Handler PetListHandler diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_list_parameters.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_list_parameters.go index 01d0799e..aab0a37c 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_list_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_list_parameters.go @@ -28,12 +28,10 @@ func NewPetListParams() PetListParams { type PetListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Status values that need to be considered for filter - Required: true - In: query - Collection Format: multi - */ + // Status values that need to be considered for filter + // Required: true + // In: query + // Collection Format: multi Status []string } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_list_responses.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_list_responses.go index 146f66af..59204c54 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_list_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_list_responses.go @@ -12,16 +12,12 @@ import ( // PetListOKCode is the HTTP code returned for type PetListOK const PetListOKCode int = 200 -/* -PetListOK successful operation - -swagger:response petListOK -*/ +// PetListOK successful operation +// +// swagger:response petListOK type PetListOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Pet `json:"body,omitempty"` } @@ -60,11 +56,9 @@ func (o *PetListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produ // PetListBadRequestCode is the HTTP code returned for type PetListBadRequest const PetListBadRequestCode int = 400 -/* -PetListBadRequest Invalid status value - -swagger:response petListBadRequest -*/ +// PetListBadRequest Invalid status value +// +// swagger:response petListBadRequest type PetListBadRequest struct { } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_update.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_update.go index f8e8409a..02302545 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_update.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_update.go @@ -26,11 +26,9 @@ func NewPetUpdate(ctx *middleware.Context, handler PetUpdateHandler) *PetUpdate return &PetUpdate{Context: ctx, Handler: handler} } -/* - PetUpdate swagger:route PUT /pet pet petUpdate - -Update an existing pet -*/ +// PetUpdate swagger:route PUT /pet pet petUpdate +// +// Update an existing pet type PetUpdate struct { Context *middleware.Context Handler PetUpdateHandler diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_update_parameters.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_update_parameters.go index 3a553ccd..c5392b16 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_update_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_update_parameters.go @@ -29,11 +29,9 @@ func NewPetUpdateParams() PetUpdateParams { type PetUpdateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Pet object that needs to be added to the store - Required: true - In: body - */ + // Pet object that needs to be added to the store + // Required: true + // In: body Body *models.Pet } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_update_responses.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_update_responses.go index 36ec2b6d..9f283801 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_update_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_update_responses.go @@ -12,16 +12,12 @@ import ( // PetUpdateCreatedCode is the HTTP code returned for type PetUpdateCreated const PetUpdateCreatedCode int = 201 -/* -PetUpdateCreated Updated successfully - -swagger:response petUpdateCreated -*/ +// PetUpdateCreated Updated successfully +// +// swagger:response petUpdateCreated type PetUpdateCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Pet `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *PetUpdateCreated) WriteResponse(rw http.ResponseWriter, producer runtim // PetUpdateBadRequestCode is the HTTP code returned for type PetUpdateBadRequest const PetUpdateBadRequestCode int = 400 -/* -PetUpdateBadRequest Invalid ID supplied - -swagger:response petUpdateBadRequest -*/ +// PetUpdateBadRequest Invalid ID supplied +// +// swagger:response petUpdateBadRequest type PetUpdateBadRequest struct { } @@ -82,11 +76,9 @@ func (o *PetUpdateBadRequest) WriteResponse(rw http.ResponseWriter, producer run // PetUpdateNotFoundCode is the HTTP code returned for type PetUpdateNotFound const PetUpdateNotFoundCode int = 404 -/* -PetUpdateNotFound Pet not found - -swagger:response petUpdateNotFound -*/ +// PetUpdateNotFound Pet not found +// +// swagger:response petUpdateNotFound type PetUpdateNotFound struct { } @@ -107,11 +99,9 @@ func (o *PetUpdateNotFound) WriteResponse(rw http.ResponseWriter, producer runti // PetUpdateMethodNotAllowedCode is the HTTP code returned for type PetUpdateMethodNotAllowed const PetUpdateMethodNotAllowedCode int = 405 -/* -PetUpdateMethodNotAllowed Validation exception - -swagger:response petUpdateMethodNotAllowed -*/ +// PetUpdateMethodNotAllowed Validation exception +// +// swagger:response petUpdateMethodNotAllowed type PetUpdateMethodNotAllowed struct { } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image.go index 8e7f9e8d..4ad99123 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image.go @@ -26,11 +26,9 @@ func NewPetUploadImage(ctx *middleware.Context, handler PetUploadImageHandler) * return &PetUploadImage{Context: ctx, Handler: handler} } -/* - PetUploadImage swagger:route POST /pet/{petId}/image pet petUploadImage - -uploads an image -*/ +// PetUploadImage swagger:route POST /pet/{petId}/image pet petUploadImage +// +// uploads an image type PetUploadImage struct { Context *middleware.Context Handler PetUploadImageHandler diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_parameters.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_parameters.go index af6366d1..26edd649 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_parameters.go @@ -41,21 +41,15 @@ func NewPetUploadImageParams() PetUploadImageParams { type PetUploadImageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Additional data to pass to server - In: formData - */ + // Additional data to pass to server + // In: formData AdditionalMetadata *string - - /*file to upload - In: formData - */ + // file to upload + // In: formData File io.ReadCloser - - /*ID of pet to update - Required: true - In: path - */ + // ID of pet to update + // Required: true + // In: path PetID int64 } diff --git a/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_responses.go b/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_responses.go index 5b977216..de383829 100644 --- a/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/pet/pet_upload_image_responses.go @@ -12,16 +12,12 @@ import ( // PetUploadImageOKCode is the HTTP code returned for type PetUploadImageOK const PetUploadImageOKCode int = 200 -/* -PetUploadImageOK successful operation - -swagger:response petUploadImageOK -*/ +// PetUploadImageOK successful operation +// +// swagger:response petUploadImageOK type PetUploadImageOK struct { - /* - In: Body - */ + // In: Body Payload *models.APIResponse `json:"body,omitempty"` } diff --git a/contributed-templates/stratoscale/restapi/operations/petstore_api.go b/contributed-templates/stratoscale/restapi/operations/petstore_api.go index db84166e..5043861a 100644 --- a/contributed-templates/stratoscale/restapi/operations/petstore_api.go +++ b/contributed-templates/stratoscale/restapi/operations/petstore_api.go @@ -122,7 +122,7 @@ func NewPetstoreAPI(spec *loads.Document) *PetstoreAPI { } } -/*PetstoreAPI This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. */ +// PetstoreAPI This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. type PetstoreAPI struct { spec *loads.Document context *middleware.Context diff --git a/contributed-templates/stratoscale/restapi/operations/store/inventory_get.go b/contributed-templates/stratoscale/restapi/operations/store/inventory_get.go index 59bbf644..849f147a 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/inventory_get.go +++ b/contributed-templates/stratoscale/restapi/operations/store/inventory_get.go @@ -26,11 +26,9 @@ func NewInventoryGet(ctx *middleware.Context, handler InventoryGetHandler) *Inve return &InventoryGet{Context: ctx, Handler: handler} } -/* - InventoryGet swagger:route GET /store/inventory store inventoryGet - -Returns pet inventories by status -*/ +// InventoryGet swagger:route GET /store/inventory store inventoryGet +// +// Returns pet inventories by status type InventoryGet struct { Context *middleware.Context Handler InventoryGetHandler diff --git a/contributed-templates/stratoscale/restapi/operations/store/inventory_get_responses.go b/contributed-templates/stratoscale/restapi/operations/store/inventory_get_responses.go index 4dc24023..b751b5db 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/inventory_get_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/store/inventory_get_responses.go @@ -11,16 +11,12 @@ import ( // InventoryGetOKCode is the HTTP code returned for type InventoryGetOK const InventoryGetOKCode int = 200 -/* -InventoryGetOK successful operation - -swagger:response inventoryGetOK -*/ +// InventoryGetOK successful operation +// +// swagger:response inventoryGetOK type InventoryGetOK struct { - /* - In: Body - */ + // In: Body Payload map[string]int32 `json:"body,omitempty"` } diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_create.go b/contributed-templates/stratoscale/restapi/operations/store/order_create.go index 6dd5fc5c..85e6838b 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_create.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_create.go @@ -26,11 +26,9 @@ func NewOrderCreate(ctx *middleware.Context, handler OrderCreateHandler) *OrderC return &OrderCreate{Context: ctx, Handler: handler} } -/* - OrderCreate swagger:route POST /store/order store orderCreate - -Place an order for a pet -*/ +// OrderCreate swagger:route POST /store/order store orderCreate +// +// Place an order for a pet type OrderCreate struct { Context *middleware.Context Handler OrderCreateHandler diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_create_parameters.go b/contributed-templates/stratoscale/restapi/operations/store/order_create_parameters.go index 6f4d2454..7e5d288f 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_create_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_create_parameters.go @@ -29,11 +29,9 @@ func NewOrderCreateParams() OrderCreateParams { type OrderCreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*order placed for purchasing the pet - Required: true - In: body - */ + // order placed for purchasing the pet + // Required: true + // In: body Body *models.Order } diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_create_responses.go b/contributed-templates/stratoscale/restapi/operations/store/order_create_responses.go index d5fe23ad..f7d05b0d 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_create_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_create_responses.go @@ -12,16 +12,12 @@ import ( // OrderCreateOKCode is the HTTP code returned for type OrderCreateOK const OrderCreateOKCode int = 200 -/* -OrderCreateOK successful operation - -swagger:response orderCreateOK -*/ +// OrderCreateOK successful operation +// +// swagger:response orderCreateOK type OrderCreateOK struct { - /* - In: Body - */ + // In: Body Payload *models.Order `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *OrderCreateOK) WriteResponse(rw http.ResponseWriter, producer runtime.P // OrderCreateBadRequestCode is the HTTP code returned for type OrderCreateBadRequest const OrderCreateBadRequestCode int = 400 -/* -OrderCreateBadRequest Invalid Order - -swagger:response orderCreateBadRequest -*/ +// OrderCreateBadRequest Invalid Order +// +// swagger:response orderCreateBadRequest type OrderCreateBadRequest struct { } diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_delete.go b/contributed-templates/stratoscale/restapi/operations/store/order_delete.go index 95999979..993b77b5 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_delete.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_delete.go @@ -26,13 +26,11 @@ func NewOrderDelete(ctx *middleware.Context, handler OrderDeleteHandler) *OrderD return &OrderDelete{Context: ctx, Handler: handler} } -/* - OrderDelete swagger:route DELETE /store/order/{orderId} store orderDelete - -# Delete purchase order by ID - -For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors -*/ +// OrderDelete swagger:route DELETE /store/order/{orderId} store orderDelete +// +// # Delete purchase order by ID +// +// For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors type OrderDelete struct { Context *middleware.Context Handler OrderDeleteHandler diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_delete_parameters.go b/contributed-templates/stratoscale/restapi/operations/store/order_delete_parameters.go index 9272d41b..da24ed74 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_delete_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_delete_parameters.go @@ -27,12 +27,10 @@ func NewOrderDeleteParams() OrderDeleteParams { type OrderDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*ID of the order that needs to be deleted - Required: true - Minimum: 1 - In: path - */ + // ID of the order that needs to be deleted + // Required: true + // Minimum: 1 + // In: path OrderID int64 } diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_delete_responses.go b/contributed-templates/stratoscale/restapi/operations/store/order_delete_responses.go index ae5f0cc8..531ce745 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_delete_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_delete_responses.go @@ -11,11 +11,9 @@ import ( // OrderDeleteNoContentCode is the HTTP code returned for type OrderDeleteNoContent const OrderDeleteNoContentCode int = 204 -/* -OrderDeleteNoContent Deleted successfully - -swagger:response orderDeleteNoContent -*/ +// OrderDeleteNoContent Deleted successfully +// +// swagger:response orderDeleteNoContent type OrderDeleteNoContent struct { } @@ -36,11 +34,9 @@ func (o *OrderDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer ru // OrderDeleteBadRequestCode is the HTTP code returned for type OrderDeleteBadRequest const OrderDeleteBadRequestCode int = 400 -/* -OrderDeleteBadRequest Invalid ID supplied - -swagger:response orderDeleteBadRequest -*/ +// OrderDeleteBadRequest Invalid ID supplied +// +// swagger:response orderDeleteBadRequest type OrderDeleteBadRequest struct { } @@ -61,11 +57,9 @@ func (o *OrderDeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer r // OrderDeleteNotFoundCode is the HTTP code returned for type OrderDeleteNotFound const OrderDeleteNotFoundCode int = 404 -/* -OrderDeleteNotFound Order not found - -swagger:response orderDeleteNotFound -*/ +// OrderDeleteNotFound Order not found +// +// swagger:response orderDeleteNotFound type OrderDeleteNotFound struct { } diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_get.go b/contributed-templates/stratoscale/restapi/operations/store/order_get.go index 0da56fff..b83f853c 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_get.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_get.go @@ -26,13 +26,11 @@ func NewOrderGet(ctx *middleware.Context, handler OrderGetHandler) *OrderGet { return &OrderGet{Context: ctx, Handler: handler} } -/* - OrderGet swagger:route GET /store/order/{orderId} store orderGet - -# Find purchase order by ID - -For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions -*/ +// OrderGet swagger:route GET /store/order/{orderId} store orderGet +// +// # Find purchase order by ID +// +// For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions type OrderGet struct { Context *middleware.Context Handler OrderGetHandler diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_get_parameters.go b/contributed-templates/stratoscale/restapi/operations/store/order_get_parameters.go index 8bf19a6f..8cbea5d8 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_get_parameters.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_get_parameters.go @@ -27,13 +27,11 @@ func NewOrderGetParams() OrderGetParams { type OrderGetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*ID of pet that needs to be fetched - Required: true - Maximum: 10 - Minimum: 1 - In: path - */ + // ID of pet that needs to be fetched + // Required: true + // Maximum: 10 + // Minimum: 1 + // In: path OrderID int64 } diff --git a/contributed-templates/stratoscale/restapi/operations/store/order_get_responses.go b/contributed-templates/stratoscale/restapi/operations/store/order_get_responses.go index 427860c7..b5e09489 100644 --- a/contributed-templates/stratoscale/restapi/operations/store/order_get_responses.go +++ b/contributed-templates/stratoscale/restapi/operations/store/order_get_responses.go @@ -12,16 +12,12 @@ import ( // OrderGetOKCode is the HTTP code returned for type OrderGetOK const OrderGetOKCode int = 200 -/* -OrderGetOK successful operation - -swagger:response orderGetOK -*/ +// OrderGetOK successful operation +// +// swagger:response orderGetOK type OrderGetOK struct { - /* - In: Body - */ + // In: Body Payload *models.Order `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *OrderGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Prod // OrderGetBadRequestCode is the HTTP code returned for type OrderGetBadRequest const OrderGetBadRequestCode int = 400 -/* -OrderGetBadRequest Invalid ID supplied - -swagger:response orderGetBadRequest -*/ +// OrderGetBadRequest Invalid ID supplied +// +// swagger:response orderGetBadRequest type OrderGetBadRequest struct { } @@ -82,11 +76,9 @@ func (o *OrderGetBadRequest) WriteResponse(rw http.ResponseWriter, producer runt // OrderGetNotFoundCode is the HTTP code returned for type OrderGetNotFound const OrderGetNotFoundCode int = 404 -/* -OrderGetNotFound Order not found - -swagger:response orderGetNotFound -*/ +// OrderGetNotFound Order not found +// +// swagger:response orderGetNotFound type OrderGetNotFound struct { } diff --git a/external-types/restapi/operations/external_types_demo_api.go b/external-types/restapi/operations/external_types_demo_api.go index 7a2f29ab..697ac25f 100644 --- a/external-types/restapi/operations/external_types_demo_api.go +++ b/external-types/restapi/operations/external_types_demo_api.go @@ -65,15 +65,13 @@ func NewExternalTypesDemoAPI(spec *loads.Document) *ExternalTypesDemoAPI { } } -/* -ExternalTypesDemoAPI This sample specification exercises external types, with both x-go-type in definitions and inlined. - -It demonstrates how to use the x-go-type extension to plug external type definitions in the generated code, -for models (e.g. for properties, arrays or maps) or operations. - -Notice that x-go-type works for schemas and is not supported for simple swagger types, -used for response headers and query & path parameters. -*/ +// ExternalTypesDemoAPI This sample specification exercises external types, with both x-go-type in definitions and inlined. +// +// It demonstrates how to use the x-go-type extension to plug external type definitions in the generated code, +// for models (e.g. for properties, arrays or maps) or operations. +// +// Notice that x-go-type works for schemas and is not supported for simple swagger types, +// used for response headers and query & path parameters. type ExternalTypesDemoAPI struct { spec *loads.Document context *middleware.Context diff --git a/external-types/restapi/operations/get_stream.go b/external-types/restapi/operations/get_stream.go index c6590e1a..d76fb135 100644 --- a/external-types/restapi/operations/get_stream.go +++ b/external-types/restapi/operations/get_stream.go @@ -26,11 +26,9 @@ func NewGetStream(ctx *middleware.Context, handler GetStreamHandler) *GetStream return &GetStream{Context: ctx, Handler: handler} } -/* - GetStream swagger:route GET /stream getStream - -GetStream get stream API -*/ +// GetStream swagger:route GET /stream getStream +// +// GetStream get stream API type GetStream struct { Context *middleware.Context Handler GetStreamHandler diff --git a/external-types/restapi/operations/get_stream_responses.go b/external-types/restapi/operations/get_stream_responses.go index 823b70b5..2e5def54 100644 --- a/external-types/restapi/operations/get_stream_responses.go +++ b/external-types/restapi/operations/get_stream_responses.go @@ -9,19 +9,15 @@ import ( "github.com/go-swagger/examples/external-types/models" ) -/* -GetStreamDefault Uses an external definition for an interface (e.g. io.Reader) - -No validation is expected on binary format. - -swagger:response getStreamDefault -*/ +// GetStreamDefault Uses an external definition for an interface (e.g. io.Reader) +// +// No validation is expected on binary format. +// +// swagger:response getStreamDefault type GetStreamDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload models.MyStreamer `json:"body,omitempty"` } diff --git a/external-types/restapi/operations/get_test_swagger.go b/external-types/restapi/operations/get_test_swagger.go index b05ce1c8..84c76880 100644 --- a/external-types/restapi/operations/get_test_swagger.go +++ b/external-types/restapi/operations/get_test_swagger.go @@ -26,11 +26,9 @@ func NewGetTest(ctx *middleware.Context, handler GetTestHandler) *GetTest { return &GetTest{Context: ctx, Handler: handler} } -/* - GetTest swagger:route GET /test getTest - -GetTest get test API -*/ +// GetTest swagger:route GET /test getTest +// +// GetTest get test API type GetTest struct { Context *middleware.Context Handler GetTestHandler diff --git a/external-types/restapi/operations/get_test_swagger_responses.go b/external-types/restapi/operations/get_test_swagger_responses.go index 3d1bf876..3d92eacb 100644 --- a/external-types/restapi/operations/get_test_swagger_responses.go +++ b/external-types/restapi/operations/get_test_swagger_responses.go @@ -9,19 +9,15 @@ import ( "github.com/go-swagger/examples/external-types/models" ) -/* -GetTestDefault A reference to a type already defined in the models package -(defaults to </models, defined by CLI flag --model-package). -The response payload is defined as: *models.Zzz - -swagger:response getTestDefault -*/ +// GetTestDefault A reference to a type already defined in the models package +// (defaults to </models, defined by CLI flag --model-package). +// The response payload is defined as: *models.Zzz +// +// swagger:response getTestDefault type GetTestDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Zzz `json:"body,omitempty"` } diff --git a/external-types/restapi/operations/post_test_swagger.go b/external-types/restapi/operations/post_test_swagger.go index 58a5f055..91c96ca4 100644 --- a/external-types/restapi/operations/post_test_swagger.go +++ b/external-types/restapi/operations/post_test_swagger.go @@ -26,11 +26,9 @@ func NewPostTest(ctx *middleware.Context, handler PostTestHandler) *PostTest { return &PostTest{Context: ctx, Handler: handler} } -/* - PostTest swagger:route POST /test postTest - -PostTest post test API -*/ +// PostTest swagger:route POST /test postTest +// +// PostTest post test API type PostTest struct { Context *middleware.Context Handler PostTestHandler diff --git a/external-types/restapi/operations/post_test_swagger_parameters.go b/external-types/restapi/operations/post_test_swagger_parameters.go index 164a5316..fe2c6766 100644 --- a/external-types/restapi/operations/post_test_swagger_parameters.go +++ b/external-types/restapi/operations/post_test_swagger_parameters.go @@ -26,14 +26,12 @@ func NewPostTestParams() PostTestParams { type PostTestParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Defines a parameter as an array of external types. - The body parameter is defined as []custom.MyAlternateString - - No definition is generated in models. - - In: body - */ + // Defines a parameter as an array of external types. + // The body parameter is defined as []custom.MyAlternateString + // + // No definition is generated in models. + // + // In: body CustomizedStrings []custom.MyAlternateString } diff --git a/external-types/restapi/operations/post_test_swagger_responses.go b/external-types/restapi/operations/post_test_swagger_responses.go index 6b011894..97510bcf 100644 --- a/external-types/restapi/operations/post_test_swagger_responses.go +++ b/external-types/restapi/operations/post_test_swagger_responses.go @@ -9,20 +9,16 @@ import ( custom "github.com/go-swagger/examples/external-types/fred" ) -/* -PostTestDefault An inlined reference to an aliased external package. -The response is defined as map[string][]map[string]custom.MyAlternateString - -No definition is generated in models. - -swagger:response postTestDefault -*/ +// PostTestDefault An inlined reference to an aliased external package. +// The response is defined as map[string][]map[string]custom.MyAlternateString +// +// No definition is generated in models. +// +// swagger:response postTestDefault type PostTestDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload map[string][]map[string]custom.MyAlternateString `json:"body,omitempty"` } diff --git a/external-types/restapi/operations/put_test_swagger.go b/external-types/restapi/operations/put_test_swagger.go index f3f34aa8..ac3f0e7e 100644 --- a/external-types/restapi/operations/put_test_swagger.go +++ b/external-types/restapi/operations/put_test_swagger.go @@ -26,11 +26,9 @@ func NewPutTest(ctx *middleware.Context, handler PutTestHandler) *PutTest { return &PutTest{Context: ctx, Handler: handler} } -/* - PutTest swagger:route PUT /test putTest - -PutTest put test API -*/ +// PutTest swagger:route PUT /test putTest +// +// PutTest put test API type PutTest struct { Context *middleware.Context Handler PutTestHandler diff --git a/external-types/restapi/operations/put_test_swagger_parameters.go b/external-types/restapi/operations/put_test_swagger_parameters.go index 40b07472..02c758fc 100644 --- a/external-types/restapi/operations/put_test_swagger_parameters.go +++ b/external-types/restapi/operations/put_test_swagger_parameters.go @@ -29,15 +29,13 @@ func NewPutTestParams() PutTestParams { type PutTestParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*A reference to a type defined in the "fred" package, aliased - as "alternate". - - MyAlternate alternate.MyAlternateType - - Required: true - In: body - */ + // A reference to a type defined in the "fred" package, aliased + // as "alternate". + // + // MyAlternate alternate.MyAlternateType + // + // Required: true + // In: body MyAlternate alternate.MyAlternateType } diff --git a/external-types/restapi/operations/put_test_swagger_responses.go b/external-types/restapi/operations/put_test_swagger_responses.go index 69d6576a..26fa5f63 100644 --- a/external-types/restapi/operations/put_test_swagger_responses.go +++ b/external-types/restapi/operations/put_test_swagger_responses.go @@ -9,18 +9,14 @@ import ( custom "github.com/go-swagger/examples/external-types/fred" ) -/* -PutTestDefault A map of an aliased external package. Now the alias is "custom". -This response is defined as: map[string]custom.MyAlternateString - -swagger:response putTestDefault -*/ +// PutTestDefault A map of an aliased external package. Now the alias is "custom". +// This response is defined as: map[string]custom.MyAlternateString +// +// swagger:response putTestDefault type PutTestDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload map[string]custom.MyAlternateString `json:"body,omitempty"` } diff --git a/file-server/client/uploads/upload_file_responses.go b/file-server/client/uploads/upload_file_responses.go index 7161ccd9..8e26d438 100644 --- a/file-server/client/uploads/upload_file_responses.go +++ b/file-server/client/uploads/upload_file_responses.go @@ -33,11 +33,9 @@ func NewUploadFileOK() *UploadFileOK { return &UploadFileOK{} } -/* -UploadFileOK describes a response with status code 200, with default header values. - -OK -*/ +// UploadFileOK describes a response with status code 200, with default header values. +// +// OK type UploadFileOK struct { } diff --git a/file-server/client/uploads/uploads_client.go b/file-server/client/uploads/uploads_client.go index 97123f7b..a89d4a6b 100644 --- a/file-server/client/uploads/uploads_client.go +++ b/file-server/client/uploads/uploads_client.go @@ -44,9 +44,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for uploads API. -*/ +// Client for uploads API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -91,14 +89,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -UploadFileuploads. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.UploadFileContext] instead. -*/ +// UploadFile uploads. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.UploadFileContext] instead. func (a *Client) UploadFile(params *UploadFileParams, opts ...ClientOption) (*UploadFileOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -110,11 +106,9 @@ func (a *Client) UploadFile(params *UploadFileParams, opts ...ClientOption) (*Up return a.UploadFileContext(ctx, params, opts...) } -/* -UploadFileContextuploads. - -Do not use the deprecated [UploadFileParams.Context] with this method: it would be ignored. -*/ +// UploadFileContext uploads. +// +// Do not use the deprecated [UploadFileParams.Context] with this method: it would be ignored. func (a *Client) UploadFileContext(ctx context.Context, params *UploadFileParams, opts ...ClientOption) (*UploadFileOK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/file-server/restapi/operations/file_upload_api.go b/file-server/restapi/operations/file_upload_api.go index 00a5cac3..6f56bc1d 100644 --- a/file-server/restapi/operations/file_upload_api.go +++ b/file-server/restapi/operations/file_upload_api.go @@ -49,7 +49,7 @@ func NewFileUploadAPI(spec *loads.Document) *FileUploadAPI { } } -/*FileUploadAPI Example server uploading a file */ +// FileUploadAPI Example server uploading a file type FileUploadAPI struct { spec *loads.Document context *middleware.Context diff --git a/file-server/restapi/operations/uploads/upload_file.go b/file-server/restapi/operations/uploads/upload_file.go index c8f61600..046f38bf 100644 --- a/file-server/restapi/operations/uploads/upload_file.go +++ b/file-server/restapi/operations/uploads/upload_file.go @@ -26,11 +26,9 @@ func NewUploadFile(ctx *middleware.Context, handler UploadFileHandler) *UploadFi return &UploadFile{Context: ctx, Handler: handler} } -/* - UploadFile swagger:route POST /upload uploads uploadFile - -uploads -*/ +// UploadFile swagger:route POST /upload uploads uploadFile +// +// uploads type UploadFile struct { Context *middleware.Context Handler UploadFileHandler diff --git a/file-server/restapi/operations/uploads/upload_file_parameters.go b/file-server/restapi/operations/uploads/upload_file_parameters.go index 8cddbf78..6f2c8618 100644 --- a/file-server/restapi/operations/uploads/upload_file_parameters.go +++ b/file-server/restapi/operations/uploads/upload_file_parameters.go @@ -39,11 +39,8 @@ func NewUploadFileParams() UploadFileParams { type UploadFileParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: formData - */ + // Required: true + // In: formData File io.ReadCloser } diff --git a/file-server/restapi/operations/uploads/upload_file_responses.go b/file-server/restapi/operations/uploads/upload_file_responses.go index f8388ac7..889a7704 100644 --- a/file-server/restapi/operations/uploads/upload_file_responses.go +++ b/file-server/restapi/operations/uploads/upload_file_responses.go @@ -11,11 +11,9 @@ import ( // UploadFileOKCode is the HTTP code returned for type UploadFileOK const UploadFileOKCode int = 200 -/* -UploadFileOK OK - -swagger:response uploadFileOK -*/ +// UploadFileOK OK +// +// swagger:response uploadFileOK type UploadFileOK struct { } diff --git a/flags/flag/restapi/operations/simple_to_do_list_api_api.go b/flags/flag/restapi/operations/simple_to_do_list_api_api.go index 2b5f7ced..5753d6bb 100644 --- a/flags/flag/restapi/operations/simple_to_do_list_api_api.go +++ b/flags/flag/restapi/operations/simple_to_do_list_api_api.go @@ -79,11 +79,9 @@ func NewSimpleToDoListAPIAPI(spec *loads.Document) *SimpleToDoListAPIAPI { } } -/* -SimpleToDoListAPIAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// SimpleToDoListAPIAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type SimpleToDoListAPIAPI struct { spec *loads.Document context *middleware.Context diff --git a/flags/flag/restapi/operations/todos/add_one.go b/flags/flag/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/flags/flag/restapi/operations/todos/add_one.go +++ b/flags/flag/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/flags/flag/restapi/operations/todos/add_one_parameters.go b/flags/flag/restapi/operations/todos/add_one_parameters.go index 07063fd4..2a6dfa35 100644 --- a/flags/flag/restapi/operations/todos/add_one_parameters.go +++ b/flags/flag/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/flags/flag/restapi/operations/todos/add_one_responses.go b/flags/flag/restapi/operations/todos/add_one_responses.go index d2da2f6f..cc40d579 100644 --- a/flags/flag/restapi/operations/todos/add_one_responses.go +++ b/flags/flag/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/flag/restapi/operations/todos/destroy_one.go b/flags/flag/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/flags/flag/restapi/operations/todos/destroy_one.go +++ b/flags/flag/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/flags/flag/restapi/operations/todos/destroy_one_parameters.go b/flags/flag/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/flags/flag/restapi/operations/todos/destroy_one_parameters.go +++ b/flags/flag/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/flag/restapi/operations/todos/destroy_one_responses.go b/flags/flag/restapi/operations/todos/destroy_one_responses.go index 9079f67b..3d87e43e 100644 --- a/flags/flag/restapi/operations/todos/destroy_one_responses.go +++ b/flags/flag/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/flag/restapi/operations/todos/find.go b/flags/flag/restapi/operations/todos/find.go index 05226ffd..1c9f3e57 100644 --- a/flags/flag/restapi/operations/todos/find.go +++ b/flags/flag/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/flags/flag/restapi/operations/todos/find_parameters.go b/flags/flag/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/flags/flag/restapi/operations/todos/find_parameters.go +++ b/flags/flag/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/flags/flag/restapi/operations/todos/find_responses.go b/flags/flag/restapi/operations/todos/find_responses.go index c82e2a2b..726814aa 100644 --- a/flags/flag/restapi/operations/todos/find_responses.go +++ b/flags/flag/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/flag/restapi/operations/todos/update_one.go b/flags/flag/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/flags/flag/restapi/operations/todos/update_one.go +++ b/flags/flag/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/flags/flag/restapi/operations/todos/update_one_parameters.go b/flags/flag/restapi/operations/todos/update_one_parameters.go index fe63072a..b0a93d94 100644 --- a/flags/flag/restapi/operations/todos/update_one_parameters.go +++ b/flags/flag/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/flag/restapi/operations/todos/update_one_responses.go b/flags/flag/restapi/operations/todos/update_one_responses.go index b0271bef..afee1504 100644 --- a/flags/flag/restapi/operations/todos/update_one_responses.go +++ b/flags/flag/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/go-flags/restapi/operations/simple_to_do_list_api_api.go b/flags/go-flags/restapi/operations/simple_to_do_list_api_api.go index c2ffb375..b4a030bf 100644 --- a/flags/go-flags/restapi/operations/simple_to_do_list_api_api.go +++ b/flags/go-flags/restapi/operations/simple_to_do_list_api_api.go @@ -79,11 +79,9 @@ func NewSimpleToDoListAPIAPI(spec *loads.Document) *SimpleToDoListAPIAPI { } } -/* -SimpleToDoListAPIAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// SimpleToDoListAPIAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type SimpleToDoListAPIAPI struct { spec *loads.Document context *middleware.Context diff --git a/flags/go-flags/restapi/operations/todos/add_one.go b/flags/go-flags/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/flags/go-flags/restapi/operations/todos/add_one.go +++ b/flags/go-flags/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/flags/go-flags/restapi/operations/todos/add_one_parameters.go b/flags/go-flags/restapi/operations/todos/add_one_parameters.go index 4d9029ac..c8348422 100644 --- a/flags/go-flags/restapi/operations/todos/add_one_parameters.go +++ b/flags/go-flags/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/flags/go-flags/restapi/operations/todos/add_one_responses.go b/flags/go-flags/restapi/operations/todos/add_one_responses.go index 7110f897..b8f6f145 100644 --- a/flags/go-flags/restapi/operations/todos/add_one_responses.go +++ b/flags/go-flags/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/go-flags/restapi/operations/todos/destroy_one.go b/flags/go-flags/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/flags/go-flags/restapi/operations/todos/destroy_one.go +++ b/flags/go-flags/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/flags/go-flags/restapi/operations/todos/destroy_one_parameters.go b/flags/go-flags/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/flags/go-flags/restapi/operations/todos/destroy_one_parameters.go +++ b/flags/go-flags/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/go-flags/restapi/operations/todos/destroy_one_responses.go b/flags/go-flags/restapi/operations/todos/destroy_one_responses.go index e28985fd..69a16792 100644 --- a/flags/go-flags/restapi/operations/todos/destroy_one_responses.go +++ b/flags/go-flags/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/go-flags/restapi/operations/todos/find.go b/flags/go-flags/restapi/operations/todos/find.go index 05226ffd..1c9f3e57 100644 --- a/flags/go-flags/restapi/operations/todos/find.go +++ b/flags/go-flags/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/flags/go-flags/restapi/operations/todos/find_parameters.go b/flags/go-flags/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/flags/go-flags/restapi/operations/todos/find_parameters.go +++ b/flags/go-flags/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/flags/go-flags/restapi/operations/todos/find_responses.go b/flags/go-flags/restapi/operations/todos/find_responses.go index 3a288a91..66dd9d6e 100644 --- a/flags/go-flags/restapi/operations/todos/find_responses.go +++ b/flags/go-flags/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/go-flags/restapi/operations/todos/update_one.go b/flags/go-flags/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/flags/go-flags/restapi/operations/todos/update_one.go +++ b/flags/go-flags/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/flags/go-flags/restapi/operations/todos/update_one_parameters.go b/flags/go-flags/restapi/operations/todos/update_one_parameters.go index f07860f2..867d4574 100644 --- a/flags/go-flags/restapi/operations/todos/update_one_parameters.go +++ b/flags/go-flags/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/go-flags/restapi/operations/todos/update_one_responses.go b/flags/go-flags/restapi/operations/todos/update_one_responses.go index 33a8ccf8..3f3adb92 100644 --- a/flags/go-flags/restapi/operations/todos/update_one_responses.go +++ b/flags/go-flags/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/pflag/restapi/operations/simple_to_do_list_api_api.go b/flags/pflag/restapi/operations/simple_to_do_list_api_api.go index 26da2438..0afd59ad 100644 --- a/flags/pflag/restapi/operations/simple_to_do_list_api_api.go +++ b/flags/pflag/restapi/operations/simple_to_do_list_api_api.go @@ -79,11 +79,9 @@ func NewSimpleToDoListAPIAPI(spec *loads.Document) *SimpleToDoListAPIAPI { } } -/* -SimpleToDoListAPIAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// SimpleToDoListAPIAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type SimpleToDoListAPIAPI struct { spec *loads.Document context *middleware.Context diff --git a/flags/pflag/restapi/operations/todos/add_one.go b/flags/pflag/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/flags/pflag/restapi/operations/todos/add_one.go +++ b/flags/pflag/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/flags/pflag/restapi/operations/todos/add_one_parameters.go b/flags/pflag/restapi/operations/todos/add_one_parameters.go index b2e234a0..b0eecf0e 100644 --- a/flags/pflag/restapi/operations/todos/add_one_parameters.go +++ b/flags/pflag/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/flags/pflag/restapi/operations/todos/add_one_responses.go b/flags/pflag/restapi/operations/todos/add_one_responses.go index c866dceb..0faa9e8d 100644 --- a/flags/pflag/restapi/operations/todos/add_one_responses.go +++ b/flags/pflag/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/pflag/restapi/operations/todos/destroy_one.go b/flags/pflag/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/flags/pflag/restapi/operations/todos/destroy_one.go +++ b/flags/pflag/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/flags/pflag/restapi/operations/todos/destroy_one_parameters.go b/flags/pflag/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/flags/pflag/restapi/operations/todos/destroy_one_parameters.go +++ b/flags/pflag/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/pflag/restapi/operations/todos/destroy_one_responses.go b/flags/pflag/restapi/operations/todos/destroy_one_responses.go index 919f5a44..610fa143 100644 --- a/flags/pflag/restapi/operations/todos/destroy_one_responses.go +++ b/flags/pflag/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/pflag/restapi/operations/todos/find.go b/flags/pflag/restapi/operations/todos/find.go index 05226ffd..1c9f3e57 100644 --- a/flags/pflag/restapi/operations/todos/find.go +++ b/flags/pflag/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/flags/pflag/restapi/operations/todos/find_parameters.go b/flags/pflag/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/flags/pflag/restapi/operations/todos/find_parameters.go +++ b/flags/pflag/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/flags/pflag/restapi/operations/todos/find_responses.go b/flags/pflag/restapi/operations/todos/find_responses.go index 0bf51457..bfacbf4f 100644 --- a/flags/pflag/restapi/operations/todos/find_responses.go +++ b/flags/pflag/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/pflag/restapi/operations/todos/update_one.go b/flags/pflag/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/flags/pflag/restapi/operations/todos/update_one.go +++ b/flags/pflag/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/flags/pflag/restapi/operations/todos/update_one_parameters.go b/flags/pflag/restapi/operations/todos/update_one_parameters.go index 959b6e75..d2f1524e 100644 --- a/flags/pflag/restapi/operations/todos/update_one_parameters.go +++ b/flags/pflag/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/pflag/restapi/operations/todos/update_one_responses.go b/flags/pflag/restapi/operations/todos/update_one_responses.go index 58817ed6..8a3b3a8e 100644 --- a/flags/pflag/restapi/operations/todos/update_one_responses.go +++ b/flags/pflag/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xflag/restapi/operations/simple_to_do_list_api_api.go b/flags/xflag/restapi/operations/simple_to_do_list_api_api.go index 32df666c..1dd9d5e5 100644 --- a/flags/xflag/restapi/operations/simple_to_do_list_api_api.go +++ b/flags/xflag/restapi/operations/simple_to_do_list_api_api.go @@ -79,11 +79,9 @@ func NewSimpleToDoListAPIAPI(spec *loads.Document) *SimpleToDoListAPIAPI { } } -/* -SimpleToDoListAPIAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// SimpleToDoListAPIAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type SimpleToDoListAPIAPI struct { spec *loads.Document context *middleware.Context diff --git a/flags/xflag/restapi/operations/todos/add_one.go b/flags/xflag/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/flags/xflag/restapi/operations/todos/add_one.go +++ b/flags/xflag/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/flags/xflag/restapi/operations/todos/add_one_parameters.go b/flags/xflag/restapi/operations/todos/add_one_parameters.go index 1c2068fb..7da779c2 100644 --- a/flags/xflag/restapi/operations/todos/add_one_parameters.go +++ b/flags/xflag/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/flags/xflag/restapi/operations/todos/add_one_responses.go b/flags/xflag/restapi/operations/todos/add_one_responses.go index c81e6e08..24ddd8da 100644 --- a/flags/xflag/restapi/operations/todos/add_one_responses.go +++ b/flags/xflag/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xflag/restapi/operations/todos/destroy_one.go b/flags/xflag/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/flags/xflag/restapi/operations/todos/destroy_one.go +++ b/flags/xflag/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/flags/xflag/restapi/operations/todos/destroy_one_parameters.go b/flags/xflag/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/flags/xflag/restapi/operations/todos/destroy_one_parameters.go +++ b/flags/xflag/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/xflag/restapi/operations/todos/destroy_one_responses.go b/flags/xflag/restapi/operations/todos/destroy_one_responses.go index ad3eb1f3..5e218e0e 100644 --- a/flags/xflag/restapi/operations/todos/destroy_one_responses.go +++ b/flags/xflag/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xflag/restapi/operations/todos/find.go b/flags/xflag/restapi/operations/todos/find.go index 05226ffd..1c9f3e57 100644 --- a/flags/xflag/restapi/operations/todos/find.go +++ b/flags/xflag/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/flags/xflag/restapi/operations/todos/find_parameters.go b/flags/xflag/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/flags/xflag/restapi/operations/todos/find_parameters.go +++ b/flags/xflag/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/flags/xflag/restapi/operations/todos/find_responses.go b/flags/xflag/restapi/operations/todos/find_responses.go index 2e7e719e..804b7a98 100644 --- a/flags/xflag/restapi/operations/todos/find_responses.go +++ b/flags/xflag/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xflag/restapi/operations/todos/update_one.go b/flags/xflag/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/flags/xflag/restapi/operations/todos/update_one.go +++ b/flags/xflag/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/flags/xflag/restapi/operations/todos/update_one_parameters.go b/flags/xflag/restapi/operations/todos/update_one_parameters.go index 9dbaa662..e2ee286c 100644 --- a/flags/xflag/restapi/operations/todos/update_one_parameters.go +++ b/flags/xflag/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/xflag/restapi/operations/todos/update_one_responses.go b/flags/xflag/restapi/operations/todos/update_one_responses.go index 7d532c34..5e032836 100644 --- a/flags/xflag/restapi/operations/todos/update_one_responses.go +++ b/flags/xflag/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xgo-flags/restapi/operations/simple_to_do_list_api_api.go b/flags/xgo-flags/restapi/operations/simple_to_do_list_api_api.go index 94b8a350..b6f8f4a5 100644 --- a/flags/xgo-flags/restapi/operations/simple_to_do_list_api_api.go +++ b/flags/xgo-flags/restapi/operations/simple_to_do_list_api_api.go @@ -79,11 +79,9 @@ func NewSimpleToDoListAPIAPI(spec *loads.Document) *SimpleToDoListAPIAPI { } } -/* -SimpleToDoListAPIAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// SimpleToDoListAPIAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type SimpleToDoListAPIAPI struct { spec *loads.Document context *middleware.Context diff --git a/flags/xgo-flags/restapi/operations/todos/add_one.go b/flags/xgo-flags/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/flags/xgo-flags/restapi/operations/todos/add_one.go +++ b/flags/xgo-flags/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/flags/xgo-flags/restapi/operations/todos/add_one_parameters.go b/flags/xgo-flags/restapi/operations/todos/add_one_parameters.go index 5a35e505..71aa1fd9 100644 --- a/flags/xgo-flags/restapi/operations/todos/add_one_parameters.go +++ b/flags/xgo-flags/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/flags/xgo-flags/restapi/operations/todos/add_one_responses.go b/flags/xgo-flags/restapi/operations/todos/add_one_responses.go index ae5c1847..72096ed4 100644 --- a/flags/xgo-flags/restapi/operations/todos/add_one_responses.go +++ b/flags/xgo-flags/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xgo-flags/restapi/operations/todos/destroy_one.go b/flags/xgo-flags/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/flags/xgo-flags/restapi/operations/todos/destroy_one.go +++ b/flags/xgo-flags/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/flags/xgo-flags/restapi/operations/todos/destroy_one_parameters.go b/flags/xgo-flags/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/flags/xgo-flags/restapi/operations/todos/destroy_one_parameters.go +++ b/flags/xgo-flags/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/xgo-flags/restapi/operations/todos/destroy_one_responses.go b/flags/xgo-flags/restapi/operations/todos/destroy_one_responses.go index 75272bcc..ab497f95 100644 --- a/flags/xgo-flags/restapi/operations/todos/destroy_one_responses.go +++ b/flags/xgo-flags/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xgo-flags/restapi/operations/todos/find.go b/flags/xgo-flags/restapi/operations/todos/find.go index 05226ffd..1c9f3e57 100644 --- a/flags/xgo-flags/restapi/operations/todos/find.go +++ b/flags/xgo-flags/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/flags/xgo-flags/restapi/operations/todos/find_parameters.go b/flags/xgo-flags/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/flags/xgo-flags/restapi/operations/todos/find_parameters.go +++ b/flags/xgo-flags/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/flags/xgo-flags/restapi/operations/todos/find_responses.go b/flags/xgo-flags/restapi/operations/todos/find_responses.go index 864dfa32..fb5f60ad 100644 --- a/flags/xgo-flags/restapi/operations/todos/find_responses.go +++ b/flags/xgo-flags/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xgo-flags/restapi/operations/todos/update_one.go b/flags/xgo-flags/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/flags/xgo-flags/restapi/operations/todos/update_one.go +++ b/flags/xgo-flags/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/flags/xgo-flags/restapi/operations/todos/update_one_parameters.go b/flags/xgo-flags/restapi/operations/todos/update_one_parameters.go index 8b70b37d..a2b188fb 100644 --- a/flags/xgo-flags/restapi/operations/todos/update_one_parameters.go +++ b/flags/xgo-flags/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/xgo-flags/restapi/operations/todos/update_one_responses.go b/flags/xgo-flags/restapi/operations/todos/update_one_responses.go index d60a2c18..9136dc56 100644 --- a/flags/xgo-flags/restapi/operations/todos/update_one_responses.go +++ b/flags/xgo-flags/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xpflag/restapi/operations/simple_to_do_list_api_api.go b/flags/xpflag/restapi/operations/simple_to_do_list_api_api.go index a6e1ecf7..acc5d817 100644 --- a/flags/xpflag/restapi/operations/simple_to_do_list_api_api.go +++ b/flags/xpflag/restapi/operations/simple_to_do_list_api_api.go @@ -79,11 +79,9 @@ func NewSimpleToDoListAPIAPI(spec *loads.Document) *SimpleToDoListAPIAPI { } } -/* -SimpleToDoListAPIAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// SimpleToDoListAPIAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type SimpleToDoListAPIAPI struct { spec *loads.Document context *middleware.Context diff --git a/flags/xpflag/restapi/operations/todos/add_one.go b/flags/xpflag/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/flags/xpflag/restapi/operations/todos/add_one.go +++ b/flags/xpflag/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/flags/xpflag/restapi/operations/todos/add_one_parameters.go b/flags/xpflag/restapi/operations/todos/add_one_parameters.go index da0cfdb3..6c7e2057 100644 --- a/flags/xpflag/restapi/operations/todos/add_one_parameters.go +++ b/flags/xpflag/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/flags/xpflag/restapi/operations/todos/add_one_responses.go b/flags/xpflag/restapi/operations/todos/add_one_responses.go index 34de0307..9bd47c8e 100644 --- a/flags/xpflag/restapi/operations/todos/add_one_responses.go +++ b/flags/xpflag/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xpflag/restapi/operations/todos/destroy_one.go b/flags/xpflag/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/flags/xpflag/restapi/operations/todos/destroy_one.go +++ b/flags/xpflag/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/flags/xpflag/restapi/operations/todos/destroy_one_parameters.go b/flags/xpflag/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/flags/xpflag/restapi/operations/todos/destroy_one_parameters.go +++ b/flags/xpflag/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/xpflag/restapi/operations/todos/destroy_one_responses.go b/flags/xpflag/restapi/operations/todos/destroy_one_responses.go index 2345374f..9bf7f075 100644 --- a/flags/xpflag/restapi/operations/todos/destroy_one_responses.go +++ b/flags/xpflag/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xpflag/restapi/operations/todos/find.go b/flags/xpflag/restapi/operations/todos/find.go index 05226ffd..1c9f3e57 100644 --- a/flags/xpflag/restapi/operations/todos/find.go +++ b/flags/xpflag/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/flags/xpflag/restapi/operations/todos/find_parameters.go b/flags/xpflag/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/flags/xpflag/restapi/operations/todos/find_parameters.go +++ b/flags/xpflag/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/flags/xpflag/restapi/operations/todos/find_responses.go b/flags/xpflag/restapi/operations/todos/find_responses.go index 3bb17338..4ae9278a 100644 --- a/flags/xpflag/restapi/operations/todos/find_responses.go +++ b/flags/xpflag/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/flags/xpflag/restapi/operations/todos/update_one.go b/flags/xpflag/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/flags/xpflag/restapi/operations/todos/update_one.go +++ b/flags/xpflag/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/flags/xpflag/restapi/operations/todos/update_one_parameters.go b/flags/xpflag/restapi/operations/todos/update_one_parameters.go index 19efef38..bbb4919a 100644 --- a/flags/xpflag/restapi/operations/todos/update_one_parameters.go +++ b/flags/xpflag/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/flags/xpflag/restapi/operations/todos/update_one_responses.go b/flags/xpflag/restapi/operations/todos/update_one_responses.go index 50398b52..68c5e5fd 100644 --- a/flags/xpflag/restapi/operations/todos/update_one_responses.go +++ b/flags/xpflag/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/generated/restapi/operations/pet/add_pet.go b/generated/restapi/operations/pet/add_pet.go index 6fce84b8..73fbf405 100644 --- a/generated/restapi/operations/pet/add_pet.go +++ b/generated/restapi/operations/pet/add_pet.go @@ -26,11 +26,9 @@ func NewAddPet(ctx *middleware.Context, handler AddPetHandler) *AddPet { return &AddPet{Context: ctx, Handler: handler} } -/* - AddPet swagger:route POST /pets pet addPet - -Add a new pet to the store -*/ +// AddPet swagger:route POST /pets pet addPet +// +// Add a new pet to the store type AddPet struct { Context *middleware.Context Handler AddPetHandler diff --git a/generated/restapi/operations/pet/add_pet_parameters.go b/generated/restapi/operations/pet/add_pet_parameters.go index 680fa0c9..00943151 100644 --- a/generated/restapi/operations/pet/add_pet_parameters.go +++ b/generated/restapi/operations/pet/add_pet_parameters.go @@ -27,10 +27,8 @@ func NewAddPetParams() AddPetParams { type AddPetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Pet object that needs to be added to the store - In: body - */ + // Pet object that needs to be added to the store + // In: body Body *models.Pet } diff --git a/generated/restapi/operations/pet/add_pet_responses.go b/generated/restapi/operations/pet/add_pet_responses.go index d1a0c61f..a815163e 100644 --- a/generated/restapi/operations/pet/add_pet_responses.go +++ b/generated/restapi/operations/pet/add_pet_responses.go @@ -11,11 +11,9 @@ import ( // AddPetMethodNotAllowedCode is the HTTP code returned for type AddPetMethodNotAllowed const AddPetMethodNotAllowedCode int = 405 -/* -AddPetMethodNotAllowed Invalid input - -swagger:response addPetMethodNotAllowed -*/ +// AddPetMethodNotAllowed Invalid input +// +// swagger:response addPetMethodNotAllowed type AddPetMethodNotAllowed struct { } diff --git a/generated/restapi/operations/pet/delete_pet.go b/generated/restapi/operations/pet/delete_pet.go index f7e48bf7..7872830a 100644 --- a/generated/restapi/operations/pet/delete_pet.go +++ b/generated/restapi/operations/pet/delete_pet.go @@ -26,11 +26,9 @@ func NewDeletePet(ctx *middleware.Context, handler DeletePetHandler) *DeletePet return &DeletePet{Context: ctx, Handler: handler} } -/* - DeletePet swagger:route DELETE /pets/{petId} pet deletePet - -Deletes a pet -*/ +// DeletePet swagger:route DELETE /pets/{petId} pet deletePet +// +// Deletes a pet type DeletePet struct { Context *middleware.Context Handler DeletePetHandler diff --git a/generated/restapi/operations/pet/delete_pet_parameters.go b/generated/restapi/operations/pet/delete_pet_parameters.go index e552d74b..9fe54ba8 100644 --- a/generated/restapi/operations/pet/delete_pet_parameters.go +++ b/generated/restapi/operations/pet/delete_pet_parameters.go @@ -27,17 +27,12 @@ func NewDeletePetParams() DeletePetParams { type DeletePetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header APIKey string - - /*Pet id to delete - Required: true - In: path - */ + // Pet id to delete + // Required: true + // In: path PetID int64 } diff --git a/generated/restapi/operations/pet/delete_pet_responses.go b/generated/restapi/operations/pet/delete_pet_responses.go index c11a5b1d..517f334d 100644 --- a/generated/restapi/operations/pet/delete_pet_responses.go +++ b/generated/restapi/operations/pet/delete_pet_responses.go @@ -11,11 +11,9 @@ import ( // DeletePetBadRequestCode is the HTTP code returned for type DeletePetBadRequest const DeletePetBadRequestCode int = 400 -/* -DeletePetBadRequest Invalid pet value - -swagger:response deletePetBadRequest -*/ +// DeletePetBadRequest Invalid pet value +// +// swagger:response deletePetBadRequest type DeletePetBadRequest struct { } diff --git a/generated/restapi/operations/pet/find_pets_by_status.go b/generated/restapi/operations/pet/find_pets_by_status.go index fc7ad4a2..c77992d0 100644 --- a/generated/restapi/operations/pet/find_pets_by_status.go +++ b/generated/restapi/operations/pet/find_pets_by_status.go @@ -26,13 +26,11 @@ func NewFindPetsByStatus(ctx *middleware.Context, handler FindPetsByStatusHandle return &FindPetsByStatus{Context: ctx, Handler: handler} } -/* - FindPetsByStatus swagger:route GET /pets/findByStatus pet findPetsByStatus - -# Finds Pets by status - -Multiple status values can be provided with comma separated strings -*/ +// FindPetsByStatus swagger:route GET /pets/findByStatus pet findPetsByStatus +// +// # Finds Pets by status +// +// Multiple status values can be provided with comma separated strings type FindPetsByStatus struct { Context *middleware.Context Handler FindPetsByStatusHandler diff --git a/generated/restapi/operations/pet/find_pets_by_status_parameters.go b/generated/restapi/operations/pet/find_pets_by_status_parameters.go index b08b31ca..bf462699 100644 --- a/generated/restapi/operations/pet/find_pets_by_status_parameters.go +++ b/generated/restapi/operations/pet/find_pets_by_status_parameters.go @@ -26,11 +26,9 @@ func NewFindPetsByStatusParams() FindPetsByStatusParams { type FindPetsByStatusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Status values that need to be considered for filter - In: query - Collection Format: multi - */ + // Status values that need to be considered for filter + // In: query + // Collection Format: multi Status []string } diff --git a/generated/restapi/operations/pet/find_pets_by_status_responses.go b/generated/restapi/operations/pet/find_pets_by_status_responses.go index a375e97a..c28960af 100644 --- a/generated/restapi/operations/pet/find_pets_by_status_responses.go +++ b/generated/restapi/operations/pet/find_pets_by_status_responses.go @@ -12,16 +12,12 @@ import ( // FindPetsByStatusOKCode is the HTTP code returned for type FindPetsByStatusOK const FindPetsByStatusOKCode int = 200 -/* -FindPetsByStatusOK successful operation - -swagger:response findPetsByStatusOK -*/ +// FindPetsByStatusOK successful operation +// +// swagger:response findPetsByStatusOK type FindPetsByStatusOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Pet `json:"body,omitempty"` } @@ -60,11 +56,9 @@ func (o *FindPetsByStatusOK) WriteResponse(rw http.ResponseWriter, producer runt // FindPetsByStatusBadRequestCode is the HTTP code returned for type FindPetsByStatusBadRequest const FindPetsByStatusBadRequestCode int = 400 -/* -FindPetsByStatusBadRequest Invalid status value - -swagger:response findPetsByStatusBadRequest -*/ +// FindPetsByStatusBadRequest Invalid status value +// +// swagger:response findPetsByStatusBadRequest type FindPetsByStatusBadRequest struct { } diff --git a/generated/restapi/operations/pet/find_pets_by_tags.go b/generated/restapi/operations/pet/find_pets_by_tags.go index 5e2b9650..6856682e 100644 --- a/generated/restapi/operations/pet/find_pets_by_tags.go +++ b/generated/restapi/operations/pet/find_pets_by_tags.go @@ -26,13 +26,11 @@ func NewFindPetsByTags(ctx *middleware.Context, handler FindPetsByTagsHandler) * return &FindPetsByTags{Context: ctx, Handler: handler} } -/* - FindPetsByTags swagger:route GET /pets/findByTags pet findPetsByTags - -# Finds Pets by tags - -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. -*/ +// FindPetsByTags swagger:route GET /pets/findByTags pet findPetsByTags +// +// # Finds Pets by tags +// +// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. type FindPetsByTags struct { Context *middleware.Context Handler FindPetsByTagsHandler diff --git a/generated/restapi/operations/pet/find_pets_by_tags_parameters.go b/generated/restapi/operations/pet/find_pets_by_tags_parameters.go index 497b7f06..e246aec2 100644 --- a/generated/restapi/operations/pet/find_pets_by_tags_parameters.go +++ b/generated/restapi/operations/pet/find_pets_by_tags_parameters.go @@ -26,11 +26,9 @@ func NewFindPetsByTagsParams() FindPetsByTagsParams { type FindPetsByTagsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Tags to filter by - In: query - Collection Format: multi - */ + // Tags to filter by + // In: query + // Collection Format: multi Tags []string } diff --git a/generated/restapi/operations/pet/find_pets_by_tags_responses.go b/generated/restapi/operations/pet/find_pets_by_tags_responses.go index 56a84bf4..b35227c9 100644 --- a/generated/restapi/operations/pet/find_pets_by_tags_responses.go +++ b/generated/restapi/operations/pet/find_pets_by_tags_responses.go @@ -12,16 +12,12 @@ import ( // FindPetsByTagsOKCode is the HTTP code returned for type FindPetsByTagsOK const FindPetsByTagsOKCode int = 200 -/* -FindPetsByTagsOK successful operation - -swagger:response findPetsByTagsOK -*/ +// FindPetsByTagsOK successful operation +// +// swagger:response findPetsByTagsOK type FindPetsByTagsOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Pet `json:"body,omitempty"` } @@ -60,11 +56,9 @@ func (o *FindPetsByTagsOK) WriteResponse(rw http.ResponseWriter, producer runtim // FindPetsByTagsBadRequestCode is the HTTP code returned for type FindPetsByTagsBadRequest const FindPetsByTagsBadRequestCode int = 400 -/* -FindPetsByTagsBadRequest Invalid tag value - -swagger:response findPetsByTagsBadRequest -*/ +// FindPetsByTagsBadRequest Invalid tag value +// +// swagger:response findPetsByTagsBadRequest type FindPetsByTagsBadRequest struct { } diff --git a/generated/restapi/operations/pet/get_pet_by_id.go b/generated/restapi/operations/pet/get_pet_by_id.go index 26a0cbba..55d7a793 100644 --- a/generated/restapi/operations/pet/get_pet_by_id.go +++ b/generated/restapi/operations/pet/get_pet_by_id.go @@ -26,13 +26,11 @@ func NewGetPetByID(ctx *middleware.Context, handler GetPetByIDHandler) *GetPetBy return &GetPetByID{Context: ctx, Handler: handler} } -/* - GetPetByID swagger:route GET /pets/{petId} pet getPetById - -# Find pet by ID - -Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions -*/ +// GetPetByID swagger:route GET /pets/{petId} pet getPetById +// +// # Find pet by ID +// +// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions type GetPetByID struct { Context *middleware.Context Handler GetPetByIDHandler diff --git a/generated/restapi/operations/pet/get_pet_by_id_parameters.go b/generated/restapi/operations/pet/get_pet_by_id_parameters.go index d69b98b0..17cfd3d8 100644 --- a/generated/restapi/operations/pet/get_pet_by_id_parameters.go +++ b/generated/restapi/operations/pet/get_pet_by_id_parameters.go @@ -26,11 +26,9 @@ func NewGetPetByIDParams() GetPetByIDParams { type GetPetByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*ID of pet that needs to be fetched - Required: true - In: path - */ + // ID of pet that needs to be fetched + // Required: true + // In: path PetID int64 } diff --git a/generated/restapi/operations/pet/get_pet_by_id_responses.go b/generated/restapi/operations/pet/get_pet_by_id_responses.go index f28e8d5c..90648137 100644 --- a/generated/restapi/operations/pet/get_pet_by_id_responses.go +++ b/generated/restapi/operations/pet/get_pet_by_id_responses.go @@ -12,16 +12,12 @@ import ( // GetPetByIDOKCode is the HTTP code returned for type GetPetByIDOK const GetPetByIDOKCode int = 200 -/* -GetPetByIDOK successful operation - -swagger:response getPetByIdOK -*/ +// GetPetByIDOK successful operation +// +// swagger:response getPetByIdOK type GetPetByIDOK struct { - /* - In: Body - */ + // In: Body Payload *models.Pet `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *GetPetByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pr // GetPetByIDBadRequestCode is the HTTP code returned for type GetPetByIDBadRequest const GetPetByIDBadRequestCode int = 400 -/* -GetPetByIDBadRequest Invalid ID supplied - -swagger:response getPetByIdBadRequest -*/ +// GetPetByIDBadRequest Invalid ID supplied +// +// swagger:response getPetByIdBadRequest type GetPetByIDBadRequest struct { } @@ -82,11 +76,9 @@ func (o *GetPetByIDBadRequest) WriteResponse(rw http.ResponseWriter, producer ru // GetPetByIDNotFoundCode is the HTTP code returned for type GetPetByIDNotFound const GetPetByIDNotFoundCode int = 404 -/* -GetPetByIDNotFound Pet not found - -swagger:response getPetByIdNotFound -*/ +// GetPetByIDNotFound Pet not found +// +// swagger:response getPetByIdNotFound type GetPetByIDNotFound struct { } diff --git a/generated/restapi/operations/pet/update_pet.go b/generated/restapi/operations/pet/update_pet.go index c9cec127..d77331a7 100644 --- a/generated/restapi/operations/pet/update_pet.go +++ b/generated/restapi/operations/pet/update_pet.go @@ -26,11 +26,9 @@ func NewUpdatePet(ctx *middleware.Context, handler UpdatePetHandler) *UpdatePet return &UpdatePet{Context: ctx, Handler: handler} } -/* - UpdatePet swagger:route PUT /pets pet updatePet - -Update an existing pet -*/ +// UpdatePet swagger:route PUT /pets pet updatePet +// +// Update an existing pet type UpdatePet struct { Context *middleware.Context Handler UpdatePetHandler diff --git a/generated/restapi/operations/pet/update_pet_parameters.go b/generated/restapi/operations/pet/update_pet_parameters.go index b6a4fa12..e3c96960 100644 --- a/generated/restapi/operations/pet/update_pet_parameters.go +++ b/generated/restapi/operations/pet/update_pet_parameters.go @@ -27,10 +27,8 @@ func NewUpdatePetParams() UpdatePetParams { type UpdatePetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Pet object that needs to be added to the store - In: body - */ + // Pet object that needs to be added to the store + // In: body Body *models.Pet } diff --git a/generated/restapi/operations/pet/update_pet_responses.go b/generated/restapi/operations/pet/update_pet_responses.go index 64911c07..d4e39499 100644 --- a/generated/restapi/operations/pet/update_pet_responses.go +++ b/generated/restapi/operations/pet/update_pet_responses.go @@ -11,11 +11,9 @@ import ( // UpdatePetBadRequestCode is the HTTP code returned for type UpdatePetBadRequest const UpdatePetBadRequestCode int = 400 -/* -UpdatePetBadRequest Invalid ID supplied - -swagger:response updatePetBadRequest -*/ +// UpdatePetBadRequest Invalid ID supplied +// +// swagger:response updatePetBadRequest type UpdatePetBadRequest struct { } @@ -36,11 +34,9 @@ func (o *UpdatePetBadRequest) WriteResponse(rw http.ResponseWriter, producer run // UpdatePetNotFoundCode is the HTTP code returned for type UpdatePetNotFound const UpdatePetNotFoundCode int = 404 -/* -UpdatePetNotFound Pet not found - -swagger:response updatePetNotFound -*/ +// UpdatePetNotFound Pet not found +// +// swagger:response updatePetNotFound type UpdatePetNotFound struct { } @@ -61,11 +57,9 @@ func (o *UpdatePetNotFound) WriteResponse(rw http.ResponseWriter, producer runti // UpdatePetMethodNotAllowedCode is the HTTP code returned for type UpdatePetMethodNotAllowed const UpdatePetMethodNotAllowedCode int = 405 -/* -UpdatePetMethodNotAllowed Validation exception - -swagger:response updatePetMethodNotAllowed -*/ +// UpdatePetMethodNotAllowed Validation exception +// +// swagger:response updatePetMethodNotAllowed type UpdatePetMethodNotAllowed struct { } diff --git a/generated/restapi/operations/pet/update_pet_with_form.go b/generated/restapi/operations/pet/update_pet_with_form.go index 091e700b..2e037db3 100644 --- a/generated/restapi/operations/pet/update_pet_with_form.go +++ b/generated/restapi/operations/pet/update_pet_with_form.go @@ -26,11 +26,9 @@ func NewUpdatePetWithForm(ctx *middleware.Context, handler UpdatePetWithFormHand return &UpdatePetWithForm{Context: ctx, Handler: handler} } -/* - UpdatePetWithForm swagger:route POST /pets/{petId} pet updatePetWithForm - -Updates a pet in the store with form data -*/ +// UpdatePetWithForm swagger:route POST /pets/{petId} pet updatePetWithForm +// +// Updates a pet in the store with form data type UpdatePetWithForm struct { Context *middleware.Context Handler UpdatePetWithFormHandler diff --git a/generated/restapi/operations/pet/update_pet_with_form_parameters.go b/generated/restapi/operations/pet/update_pet_with_form_parameters.go index e88132b2..d46ede82 100644 --- a/generated/restapi/operations/pet/update_pet_with_form_parameters.go +++ b/generated/restapi/operations/pet/update_pet_with_form_parameters.go @@ -39,23 +39,17 @@ func NewUpdatePetWithFormParams() UpdatePetWithFormParams { type UpdatePetWithFormParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Updated name of the pet - Required: true - In: formData - */ + // Updated name of the pet + // Required: true + // In: formData Name string - - /*ID of pet that needs to be updated - Required: true - In: path - */ + // ID of pet that needs to be updated + // Required: true + // In: path PetID string - - /*Updated status of the pet - Required: true - In: formData - */ + // Updated status of the pet + // Required: true + // In: formData Status string } diff --git a/generated/restapi/operations/pet/update_pet_with_form_responses.go b/generated/restapi/operations/pet/update_pet_with_form_responses.go index 0be0e9c4..800bb0a3 100644 --- a/generated/restapi/operations/pet/update_pet_with_form_responses.go +++ b/generated/restapi/operations/pet/update_pet_with_form_responses.go @@ -11,11 +11,9 @@ import ( // UpdatePetWithFormMethodNotAllowedCode is the HTTP code returned for type UpdatePetWithFormMethodNotAllowed const UpdatePetWithFormMethodNotAllowedCode int = 405 -/* -UpdatePetWithFormMethodNotAllowed Invalid input - -swagger:response updatePetWithFormMethodNotAllowed -*/ +// UpdatePetWithFormMethodNotAllowed Invalid input +// +// swagger:response updatePetWithFormMethodNotAllowed type UpdatePetWithFormMethodNotAllowed struct { } diff --git a/generated/restapi/operations/petstore_api.go b/generated/restapi/operations/petstore_api.go index fb171cef..1ad7833f 100644 --- a/generated/restapi/operations/petstore_api.go +++ b/generated/restapi/operations/petstore_api.go @@ -177,13 +177,11 @@ func NewPetstoreAPI(spec *loads.Document) *PetstoreAPI { } } -/* -PetstoreAPI This is a sample server Petstore server. - -[Learn about Swagger](http://swagger.wordnik.com) or join the IRC channel '#swagger' on irc.freenode.net. - -For this sample, you can use the api key 'special-key' to test the authorization filters -*/ +// PetstoreAPI This is a sample server Petstore server. +// +// [Learn about Swagger](http://swagger.wordnik.com) or join the IRC channel '#swagger' on irc.freenode.net. +// +// For this sample, you can use the api key 'special-key' to test the authorization filters type PetstoreAPI struct { spec *loads.Document context *middleware.Context diff --git a/generated/restapi/operations/store/delete_order.go b/generated/restapi/operations/store/delete_order.go index 7a5aad03..a61d4159 100644 --- a/generated/restapi/operations/store/delete_order.go +++ b/generated/restapi/operations/store/delete_order.go @@ -26,13 +26,11 @@ func NewDeleteOrder(ctx *middleware.Context, handler DeleteOrderHandler) *Delete return &DeleteOrder{Context: ctx, Handler: handler} } -/* - DeleteOrder swagger:route DELETE /stores/order/{orderId} store deleteOrder - -# Delete purchase order by ID - -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors -*/ +// DeleteOrder swagger:route DELETE /stores/order/{orderId} store deleteOrder +// +// # Delete purchase order by ID +// +// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors type DeleteOrder struct { Context *middleware.Context Handler DeleteOrderHandler diff --git a/generated/restapi/operations/store/delete_order_parameters.go b/generated/restapi/operations/store/delete_order_parameters.go index 7e3bd549..543d3e9c 100644 --- a/generated/restapi/operations/store/delete_order_parameters.go +++ b/generated/restapi/operations/store/delete_order_parameters.go @@ -25,11 +25,9 @@ func NewDeleteOrderParams() DeleteOrderParams { type DeleteOrderParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*ID of the order that needs to be deleted - Required: true - In: path - */ + // ID of the order that needs to be deleted + // Required: true + // In: path OrderID string } diff --git a/generated/restapi/operations/store/delete_order_responses.go b/generated/restapi/operations/store/delete_order_responses.go index 2ea71b32..75cc6c30 100644 --- a/generated/restapi/operations/store/delete_order_responses.go +++ b/generated/restapi/operations/store/delete_order_responses.go @@ -11,11 +11,9 @@ import ( // DeleteOrderBadRequestCode is the HTTP code returned for type DeleteOrderBadRequest const DeleteOrderBadRequestCode int = 400 -/* -DeleteOrderBadRequest Invalid ID supplied - -swagger:response deleteOrderBadRequest -*/ +// DeleteOrderBadRequest Invalid ID supplied +// +// swagger:response deleteOrderBadRequest type DeleteOrderBadRequest struct { } @@ -36,11 +34,9 @@ func (o *DeleteOrderBadRequest) WriteResponse(rw http.ResponseWriter, producer r // DeleteOrderNotFoundCode is the HTTP code returned for type DeleteOrderNotFound const DeleteOrderNotFoundCode int = 404 -/* -DeleteOrderNotFound Order not found - -swagger:response deleteOrderNotFound -*/ +// DeleteOrderNotFound Order not found +// +// swagger:response deleteOrderNotFound type DeleteOrderNotFound struct { } diff --git a/generated/restapi/operations/store/get_order_by_id.go b/generated/restapi/operations/store/get_order_by_id.go index 578dc8a2..3159929c 100644 --- a/generated/restapi/operations/store/get_order_by_id.go +++ b/generated/restapi/operations/store/get_order_by_id.go @@ -26,13 +26,11 @@ func NewGetOrderByID(ctx *middleware.Context, handler GetOrderByIDHandler) *GetO return &GetOrderByID{Context: ctx, Handler: handler} } -/* - GetOrderByID swagger:route GET /stores/order/{orderId} store getOrderById - -# Find purchase order by ID - -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions -*/ +// GetOrderByID swagger:route GET /stores/order/{orderId} store getOrderById +// +// # Find purchase order by ID +// +// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions type GetOrderByID struct { Context *middleware.Context Handler GetOrderByIDHandler diff --git a/generated/restapi/operations/store/get_order_by_id_parameters.go b/generated/restapi/operations/store/get_order_by_id_parameters.go index 18219861..87cf6e1d 100644 --- a/generated/restapi/operations/store/get_order_by_id_parameters.go +++ b/generated/restapi/operations/store/get_order_by_id_parameters.go @@ -25,11 +25,9 @@ func NewGetOrderByIDParams() GetOrderByIDParams { type GetOrderByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*ID of pet that needs to be fetched - Required: true - In: path - */ + // ID of pet that needs to be fetched + // Required: true + // In: path OrderID string } diff --git a/generated/restapi/operations/store/get_order_by_id_responses.go b/generated/restapi/operations/store/get_order_by_id_responses.go index 4674d050..cebc20a1 100644 --- a/generated/restapi/operations/store/get_order_by_id_responses.go +++ b/generated/restapi/operations/store/get_order_by_id_responses.go @@ -12,16 +12,12 @@ import ( // GetOrderByIDOKCode is the HTTP code returned for type GetOrderByIDOK const GetOrderByIDOKCode int = 200 -/* -GetOrderByIDOK successful operation - -swagger:response getOrderByIdOK -*/ +// GetOrderByIDOK successful operation +// +// swagger:response getOrderByIdOK type GetOrderByIDOK struct { - /* - In: Body - */ + // In: Body Payload *models.Order `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *GetOrderByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime. // GetOrderByIDBadRequestCode is the HTTP code returned for type GetOrderByIDBadRequest const GetOrderByIDBadRequestCode int = 400 -/* -GetOrderByIDBadRequest Invalid ID supplied - -swagger:response getOrderByIdBadRequest -*/ +// GetOrderByIDBadRequest Invalid ID supplied +// +// swagger:response getOrderByIdBadRequest type GetOrderByIDBadRequest struct { } @@ -82,11 +76,9 @@ func (o *GetOrderByIDBadRequest) WriteResponse(rw http.ResponseWriter, producer // GetOrderByIDNotFoundCode is the HTTP code returned for type GetOrderByIDNotFound const GetOrderByIDNotFoundCode int = 404 -/* -GetOrderByIDNotFound Order not found - -swagger:response getOrderByIdNotFound -*/ +// GetOrderByIDNotFound Order not found +// +// swagger:response getOrderByIdNotFound type GetOrderByIDNotFound struct { } diff --git a/generated/restapi/operations/store/place_order.go b/generated/restapi/operations/store/place_order.go index 7d7c82fd..ecf78b43 100644 --- a/generated/restapi/operations/store/place_order.go +++ b/generated/restapi/operations/store/place_order.go @@ -26,11 +26,9 @@ func NewPlaceOrder(ctx *middleware.Context, handler PlaceOrderHandler) *PlaceOrd return &PlaceOrder{Context: ctx, Handler: handler} } -/* - PlaceOrder swagger:route POST /stores/order store placeOrder - -Place an order for a pet -*/ +// PlaceOrder swagger:route POST /stores/order store placeOrder +// +// Place an order for a pet type PlaceOrder struct { Context *middleware.Context Handler PlaceOrderHandler diff --git a/generated/restapi/operations/store/place_order_parameters.go b/generated/restapi/operations/store/place_order_parameters.go index e897ac36..976803ec 100644 --- a/generated/restapi/operations/store/place_order_parameters.go +++ b/generated/restapi/operations/store/place_order_parameters.go @@ -27,10 +27,8 @@ func NewPlaceOrderParams() PlaceOrderParams { type PlaceOrderParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*order placed for purchasing the pet - In: body - */ + // order placed for purchasing the pet + // In: body Body *models.Order } diff --git a/generated/restapi/operations/store/place_order_responses.go b/generated/restapi/operations/store/place_order_responses.go index 24223658..69804d3e 100644 --- a/generated/restapi/operations/store/place_order_responses.go +++ b/generated/restapi/operations/store/place_order_responses.go @@ -12,16 +12,12 @@ import ( // PlaceOrderOKCode is the HTTP code returned for type PlaceOrderOK const PlaceOrderOKCode int = 200 -/* -PlaceOrderOK successful operation - -swagger:response placeOrderOK -*/ +// PlaceOrderOK successful operation +// +// swagger:response placeOrderOK type PlaceOrderOK struct { - /* - In: Body - */ + // In: Body Payload *models.Order `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *PlaceOrderOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pr // PlaceOrderBadRequestCode is the HTTP code returned for type PlaceOrderBadRequest const PlaceOrderBadRequestCode int = 400 -/* -PlaceOrderBadRequest Invalid Order - -swagger:response placeOrderBadRequest -*/ +// PlaceOrderBadRequest Invalid Order +// +// swagger:response placeOrderBadRequest type PlaceOrderBadRequest struct { } diff --git a/generated/restapi/operations/user/create_user.go b/generated/restapi/operations/user/create_user.go index b9505179..d8c5371e 100644 --- a/generated/restapi/operations/user/create_user.go +++ b/generated/restapi/operations/user/create_user.go @@ -26,13 +26,11 @@ func NewCreateUser(ctx *middleware.Context, handler CreateUserHandler) *CreateUs return &CreateUser{Context: ctx, Handler: handler} } -/* - CreateUser swagger:route POST /users user createUser - -# Create user - -This can only be done by the logged in user. -*/ +// CreateUser swagger:route POST /users user createUser +// +// # Create user +// +// This can only be done by the logged in user. type CreateUser struct { Context *middleware.Context Handler CreateUserHandler diff --git a/generated/restapi/operations/user/create_user_parameters.go b/generated/restapi/operations/user/create_user_parameters.go index deacbf98..b0afe735 100644 --- a/generated/restapi/operations/user/create_user_parameters.go +++ b/generated/restapi/operations/user/create_user_parameters.go @@ -27,10 +27,8 @@ func NewCreateUserParams() CreateUserParams { type CreateUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Created user object - In: body - */ + // Created user object + // In: body Body *models.User } diff --git a/generated/restapi/operations/user/create_user_responses.go b/generated/restapi/operations/user/create_user_responses.go index b45e70c2..f7c05100 100644 --- a/generated/restapi/operations/user/create_user_responses.go +++ b/generated/restapi/operations/user/create_user_responses.go @@ -8,11 +8,9 @@ import ( "github.com/go-openapi/runtime" ) -/* -CreateUserDefault successful operation - -swagger:response createUserDefault -*/ +// CreateUserDefault successful operation +// +// swagger:response createUserDefault type CreateUserDefault struct { _statusCode int } diff --git a/generated/restapi/operations/user/create_users_with_array_input.go b/generated/restapi/operations/user/create_users_with_array_input.go index 8c20987f..8fb61263 100644 --- a/generated/restapi/operations/user/create_users_with_array_input.go +++ b/generated/restapi/operations/user/create_users_with_array_input.go @@ -26,11 +26,9 @@ func NewCreateUsersWithArrayInput(ctx *middleware.Context, handler CreateUsersWi return &CreateUsersWithArrayInput{Context: ctx, Handler: handler} } -/* - CreateUsersWithArrayInput swagger:route POST /users/createWithArray user createUsersWithArrayInput - -Creates list of users with given input array -*/ +// CreateUsersWithArrayInput swagger:route POST /users/createWithArray user createUsersWithArrayInput +// +// Creates list of users with given input array type CreateUsersWithArrayInput struct { Context *middleware.Context Handler CreateUsersWithArrayInputHandler diff --git a/generated/restapi/operations/user/create_users_with_array_input_parameters.go b/generated/restapi/operations/user/create_users_with_array_input_parameters.go index 6fc121c6..1da8679b 100644 --- a/generated/restapi/operations/user/create_users_with_array_input_parameters.go +++ b/generated/restapi/operations/user/create_users_with_array_input_parameters.go @@ -26,10 +26,8 @@ func NewCreateUsersWithArrayInputParams() CreateUsersWithArrayInputParams { type CreateUsersWithArrayInputParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*List of user object - In: body - */ + // List of user object + // In: body Body []*models.User } diff --git a/generated/restapi/operations/user/create_users_with_array_input_responses.go b/generated/restapi/operations/user/create_users_with_array_input_responses.go index 0c1f55b1..40a14f68 100644 --- a/generated/restapi/operations/user/create_users_with_array_input_responses.go +++ b/generated/restapi/operations/user/create_users_with_array_input_responses.go @@ -8,11 +8,9 @@ import ( "github.com/go-openapi/runtime" ) -/* -CreateUsersWithArrayInputDefault successful operation - -swagger:response createUsersWithArrayInputDefault -*/ +// CreateUsersWithArrayInputDefault successful operation +// +// swagger:response createUsersWithArrayInputDefault type CreateUsersWithArrayInputDefault struct { _statusCode int } diff --git a/generated/restapi/operations/user/create_users_with_list_input.go b/generated/restapi/operations/user/create_users_with_list_input.go index 8d985940..7da9fbb8 100644 --- a/generated/restapi/operations/user/create_users_with_list_input.go +++ b/generated/restapi/operations/user/create_users_with_list_input.go @@ -26,11 +26,9 @@ func NewCreateUsersWithListInput(ctx *middleware.Context, handler CreateUsersWit return &CreateUsersWithListInput{Context: ctx, Handler: handler} } -/* - CreateUsersWithListInput swagger:route POST /users/createWithList user createUsersWithListInput - -Creates list of users with given input array -*/ +// CreateUsersWithListInput swagger:route POST /users/createWithList user createUsersWithListInput +// +// Creates list of users with given input array type CreateUsersWithListInput struct { Context *middleware.Context Handler CreateUsersWithListInputHandler diff --git a/generated/restapi/operations/user/create_users_with_list_input_parameters.go b/generated/restapi/operations/user/create_users_with_list_input_parameters.go index 01676457..af5234e6 100644 --- a/generated/restapi/operations/user/create_users_with_list_input_parameters.go +++ b/generated/restapi/operations/user/create_users_with_list_input_parameters.go @@ -26,10 +26,8 @@ func NewCreateUsersWithListInputParams() CreateUsersWithListInputParams { type CreateUsersWithListInputParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*List of user object - In: body - */ + // List of user object + // In: body Body []*models.User } diff --git a/generated/restapi/operations/user/create_users_with_list_input_responses.go b/generated/restapi/operations/user/create_users_with_list_input_responses.go index af8fbf0b..9d938edd 100644 --- a/generated/restapi/operations/user/create_users_with_list_input_responses.go +++ b/generated/restapi/operations/user/create_users_with_list_input_responses.go @@ -8,11 +8,9 @@ import ( "github.com/go-openapi/runtime" ) -/* -CreateUsersWithListInputDefault successful operation - -swagger:response createUsersWithListInputDefault -*/ +// CreateUsersWithListInputDefault successful operation +// +// swagger:response createUsersWithListInputDefault type CreateUsersWithListInputDefault struct { _statusCode int } diff --git a/generated/restapi/operations/user/delete_user.go b/generated/restapi/operations/user/delete_user.go index b8f010f8..fe7babf1 100644 --- a/generated/restapi/operations/user/delete_user.go +++ b/generated/restapi/operations/user/delete_user.go @@ -26,13 +26,11 @@ func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUs return &DeleteUser{Context: ctx, Handler: handler} } -/* - DeleteUser swagger:route DELETE /users/{username} user deleteUser - -# Delete user - -This can only be done by the logged in user. -*/ +// DeleteUser swagger:route DELETE /users/{username} user deleteUser +// +// # Delete user +// +// This can only be done by the logged in user. type DeleteUser struct { Context *middleware.Context Handler DeleteUserHandler diff --git a/generated/restapi/operations/user/delete_user_parameters.go b/generated/restapi/operations/user/delete_user_parameters.go index 4dee2539..590df289 100644 --- a/generated/restapi/operations/user/delete_user_parameters.go +++ b/generated/restapi/operations/user/delete_user_parameters.go @@ -25,11 +25,9 @@ func NewDeleteUserParams() DeleteUserParams { type DeleteUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The name that needs to be deleted - Required: true - In: path - */ + // The name that needs to be deleted + // Required: true + // In: path Username string } diff --git a/generated/restapi/operations/user/delete_user_responses.go b/generated/restapi/operations/user/delete_user_responses.go index 11e0dcf6..d0092965 100644 --- a/generated/restapi/operations/user/delete_user_responses.go +++ b/generated/restapi/operations/user/delete_user_responses.go @@ -11,11 +11,9 @@ import ( // DeleteUserBadRequestCode is the HTTP code returned for type DeleteUserBadRequest const DeleteUserBadRequestCode int = 400 -/* -DeleteUserBadRequest Invalid username supplied - -swagger:response deleteUserBadRequest -*/ +// DeleteUserBadRequest Invalid username supplied +// +// swagger:response deleteUserBadRequest type DeleteUserBadRequest struct { } @@ -36,11 +34,9 @@ func (o *DeleteUserBadRequest) WriteResponse(rw http.ResponseWriter, producer ru // DeleteUserNotFoundCode is the HTTP code returned for type DeleteUserNotFound const DeleteUserNotFoundCode int = 404 -/* -DeleteUserNotFound User not found - -swagger:response deleteUserNotFound -*/ +// DeleteUserNotFound User not found +// +// swagger:response deleteUserNotFound type DeleteUserNotFound struct { } diff --git a/generated/restapi/operations/user/get_user_by_name.go b/generated/restapi/operations/user/get_user_by_name.go index 997bd586..234f5927 100644 --- a/generated/restapi/operations/user/get_user_by_name.go +++ b/generated/restapi/operations/user/get_user_by_name.go @@ -26,11 +26,9 @@ func NewGetUserByName(ctx *middleware.Context, handler GetUserByNameHandler) *Ge return &GetUserByName{Context: ctx, Handler: handler} } -/* - GetUserByName swagger:route GET /users/{username} user getUserByName - -Get user by user name -*/ +// GetUserByName swagger:route GET /users/{username} user getUserByName +// +// Get user by user name type GetUserByName struct { Context *middleware.Context Handler GetUserByNameHandler diff --git a/generated/restapi/operations/user/get_user_by_name_parameters.go b/generated/restapi/operations/user/get_user_by_name_parameters.go index 9e469a06..c8549e38 100644 --- a/generated/restapi/operations/user/get_user_by_name_parameters.go +++ b/generated/restapi/operations/user/get_user_by_name_parameters.go @@ -25,11 +25,9 @@ func NewGetUserByNameParams() GetUserByNameParams { type GetUserByNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The name that needs to be fetched. Use user1 for testing. - Required: true - In: path - */ + // The name that needs to be fetched. Use user1 for testing. + // Required: true + // In: path Username string } diff --git a/generated/restapi/operations/user/get_user_by_name_responses.go b/generated/restapi/operations/user/get_user_by_name_responses.go index c393f41a..33d16b38 100644 --- a/generated/restapi/operations/user/get_user_by_name_responses.go +++ b/generated/restapi/operations/user/get_user_by_name_responses.go @@ -12,16 +12,12 @@ import ( // GetUserByNameOKCode is the HTTP code returned for type GetUserByNameOK const GetUserByNameOKCode int = 200 -/* -GetUserByNameOK successful operation - -swagger:response getUserByNameOK -*/ +// GetUserByNameOK successful operation +// +// swagger:response getUserByNameOK type GetUserByNameOK struct { - /* - In: Body - */ + // In: Body Payload *models.User `json:"body,omitempty"` } @@ -57,11 +53,9 @@ func (o *GetUserByNameOK) WriteResponse(rw http.ResponseWriter, producer runtime // GetUserByNameBadRequestCode is the HTTP code returned for type GetUserByNameBadRequest const GetUserByNameBadRequestCode int = 400 -/* -GetUserByNameBadRequest Invalid username supplied - -swagger:response getUserByNameBadRequest -*/ +// GetUserByNameBadRequest Invalid username supplied +// +// swagger:response getUserByNameBadRequest type GetUserByNameBadRequest struct { } @@ -82,11 +76,9 @@ func (o *GetUserByNameBadRequest) WriteResponse(rw http.ResponseWriter, producer // GetUserByNameNotFoundCode is the HTTP code returned for type GetUserByNameNotFound const GetUserByNameNotFoundCode int = 404 -/* -GetUserByNameNotFound User not found - -swagger:response getUserByNameNotFound -*/ +// GetUserByNameNotFound User not found +// +// swagger:response getUserByNameNotFound type GetUserByNameNotFound struct { } diff --git a/generated/restapi/operations/user/login_user.go b/generated/restapi/operations/user/login_user.go index 8842a06f..6e912b10 100644 --- a/generated/restapi/operations/user/login_user.go +++ b/generated/restapi/operations/user/login_user.go @@ -26,11 +26,9 @@ func NewLoginUser(ctx *middleware.Context, handler LoginUserHandler) *LoginUser return &LoginUser{Context: ctx, Handler: handler} } -/* - LoginUser swagger:route GET /users/login user loginUser - -Logs user into the system -*/ +// LoginUser swagger:route GET /users/login user loginUser +// +// Logs user into the system type LoginUser struct { Context *middleware.Context Handler LoginUserHandler diff --git a/generated/restapi/operations/user/login_user_parameters.go b/generated/restapi/operations/user/login_user_parameters.go index 14a4f775..db9c33a6 100644 --- a/generated/restapi/operations/user/login_user_parameters.go +++ b/generated/restapi/operations/user/login_user_parameters.go @@ -26,15 +26,11 @@ func NewLoginUserParams() LoginUserParams { type LoginUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The password for login in clear text - In: query - */ + // The password for login in clear text + // In: query Password *string - - /*The user name for login - In: query - */ + // The user name for login + // In: query Username *string } diff --git a/generated/restapi/operations/user/login_user_responses.go b/generated/restapi/operations/user/login_user_responses.go index 35a2e25f..a108f88e 100644 --- a/generated/restapi/operations/user/login_user_responses.go +++ b/generated/restapi/operations/user/login_user_responses.go @@ -11,16 +11,12 @@ import ( // LoginUserOKCode is the HTTP code returned for type LoginUserOK const LoginUserOKCode int = 200 -/* -LoginUserOK successful operation - -swagger:response loginUserOK -*/ +// LoginUserOK successful operation +// +// swagger:response loginUserOK type LoginUserOK struct { - /* - In: Body - */ + // In: Body Payload string `json:"body,omitempty"` } @@ -54,11 +50,9 @@ func (o *LoginUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro // LoginUserBadRequestCode is the HTTP code returned for type LoginUserBadRequest const LoginUserBadRequestCode int = 400 -/* -LoginUserBadRequest Invalid username/password supplied - -swagger:response loginUserBadRequest -*/ +// LoginUserBadRequest Invalid username/password supplied +// +// swagger:response loginUserBadRequest type LoginUserBadRequest struct { } diff --git a/generated/restapi/operations/user/logout_user.go b/generated/restapi/operations/user/logout_user.go index 60b68a20..587f6758 100644 --- a/generated/restapi/operations/user/logout_user.go +++ b/generated/restapi/operations/user/logout_user.go @@ -26,11 +26,9 @@ func NewLogoutUser(ctx *middleware.Context, handler LogoutUserHandler) *LogoutUs return &LogoutUser{Context: ctx, Handler: handler} } -/* - LogoutUser swagger:route GET /users/logout user logoutUser - -Logs out current logged in user session -*/ +// LogoutUser swagger:route GET /users/logout user logoutUser +// +// Logs out current logged in user session type LogoutUser struct { Context *middleware.Context Handler LogoutUserHandler diff --git a/generated/restapi/operations/user/logout_user_responses.go b/generated/restapi/operations/user/logout_user_responses.go index cbb9bd32..5cc7bc6a 100644 --- a/generated/restapi/operations/user/logout_user_responses.go +++ b/generated/restapi/operations/user/logout_user_responses.go @@ -8,11 +8,9 @@ import ( "github.com/go-openapi/runtime" ) -/* -LogoutUserDefault successful operation - -swagger:response logoutUserDefault -*/ +// LogoutUserDefault successful operation +// +// swagger:response logoutUserDefault type LogoutUserDefault struct { _statusCode int } diff --git a/generated/restapi/operations/user/update_user.go b/generated/restapi/operations/user/update_user.go index 3048da9a..485e3060 100644 --- a/generated/restapi/operations/user/update_user.go +++ b/generated/restapi/operations/user/update_user.go @@ -26,13 +26,11 @@ func NewUpdateUser(ctx *middleware.Context, handler UpdateUserHandler) *UpdateUs return &UpdateUser{Context: ctx, Handler: handler} } -/* - UpdateUser swagger:route PUT /users/{username} user updateUser - -# Updated user - -This can only be done by the logged in user. -*/ +// UpdateUser swagger:route PUT /users/{username} user updateUser +// +// # Updated user +// +// This can only be done by the logged in user. type UpdateUser struct { Context *middleware.Context Handler UpdateUserHandler diff --git a/generated/restapi/operations/user/update_user_parameters.go b/generated/restapi/operations/user/update_user_parameters.go index 37e28417..05cdc0ee 100644 --- a/generated/restapi/operations/user/update_user_parameters.go +++ b/generated/restapi/operations/user/update_user_parameters.go @@ -28,16 +28,12 @@ func NewUpdateUserParams() UpdateUserParams { type UpdateUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Updated user object - In: body - */ + // Updated user object + // In: body Body *models.User - - /*name that need to be deleted - Required: true - In: path - */ + // name that need to be deleted + // Required: true + // In: path Username string } diff --git a/generated/restapi/operations/user/update_user_responses.go b/generated/restapi/operations/user/update_user_responses.go index 3eb0d8d5..faa52ebc 100644 --- a/generated/restapi/operations/user/update_user_responses.go +++ b/generated/restapi/operations/user/update_user_responses.go @@ -11,11 +11,9 @@ import ( // UpdateUserBadRequestCode is the HTTP code returned for type UpdateUserBadRequest const UpdateUserBadRequestCode int = 400 -/* -UpdateUserBadRequest Invalid user supplied - -swagger:response updateUserBadRequest -*/ +// UpdateUserBadRequest Invalid user supplied +// +// swagger:response updateUserBadRequest type UpdateUserBadRequest struct { } @@ -36,11 +34,9 @@ func (o *UpdateUserBadRequest) WriteResponse(rw http.ResponseWriter, producer ru // UpdateUserNotFoundCode is the HTTP code returned for type UpdateUserNotFound const UpdateUserNotFoundCode int = 404 -/* -UpdateUserNotFound User not found - -swagger:response updateUserNotFound -*/ +// UpdateUserNotFound User not found +// +// swagger:response updateUserNotFound type UpdateUserNotFound struct { } diff --git a/middleware/restapi/operations/greeter/greet.go b/middleware/restapi/operations/greeter/greet.go index e6ac66cf..6cb043fd 100644 --- a/middleware/restapi/operations/greeter/greet.go +++ b/middleware/restapi/operations/greeter/greet.go @@ -26,11 +26,9 @@ func NewGreet(ctx *middleware.Context, handler GreetHandler) *Greet { return &Greet{Context: ctx, Handler: handler} } -/* - Greet swagger:route GET /greet greeter greet - -Return a default greeting. -*/ +// Greet swagger:route GET /greet greeter greet +// +// Return a default greeting. type Greet struct { Context *middleware.Context Handler GreetHandler diff --git a/middleware/restapi/operations/greeter/greet_name.go b/middleware/restapi/operations/greeter/greet_name.go index 290a6081..0ebc08d7 100644 --- a/middleware/restapi/operations/greeter/greet_name.go +++ b/middleware/restapi/operations/greeter/greet_name.go @@ -26,11 +26,9 @@ func NewGreetName(ctx *middleware.Context, handler GreetNameHandler) *GreetName return &GreetName{Context: ctx, Handler: handler} } -/* - GreetName swagger:route GET /greet/{name} greeter greetName - -Return a greeting addressed to the caller. -*/ +// GreetName swagger:route GET /greet/{name} greeter greetName +// +// Return a greeting addressed to the caller. type GreetName struct { Context *middleware.Context Handler GreetNameHandler diff --git a/middleware/restapi/operations/greeter/greet_name_parameters.go b/middleware/restapi/operations/greeter/greet_name_parameters.go index 55501a40..7655dad8 100644 --- a/middleware/restapi/operations/greeter/greet_name_parameters.go +++ b/middleware/restapi/operations/greeter/greet_name_parameters.go @@ -25,11 +25,8 @@ func NewGreetNameParams() GreetNameParams { type GreetNameParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path Name string } diff --git a/middleware/restapi/operations/greeter/greet_name_responses.go b/middleware/restapi/operations/greeter/greet_name_responses.go index 0588b17f..b702ac9c 100644 --- a/middleware/restapi/operations/greeter/greet_name_responses.go +++ b/middleware/restapi/operations/greeter/greet_name_responses.go @@ -12,16 +12,12 @@ import ( // GreetNameOKCode is the HTTP code returned for type GreetNameOK const GreetNameOKCode int = 200 -/* -GreetNameOK greeting - -swagger:response greetNameOK -*/ +// GreetNameOK greeting +// +// swagger:response greetNameOK type GreetNameOK struct { - /* - In: Body - */ + // In: Body Payload *models.Greeting `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *GreetNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -GreetNameDefault error - -swagger:response greetNameDefault -*/ +// GreetNameDefault error +// +// swagger:response greetNameDefault type GreetNameDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/middleware/restapi/operations/greeter/greet_responses.go b/middleware/restapi/operations/greeter/greet_responses.go index 9d203abf..1c04fb24 100644 --- a/middleware/restapi/operations/greeter/greet_responses.go +++ b/middleware/restapi/operations/greeter/greet_responses.go @@ -12,16 +12,12 @@ import ( // GreetOKCode is the HTTP code returned for type GreetOK const GreetOKCode int = 200 -/* -GreetOK greeting - -swagger:response greetOK -*/ +// GreetOK greeting +// +// swagger:response greetOK type GreetOK struct { - /* - In: Body - */ + // In: Body Payload *models.Greeting `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *GreetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produce } } -/* -GreetDefault error - -swagger:response greetDefault -*/ +// GreetDefault error +// +// swagger:response greetDefault type GreetDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/middleware/restapi/operations/greeter_api.go b/middleware/restapi/operations/greeter_api.go index 6ecab4f3..5b3a329a 100644 --- a/middleware/restapi/operations/greeter_api.go +++ b/middleware/restapi/operations/greeter_api.go @@ -54,10 +54,8 @@ func NewGreeterAPI(spec *loads.Document) *GreeterAPI { } } -/* -GreeterAPI Minimal API used to demonstrate how to plug custom net/http middleware -into a server generated by go-swagger. -*/ +// GreeterAPI Minimal API used to demonstrate how to plug custom net/http middleware +// into a server generated by go-swagger. type GreeterAPI struct { spec *loads.Document context *middleware.Context diff --git a/oauth2/restapi/operations/customers/create.go b/oauth2/restapi/operations/customers/create.go index fb26106c..669e201f 100644 --- a/oauth2/restapi/operations/customers/create.go +++ b/oauth2/restapi/operations/customers/create.go @@ -28,11 +28,9 @@ func NewCreate(ctx *middleware.Context, handler CreateHandler) *Create { return &Create{Context: ctx, Handler: handler} } -/* - Create swagger:route POST /customers customers create - -Create a new customer to track -*/ +// Create swagger:route POST /customers customers create +// +// Create a new customer to track type Create struct { Context *middleware.Context Handler CreateHandler diff --git a/oauth2/restapi/operations/customers/create_parameters.go b/oauth2/restapi/operations/customers/create_parameters.go index 99d95989..75504f6a 100644 --- a/oauth2/restapi/operations/customers/create_parameters.go +++ b/oauth2/restapi/operations/customers/create_parameters.go @@ -27,10 +27,7 @@ func NewCreateParams() CreateParams { type CreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Info *models.Customer } diff --git a/oauth2/restapi/operations/customers/create_responses.go b/oauth2/restapi/operations/customers/create_responses.go index 1832fac3..80e0eddf 100644 --- a/oauth2/restapi/operations/customers/create_responses.go +++ b/oauth2/restapi/operations/customers/create_responses.go @@ -12,16 +12,12 @@ import ( // CreateCreatedCode is the HTTP code returned for type CreateCreated const CreateCreatedCode int = 201 -/* -CreateCreated created - -swagger:response createCreated -*/ +// CreateCreated created +// +// swagger:response createCreated type CreateCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Customer `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *CreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -CreateDefault error - -swagger:response createDefault -*/ +// CreateDefault error +// +// swagger:response createDefault type CreateDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/oauth2/restapi/operations/customers/get_id.go b/oauth2/restapi/operations/customers/get_id.go index 5c5bee20..3b91bce9 100644 --- a/oauth2/restapi/operations/customers/get_id.go +++ b/oauth2/restapi/operations/customers/get_id.go @@ -28,11 +28,9 @@ func NewGetID(ctx *middleware.Context, handler GetIDHandler) *GetID { return &GetID{Context: ctx, Handler: handler} } -/* - GetID swagger:route GET /customers customers getId - -Get a customerId given an SSN -*/ +// GetID swagger:route GET /customers customers getId +// +// Get a customerId given an SSN type GetID struct { Context *middleware.Context Handler GetIDHandler diff --git a/oauth2/restapi/operations/customers/get_id_parameters.go b/oauth2/restapi/operations/customers/get_id_parameters.go index d071cb19..8641fe32 100644 --- a/oauth2/restapi/operations/customers/get_id_parameters.go +++ b/oauth2/restapi/operations/customers/get_id_parameters.go @@ -27,10 +27,7 @@ func NewGetIDParams() GetIDParams { type GetIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Info *models.SocialID } diff --git a/oauth2/restapi/operations/customers/get_id_responses.go b/oauth2/restapi/operations/customers/get_id_responses.go index 681648e7..a5d59289 100644 --- a/oauth2/restapi/operations/customers/get_id_responses.go +++ b/oauth2/restapi/operations/customers/get_id_responses.go @@ -12,16 +12,12 @@ import ( // GetIDOKCode is the HTTP code returned for type GetIDOK const GetIDOKCode int = 200 -/* -GetIDOK OK - -swagger:response getIdOK -*/ +// GetIDOK OK +// +// swagger:response getIdOK type GetIDOK struct { - /* - In: Body - */ + // In: Body Payload *models.Customer `json:"body,omitempty"` } @@ -57,16 +53,12 @@ func (o *GetIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produce // GetIDUnauthorizedCode is the HTTP code returned for type GetIDUnauthorized const GetIDUnauthorizedCode int = 401 -/* -GetIDUnauthorized unauthorized - -swagger:response getIdUnauthorized -*/ +// GetIDUnauthorized unauthorized +// +// swagger:response getIdUnauthorized type GetIDUnauthorized struct { - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } @@ -102,16 +94,12 @@ func (o *GetIDUnauthorized) WriteResponse(rw http.ResponseWriter, producer runti // GetIDNotFoundCode is the HTTP code returned for type GetIDNotFound const GetIDNotFoundCode int = 404 -/* -GetIDNotFound resource not found - -swagger:response getIdNotFound -*/ +// GetIDNotFound resource not found +// +// swagger:response getIdNotFound type GetIDNotFound struct { - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } @@ -144,17 +132,13 @@ func (o *GetIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -GetIDDefault error - -swagger:response getIdDefault -*/ +// GetIDDefault error +// +// swagger:response getIdDefault type GetIDDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/oauth2/restapi/operations/get_auth_callback.go b/oauth2/restapi/operations/get_auth_callback.go index a5abedf5..7a3d924f 100644 --- a/oauth2/restapi/operations/get_auth_callback.go +++ b/oauth2/restapi/operations/get_auth_callback.go @@ -29,11 +29,9 @@ func NewGetAuthCallback(ctx *middleware.Context, handler GetAuthCallbackHandler) return &GetAuthCallback{Context: ctx, Handler: handler} } -/* - GetAuthCallback swagger:route GET /auth/callback getAuthCallback - -return access_token -*/ +// GetAuthCallback swagger:route GET /auth/callback getAuthCallback +// +// return access_token type GetAuthCallback struct { Context *middleware.Context Handler GetAuthCallbackHandler diff --git a/oauth2/restapi/operations/get_auth_callback_responses.go b/oauth2/restapi/operations/get_auth_callback_responses.go index 8fdd8be9..062b3385 100644 --- a/oauth2/restapi/operations/get_auth_callback_responses.go +++ b/oauth2/restapi/operations/get_auth_callback_responses.go @@ -12,16 +12,12 @@ import ( // GetAuthCallbackOKCode is the HTTP code returned for type GetAuthCallbackOK const GetAuthCallbackOKCode int = 200 -/* -GetAuthCallbackOK login - -swagger:response getAuthCallbackOK -*/ +// GetAuthCallbackOK login +// +// swagger:response getAuthCallbackOK type GetAuthCallbackOK struct { - /* - In: Body - */ + // In: Body Payload *GetAuthCallbackOKBody `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *GetAuthCallbackOK) WriteResponse(rw http.ResponseWriter, producer runti } } -/* -GetAuthCallbackDefault error - -swagger:response getAuthCallbackDefault -*/ +// GetAuthCallbackDefault error +// +// swagger:response getAuthCallbackDefault type GetAuthCallbackDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/oauth2/restapi/operations/get_login.go b/oauth2/restapi/operations/get_login.go index a8897b27..ee81d483 100644 --- a/oauth2/restapi/operations/get_login.go +++ b/oauth2/restapi/operations/get_login.go @@ -29,11 +29,9 @@ func NewGetLogin(ctx *middleware.Context, handler GetLoginHandler) *GetLogin { return &GetLogin{Context: ctx, Handler: handler} } -/* - GetLogin swagger:route GET /login getLogin - -login through oauth2 server -*/ +// GetLogin swagger:route GET /login getLogin +// +// login through oauth2 server type GetLogin struct { Context *middleware.Context Handler GetLoginHandler diff --git a/oauth2/restapi/operations/get_login_responses.go b/oauth2/restapi/operations/get_login_responses.go index 6f52d414..8c2e8bc4 100644 --- a/oauth2/restapi/operations/get_login_responses.go +++ b/oauth2/restapi/operations/get_login_responses.go @@ -12,16 +12,12 @@ import ( // GetLoginOKCode is the HTTP code returned for type GetLoginOK const GetLoginOKCode int = 200 -/* -GetLoginOK login - -swagger:response getLoginOK -*/ +// GetLoginOK login +// +// swagger:response getLoginOK type GetLoginOK struct { - /* - In: Body - */ + // In: Body Payload *GetLoginOKBody `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *GetLoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Prod } } -/* -GetLoginDefault error - -swagger:response getLoginDefault -*/ +// GetLoginDefault error +// +// swagger:response getLoginDefault type GetLoginDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/oauth2/restapi/operations/oauth_sample_api.go b/oauth2/restapi/operations/oauth_sample_api.go index 51a82915..e7a45f73 100644 --- a/oauth2/restapi/operations/oauth_sample_api.go +++ b/oauth2/restapi/operations/oauth_sample_api.go @@ -78,7 +78,7 @@ func NewOauthSampleAPI(spec *loads.Document) *OauthSampleAPI { } } -/*OauthSampleAPI the oauth sample API */ +// OauthSampleAPI the oauth sample API type OauthSampleAPI struct { spec *loads.Document context *middleware.Context diff --git a/stream-client/client/operations/chunked_responses.go b/stream-client/client/operations/chunked_responses.go index 652f5e34..6a016c09 100644 --- a/stream-client/client/operations/chunked_responses.go +++ b/stream-client/client/operations/chunked_responses.go @@ -39,11 +39,9 @@ func NewChunkedOK(writer io.Writer) *ChunkedOK { } } -/* -ChunkedOK describes a response with status code 200, with default header values. - -chunked data delivered -*/ +// ChunkedOK describes a response with status code 200, with default header values. +// +// chunked data delivered type ChunkedOK struct { Payload io.Writer } diff --git a/stream-client/client/operations/operations_client.go b/stream-client/client/operations/operations_client.go index 93b293e2..fd03a374 100644 --- a/stream-client/client/operations/operations_client.go +++ b/stream-client/client/operations/operations_client.go @@ -45,9 +45,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for operations API. -*/ +// Client for operations API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -68,16 +66,14 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -Chunkedchunkeds. - -delivers text/plain via Encoding: Chunked. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.ChunkedContext] instead. -*/ +// Chunked chunkeds. +// +// delivers text/plain via Encoding: Chunked. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.ChunkedContext] instead. func (a *Client) Chunked(params *ChunkedParams, writer io.Writer, opts ...ClientOption) (*ChunkedOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -89,13 +85,11 @@ func (a *Client) Chunked(params *ChunkedParams, writer io.Writer, opts ...Client return a.ChunkedContext(ctx, params, writer, opts...) } -/* -ChunkedContextchunkeds. - -delivers text/plain via Encoding: Chunked. - -Do not use the deprecated [ChunkedParams.Context] with this method: it would be ignored. -*/ +// ChunkedContext chunkeds. +// +// delivers text/plain via Encoding: Chunked. +// +// Do not use the deprecated [ChunkedParams.Context] with this method: it would be ignored. func (a *Client) ChunkedContext(ctx context.Context, params *ChunkedParams, writer io.Writer, opts ...ClientOption) (*ChunkedOK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/stream-server/client/operations/elapse_parameters.go b/stream-server/client/operations/elapse_parameters.go index 6582c4d0..c224abda 100644 --- a/stream-server/client/operations/elapse_parameters.go +++ b/stream-server/client/operations/elapse_parameters.go @@ -63,10 +63,9 @@ ElapseParams contains all the parameters to send to the API endpoint */ type ElapseParams struct { - /* Length. - - How many seconds to count down - */ + // Length. + // + // How many seconds to count down Length int64 HTTPClient *http.Client diff --git a/stream-server/client/operations/elapse_responses.go b/stream-server/client/operations/elapse_responses.go index e11eb1c0..eddb00cb 100644 --- a/stream-server/client/operations/elapse_responses.go +++ b/stream-server/client/operations/elapse_responses.go @@ -45,11 +45,9 @@ func NewElapseOK(writer io.Writer) *ElapseOK { } } -/* -ElapseOK describes a response with status code 200, with default header values. - -Secondly update on remaining time -*/ +// ElapseOK describes a response with status code 200, with default header values. +// +// Secondly update on remaining time type ElapseOK struct { Payload io.Writer } @@ -111,11 +109,9 @@ func NewElapseForbidden() *ElapseForbidden { return &ElapseForbidden{} } -/* -ElapseForbidden describes a response with status code 403, with default header values. - -Contrived - thrown when length of 11 is chosen -*/ +// ElapseForbidden describes a response with status code 403, with default header values. +// +// Contrived - thrown when length of 11 is chosen type ElapseForbidden struct { } diff --git a/stream-server/client/operations/operations_client.go b/stream-server/client/operations/operations_client.go index 0cab7f27..c74f5eeb 100644 --- a/stream-server/client/operations/operations_client.go +++ b/stream-server/client/operations/operations_client.go @@ -45,9 +45,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for operations API. -*/ +// Client for operations API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -68,16 +66,14 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -Elapsecounts down the number of seconds. - -Count down the seconds remaining. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.ElapseContext] instead. -*/ +// Elapse counts down the number of seconds. +// +// Count down the seconds remaining. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.ElapseContext] instead. func (a *Client) Elapse(params *ElapseParams, writer io.Writer, opts ...ClientOption) (*ElapseOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -89,13 +85,11 @@ func (a *Client) Elapse(params *ElapseParams, writer io.Writer, opts ...ClientOp return a.ElapseContext(ctx, params, writer, opts...) } -/* -ElapseContextcounts down the number of seconds. - -Count down the seconds remaining. - -Do not use the deprecated [ElapseParams.Context] with this method: it would be ignored. -*/ +// ElapseContext counts down the number of seconds. +// +// Count down the seconds remaining. +// +// Do not use the deprecated [ElapseParams.Context] with this method: it would be ignored. func (a *Client) ElapseContext(ctx context.Context, params *ElapseParams, writer io.Writer, opts ...ClientOption) (*ElapseOK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/stream-server/restapi/operations/countdown_api.go b/stream-server/restapi/operations/countdown_api.go index 3357b536..61407525 100644 --- a/stream-server/restapi/operations/countdown_api.go +++ b/stream-server/restapi/operations/countdown_api.go @@ -47,7 +47,7 @@ func NewCountdownAPI(spec *loads.Document) *CountdownAPI { } } -/*CountdownAPI Example server for emitting newline delimited JSON */ +// CountdownAPI Example server for emitting newline delimited JSON type CountdownAPI struct { spec *loads.Document context *middleware.Context diff --git a/stream-server/restapi/operations/elapse.go b/stream-server/restapi/operations/elapse.go index a45bf721..7c427415 100644 --- a/stream-server/restapi/operations/elapse.go +++ b/stream-server/restapi/operations/elapse.go @@ -26,13 +26,11 @@ func NewElapse(ctx *middleware.Context, handler ElapseHandler) *Elapse { return &Elapse{Context: ctx, Handler: handler} } -/* - Elapse swagger:route GET /elapse/{length} elapse - -# Count down the number of seconds - -Count down the seconds remaining -*/ +// Elapse swagger:route GET /elapse/{length} elapse +// +// # Count down the number of seconds +// +// Count down the seconds remaining type Elapse struct { Context *middleware.Context Handler ElapseHandler diff --git a/stream-server/restapi/operations/elapse_parameters.go b/stream-server/restapi/operations/elapse_parameters.go index 000e496b..ceb04ba5 100644 --- a/stream-server/restapi/operations/elapse_parameters.go +++ b/stream-server/restapi/operations/elapse_parameters.go @@ -27,13 +27,11 @@ func NewElapseParams() ElapseParams { type ElapseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*How many seconds to count down - Required: true - Maximum: 30 - Minimum: 2 - In: path - */ + // How many seconds to count down + // Required: true + // Maximum: 30 + // Minimum: 2 + // In: path Length int64 } diff --git a/stream-server/restapi/operations/elapse_responses.go b/stream-server/restapi/operations/elapse_responses.go index f5a4843a..4de22c93 100644 --- a/stream-server/restapi/operations/elapse_responses.go +++ b/stream-server/restapi/operations/elapse_responses.go @@ -12,16 +12,12 @@ import ( // ElapseOKCode is the HTTP code returned for type ElapseOK const ElapseOKCode int = 200 -/* -ElapseOK Secondly update on remaining time - -swagger:response elapseOK -*/ +// ElapseOK Secondly update on remaining time +// +// swagger:response elapseOK type ElapseOK struct { - /* - In: Body - */ + // In: Body Payload io.ReadCloser `json:"body,omitempty"` } @@ -55,11 +51,9 @@ func (o *ElapseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Produc // ElapseForbiddenCode is the HTTP code returned for type ElapseForbidden const ElapseForbiddenCode int = 403 -/* -ElapseForbidden Contrived - thrown when length of 11 is chosen - -swagger:response elapseForbidden -*/ +// ElapseForbidden Contrived - thrown when length of 11 is chosen +// +// swagger:response elapseForbidden type ElapseForbidden struct { } diff --git a/task-tracker/client/tasks/add_comment_to_task_parameters.go b/task-tracker/client/tasks/add_comment_to_task_parameters.go index 7766fc2b..ce582255 100644 --- a/task-tracker/client/tasks/add_comment_to_task_parameters.go +++ b/task-tracker/client/tasks/add_comment_to_task_parameters.go @@ -63,18 +63,16 @@ AddCommentToTaskParams contains all the parameters to send to the API endpoint */ type AddCommentToTaskParams struct { - /* Body. - - The comment to add - */ + // Body. + // + // The comment to add Body AddCommentToTaskBody - /* ID. - - The id of the item - - Format: int64 - */ + // ID. + // + // The id of the item + // + // Format: int64 ID int64 HTTPClient *http.Client diff --git a/task-tracker/client/tasks/add_comment_to_task_responses.go b/task-tracker/client/tasks/add_comment_to_task_responses.go index 639bfa64..3de00ece 100644 --- a/task-tracker/client/tasks/add_comment_to_task_responses.go +++ b/task-tracker/client/tasks/add_comment_to_task_responses.go @@ -48,11 +48,9 @@ func NewAddCommentToTaskCreated() *AddCommentToTaskCreated { return &AddCommentToTaskCreated{} } -/* -AddCommentToTaskCreated describes a response with status code 201, with default header values. - -Comment added -*/ +// AddCommentToTaskCreated describes a response with status code 201, with default header values. +// +// Comment added type AddCommentToTaskCreated struct { } @@ -106,11 +104,9 @@ func NewAddCommentToTaskDefault(code int) *AddCommentToTaskDefault { } } -/* -AddCommentToTaskDefault describes a response with status code -1, with default header values. - -Error response -*/ +// AddCommentToTaskDefault describes a response with status code -1, with default header values. +// +// Error response type AddCommentToTaskDefault struct { _statusCode int XErrorCode string @@ -181,13 +177,11 @@ func (o *AddCommentToTaskDefault) readResponse(response runtime.ClientResponse, return nil } -/* -AddCommentToTaskBody A comment to create +// AddCommentToTaskBody A comment to create // // These values can have github flavored markdown. // -swagger:model AddCommentToTaskBody -*/ +// swagger:model AddCommentToTaskBody type AddCommentToTaskBody struct { // content diff --git a/task-tracker/client/tasks/create_task_parameters.go b/task-tracker/client/tasks/create_task_parameters.go index ba9c7875..59868204 100644 --- a/task-tracker/client/tasks/create_task_parameters.go +++ b/task-tracker/client/tasks/create_task_parameters.go @@ -63,10 +63,9 @@ CreateTaskParams contains all the parameters to send to the API endpoint */ type CreateTaskParams struct { - /* Body. - - The task to create - */ + // Body. + // + // The task to create Body *models.Task HTTPClient *http.Client diff --git a/task-tracker/client/tasks/create_task_responses.go b/task-tracker/client/tasks/create_task_responses.go index 804d1baa..8bd83810 100644 --- a/task-tracker/client/tasks/create_task_responses.go +++ b/task-tracker/client/tasks/create_task_responses.go @@ -45,17 +45,14 @@ func NewCreateTaskCreated() *CreateTaskCreated { return &CreateTaskCreated{} } -/* -CreateTaskCreated describes a response with status code 201, with default header values. - -Task created -*/ +// CreateTaskCreated describes a response with status code 201, with default header values. +// +// Task created type CreateTaskCreated struct { - /* URL to the newly added Task - - Format: uri - */ + // URL to the newly added Task + // + // Format: uri Location strfmt.URI } @@ -120,11 +117,9 @@ func NewCreateTaskDefault(code int) *CreateTaskDefault { } } -/* -CreateTaskDefault describes a response with status code -1, with default header values. - -Error response -*/ +// CreateTaskDefault describes a response with status code -1, with default header values. +// +// Error response type CreateTaskDefault struct { _statusCode int XErrorCode string diff --git a/task-tracker/client/tasks/delete_task_parameters.go b/task-tracker/client/tasks/delete_task_parameters.go index 5ad05ebb..0f5add97 100644 --- a/task-tracker/client/tasks/delete_task_parameters.go +++ b/task-tracker/client/tasks/delete_task_parameters.go @@ -63,12 +63,11 @@ DeleteTaskParams contains all the parameters to send to the API endpoint */ type DeleteTaskParams struct { - /* ID. - - The id of the item - - Format: int64 - */ + // ID. + // + // The id of the item + // + // Format: int64 ID int64 HTTPClient *http.Client diff --git a/task-tracker/client/tasks/delete_task_responses.go b/task-tracker/client/tasks/delete_task_responses.go index 8fa49fd0..0a2ec509 100644 --- a/task-tracker/client/tasks/delete_task_responses.go +++ b/task-tracker/client/tasks/delete_task_responses.go @@ -44,11 +44,9 @@ func NewDeleteTaskNoContent() *DeleteTaskNoContent { return &DeleteTaskNoContent{} } -/* -DeleteTaskNoContent describes a response with status code 204, with default header values. - -Task deleted -*/ +// DeleteTaskNoContent describes a response with status code 204, with default header values. +// +// Task deleted type DeleteTaskNoContent struct { } @@ -102,11 +100,9 @@ func NewDeleteTaskDefault(code int) *DeleteTaskDefault { } } -/* -DeleteTaskDefault describes a response with status code -1, with default header values. - -Error response -*/ +// DeleteTaskDefault describes a response with status code -1, with default header values. +// +// Error response type DeleteTaskDefault struct { _statusCode int XErrorCode string diff --git a/task-tracker/client/tasks/get_task_comments_parameters.go b/task-tracker/client/tasks/get_task_comments_parameters.go index 2ed33408..ed431832 100644 --- a/task-tracker/client/tasks/get_task_comments_parameters.go +++ b/task-tracker/client/tasks/get_task_comments_parameters.go @@ -63,29 +63,26 @@ GetTaskCommentsParams contains all the parameters to send to the API endpoint */ type GetTaskCommentsParams struct { - /* ID. - - The id of the item - - Format: int64 - */ + // ID. + // + // The id of the item + // + // Format: int64 ID int64 - /* PageSize. - - Amount of items to return in a single page - - Format: int32 - Default: 20 - */ + // PageSize. + // + // Amount of items to return in a single page + // + // Format: int32 + // Default: 20 PageSize *int32 - /* Since. - - The created time of the oldest seen comment - - Format: date-time - */ + // Since. + // + // The created time of the oldest seen comment + // + // Format: date-time Since *strfmt.DateTime HTTPClient *http.Client diff --git a/task-tracker/client/tasks/get_task_comments_responses.go b/task-tracker/client/tasks/get_task_comments_responses.go index cd9500bd..f1c2bf90 100644 --- a/task-tracker/client/tasks/get_task_comments_responses.go +++ b/task-tracker/client/tasks/get_task_comments_responses.go @@ -44,11 +44,9 @@ func NewGetTaskCommentsOK() *GetTaskCommentsOK { return &GetTaskCommentsOK{} } -/* -GetTaskCommentsOK describes a response with status code 200, with default header values. - -The list of comments -*/ +// GetTaskCommentsOK describes a response with status code 200, with default header values. +// +// The list of comments type GetTaskCommentsOK struct { Payload []*models.Comment } @@ -114,11 +112,9 @@ func NewGetTaskCommentsDefault(code int) *GetTaskCommentsDefault { } } -/* -GetTaskCommentsDefault describes a response with status code -1, with default header values. - -Error response -*/ +// GetTaskCommentsDefault describes a response with status code -1, with default header values. +// +// Error response type GetTaskCommentsDefault struct { _statusCode int XErrorCode string diff --git a/task-tracker/client/tasks/get_task_details_parameters.go b/task-tracker/client/tasks/get_task_details_parameters.go index ec0759e3..a00398a3 100644 --- a/task-tracker/client/tasks/get_task_details_parameters.go +++ b/task-tracker/client/tasks/get_task_details_parameters.go @@ -63,12 +63,11 @@ GetTaskDetailsParams contains all the parameters to send to the API endpoint */ type GetTaskDetailsParams struct { - /* ID. - - The id of the item - - Format: int64 - */ + // ID. + // + // The id of the item + // + // Format: int64 ID int64 HTTPClient *http.Client diff --git a/task-tracker/client/tasks/get_task_details_responses.go b/task-tracker/client/tasks/get_task_details_responses.go index f6671cbb..277448f9 100644 --- a/task-tracker/client/tasks/get_task_details_responses.go +++ b/task-tracker/client/tasks/get_task_details_responses.go @@ -50,11 +50,9 @@ func NewGetTaskDetailsOK() *GetTaskDetailsOK { return &GetTaskDetailsOK{} } -/* -GetTaskDetailsOK describes a response with status code 200, with default header values. - -Task details -*/ +// GetTaskDetailsOK describes a response with status code 200, with default header values. +// +// Task details type GetTaskDetailsOK struct { Payload *models.Task } @@ -120,11 +118,9 @@ func NewGetTaskDetailsUnprocessableEntity() *GetTaskDetailsUnprocessableEntity { return &GetTaskDetailsUnprocessableEntity{} } -/* -GetTaskDetailsUnprocessableEntity describes a response with status code 422, with default header values. - -Validation error -*/ +// GetTaskDetailsUnprocessableEntity describes a response with status code 422, with default header values. +// +// Validation error type GetTaskDetailsUnprocessableEntity struct { Payload *models.ValidationError } @@ -192,11 +188,9 @@ func NewGetTaskDetailsDefault(code int) *GetTaskDetailsDefault { } } -/* -GetTaskDetailsDefault describes a response with status code -1, with default header values. - -Error response -*/ +// GetTaskDetailsDefault describes a response with status code -1, with default header values. +// +// Error response type GetTaskDetailsDefault struct { _statusCode int XErrorCode string diff --git a/task-tracker/client/tasks/list_tasks_parameters.go b/task-tracker/client/tasks/list_tasks_parameters.go index 48224a7e..e61a2ffc 100644 --- a/task-tracker/client/tasks/list_tasks_parameters.go +++ b/task-tracker/client/tasks/list_tasks_parameters.go @@ -64,33 +64,29 @@ ListTasksParams contains all the parameters to send to the API endpoint */ type ListTasksParams struct { - /* PageSize. - - Amount of items to return in a single page - - Format: int32 - Default: 20 - */ + // PageSize. + // + // Amount of items to return in a single page + // + // Format: int32 + // Default: 20 PageSize *int32 - /* SinceID. - - The last id that was seen. - - Format: int64 - */ + // SinceID. + // + // The last id that was seen. + // + // Format: int64 SinceID *int64 - /* Status. - - the status to filter by - */ + // Status. + // + // the status to filter by Status []string - /* Tags. - - the tags to filter by - */ + // Tags. + // + // the tags to filter by Tags []string HTTPClient *http.Client diff --git a/task-tracker/client/tasks/list_tasks_responses.go b/task-tracker/client/tasks/list_tasks_responses.go index 5788ae56..fa8496de 100644 --- a/task-tracker/client/tasks/list_tasks_responses.go +++ b/task-tracker/client/tasks/list_tasks_responses.go @@ -52,17 +52,14 @@ func NewListTasksOK() *ListTasksOK { return &ListTasksOK{} } -/* -ListTasksOK describes a response with status code 200, with default header values. - -Successful response -*/ +// ListTasksOK describes a response with status code 200, with default header values. +// +// Successful response type ListTasksOK struct { - /* the last task id known to the application - - Format: int64 - */ + // the last task id known to the application + // + // Format: int64 XLastTaskID int64 Payload []*models.TaskCard @@ -138,11 +135,9 @@ func NewListTasksUnprocessableEntity() *ListTasksUnprocessableEntity { return &ListTasksUnprocessableEntity{} } -/* -ListTasksUnprocessableEntity describes a response with status code 422, with default header values. - -Validation error -*/ +// ListTasksUnprocessableEntity describes a response with status code 422, with default header values. +// +// Validation error type ListTasksUnprocessableEntity struct { Payload *models.ValidationError } @@ -210,11 +205,9 @@ func NewListTasksDefault(code int) *ListTasksDefault { } } -/* -ListTasksDefault describes a response with status code -1, with default header values. - -Error response -*/ +// ListTasksDefault describes a response with status code -1, with default header values. +// +// Error response type ListTasksDefault struct { _statusCode int XErrorCode string diff --git a/task-tracker/client/tasks/tasks_client.go b/task-tracker/client/tasks/tasks_client.go index b1ad0c79..60211927 100644 --- a/task-tracker/client/tasks/tasks_client.go +++ b/task-tracker/client/tasks/tasks_client.go @@ -43,9 +43,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for tasks API. -*/ +// Client for tasks API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -157,19 +155,16 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* - AddCommentToTaskadds a comment to a task. - - The comment can contain ___github markdown___ syntax. - -Fenced codeblocks etc are supported through pygments. -. - - This method does not support injected context. - However, timeout and opentracing contexts are honored whenever enabled. - - If you need to pass a specific context, use [Client.AddCommentToTaskContext] instead. -*/ +// AddCommentToTask adds a comment to a task. +// +// The comment can contain ___github markdown___ syntax. +// Fenced codeblocks etc are supported through pygments. +// . +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.AddCommentToTaskContext] instead. func (a *Client) AddCommentToTask(params *AddCommentToTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddCommentToTaskCreated, error) { var ctx context.Context if params.inner.ctx != nil { @@ -181,16 +176,13 @@ func (a *Client) AddCommentToTask(params *AddCommentToTaskParams, authInfo runti return a.AddCommentToTaskContext(ctx, params, authInfo, opts...) } -/* - AddCommentToTaskContextadds a comment to a task. - - The comment can contain ___github markdown___ syntax. - -Fenced codeblocks etc are supported through pygments. -. - - Do not use the deprecated [AddCommentToTaskParams.Context] with this method: it would be ignored. -*/ +// AddCommentToTaskContext adds a comment to a task. +// +// The comment can contain ___github markdown___ syntax. +// Fenced codeblocks etc are supported through pygments. +// . +// +// Do not use the deprecated [AddCommentToTaskParams.Context] with this method: it would be ignored. func (a *Client) AddCommentToTaskContext(ctx context.Context, params *AddCommentToTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddCommentToTaskCreated, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -233,20 +225,17 @@ func (a *Client) AddCommentToTaskContext(ctx context.Context, params *AddComment return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* - CreateTaskcreates a task object. - - Allows for creating a task. - -This operation requires authentication so that we know which user -created the task. -. - - This method does not support injected context. - However, timeout and opentracing contexts are honored whenever enabled. - - If you need to pass a specific context, use [Client.CreateTaskContext] instead. -*/ +// CreateTask creates a task object. +// +// Allows for creating a task. +// This operation requires authentication so that we know which user +// created the task. +// . +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.CreateTaskContext] instead. func (a *Client) CreateTask(params *CreateTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTaskCreated, error) { var ctx context.Context if params.inner.ctx != nil { @@ -258,17 +247,14 @@ func (a *Client) CreateTask(params *CreateTaskParams, authInfo runtime.ClientAut return a.CreateTaskContext(ctx, params, authInfo, opts...) } -/* - CreateTaskContextcreates a task object. - - Allows for creating a task. - -This operation requires authentication so that we know which user -created the task. -. - - Do not use the deprecated [CreateTaskParams.Context] with this method: it would be ignored. -*/ +// CreateTaskContext creates a task object. +// +// Allows for creating a task. +// This operation requires authentication so that we know which user +// created the task. +// . +// +// Do not use the deprecated [CreateTaskParams.Context] with this method: it would be ignored. func (a *Client) CreateTaskContext(ctx context.Context, params *CreateTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTaskCreated, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -311,18 +297,15 @@ func (a *Client) CreateTaskContext(ctx context.Context, params *CreateTaskParams return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* - DeleteTaskdeletes a task. - - This is a soft delete and changes the task status to ignored. - -. - - This method does not support injected context. - However, timeout and opentracing contexts are honored whenever enabled. - - If you need to pass a specific context, use [Client.DeleteTaskContext] instead. -*/ +// DeleteTask deletes a task. +// +// This is a soft delete and changes the task status to ignored. +// . +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.DeleteTaskContext] instead. func (a *Client) DeleteTask(params *DeleteTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTaskNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -334,15 +317,12 @@ func (a *Client) DeleteTask(params *DeleteTaskParams, authInfo runtime.ClientAut return a.DeleteTaskContext(ctx, params, authInfo, opts...) } -/* - DeleteTaskContextdeletes a task. - - This is a soft delete and changes the task status to ignored. - -. - - Do not use the deprecated [DeleteTaskParams.Context] with this method: it would be ignored. -*/ +// DeleteTaskContext deletes a task. +// +// This is a soft delete and changes the task status to ignored. +// . +// +// Do not use the deprecated [DeleteTaskParams.Context] with this method: it would be ignored. func (a *Client) DeleteTaskContext(ctx context.Context, params *DeleteTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTaskNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -385,18 +365,15 @@ func (a *Client) DeleteTaskContext(ctx context.Context, params *DeleteTaskParams return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* - GetTaskCommentsgets the comments for a task. - - The comments require a size parameter. - -. - - This method does not support injected context. - However, timeout and opentracing contexts are honored whenever enabled. - - If you need to pass a specific context, use [Client.GetTaskCommentsContext] instead. -*/ +// GetTaskComments gets the comments for a task. +// +// The comments require a size parameter. +// . +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.GetTaskCommentsContext] instead. func (a *Client) GetTaskComments(params *GetTaskCommentsParams, opts ...ClientOption) (*GetTaskCommentsOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -408,15 +385,12 @@ func (a *Client) GetTaskComments(params *GetTaskCommentsParams, opts ...ClientOp return a.GetTaskCommentsContext(ctx, params, opts...) } -/* - GetTaskCommentsContextgets the comments for a task. - - The comments require a size parameter. - -. - - Do not use the deprecated [GetTaskCommentsParams.Context] with this method: it would be ignored. -*/ +// GetTaskCommentsContext gets the comments for a task. +// +// The comments require a size parameter. +// . +// +// Do not use the deprecated [GetTaskCommentsParams.Context] with this method: it would be ignored. func (a *Client) GetTaskCommentsContext(ctx context.Context, params *GetTaskCommentsParams, opts ...ClientOption) (*GetTaskCommentsOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -458,21 +432,18 @@ func (a *Client) GetTaskCommentsContext(ctx context.Context, params *GetTaskComm return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* - GetTaskDetailsgets the details for a task. - - The details view has more information than the card view. - -You can see who reported the issue and who last updated it when. - -There are also comments for each issue. -. - - This method does not support injected context. - However, timeout and opentracing contexts are honored whenever enabled. - - If you need to pass a specific context, use [Client.GetTaskDetailsContext] instead. -*/ +// GetTaskDetails gets the details for a task. +// +// The details view has more information than the card view. +// You can see who reported the issue and who last updated it when. +// +// There are also comments for each issue. +// . +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.GetTaskDetailsContext] instead. func (a *Client) GetTaskDetails(params *GetTaskDetailsParams, opts ...ClientOption) (*GetTaskDetailsOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -484,18 +455,15 @@ func (a *Client) GetTaskDetails(params *GetTaskDetailsParams, opts ...ClientOpti return a.GetTaskDetailsContext(ctx, params, opts...) } -/* - GetTaskDetailsContextgets the details for a task. - - The details view has more information than the card view. - -You can see who reported the issue and who last updated it when. - -There are also comments for each issue. -. - - Do not use the deprecated [GetTaskDetailsParams.Context] with this method: it would be ignored. -*/ +// GetTaskDetailsContext gets the details for a task. +// +// The details view has more information than the card view. +// You can see who reported the issue and who last updated it when. +// +// There are also comments for each issue. +// . +// +// Do not use the deprecated [GetTaskDetailsParams.Context] with this method: it would be ignored. func (a *Client) GetTaskDetailsContext(ctx context.Context, params *GetTaskDetailsParams, opts ...ClientOption) (*GetTaskDetailsOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -537,21 +505,18 @@ func (a *Client) GetTaskDetailsContext(ctx context.Context, params *GetTaskDetai return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* - ListTaskslists the tasks. - - Allows for specifying a number of filter parameters to - -narrow down the results. -Also allows for specifying a **sinceId** and **pageSize** parameter -to page through large result sets. -. - - This method does not support injected context. - However, timeout and opentracing contexts are honored whenever enabled. - - If you need to pass a specific context, use [Client.ListTasksContext] instead. -*/ +// ListTasks lists the tasks. +// +// Allows for specifying a number of filter parameters to +// narrow down the results. +// Also allows for specifying a **sinceId** and **pageSize** parameter +// to page through large result sets. +// . +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.ListTasksContext] instead. func (a *Client) ListTasks(params *ListTasksParams, opts ...ClientOption) (*ListTasksOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -563,18 +528,15 @@ func (a *Client) ListTasks(params *ListTasksParams, opts ...ClientOption) (*List return a.ListTasksContext(ctx, params, opts...) } -/* - ListTasksContextlists the tasks. - - Allows for specifying a number of filter parameters to - -narrow down the results. -Also allows for specifying a **sinceId** and **pageSize** parameter -to page through large result sets. -. - - Do not use the deprecated [ListTasksParams.Context] with this method: it would be ignored. -*/ +// ListTasksContext lists the tasks. +// +// Allows for specifying a number of filter parameters to +// narrow down the results. +// Also allows for specifying a **sinceId** and **pageSize** parameter +// to page through large result sets. +// . +// +// Do not use the deprecated [ListTasksParams.Context] with this method: it would be ignored. func (a *Client) ListTasksContext(ctx context.Context, params *ListTasksParams, opts ...ClientOption) (*ListTasksOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -616,20 +578,17 @@ func (a *Client) ListTasksContext(ctx context.Context, params *ListTasksParams, return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* - UpdateTaskupdates the details for a task. - - Allows for updating a task. - -This operation requires authentication so that we know which user -last updated the task. -. - - This method does not support injected context. - However, timeout and opentracing contexts are honored whenever enabled. - - If you need to pass a specific context, use [Client.UpdateTaskContext] instead. -*/ +// UpdateTask updates the details for a task. +// +// Allows for updating a task. +// This operation requires authentication so that we know which user +// last updated the task. +// . +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.UpdateTaskContext] instead. func (a *Client) UpdateTask(params *UpdateTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTaskOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -641,17 +600,14 @@ func (a *Client) UpdateTask(params *UpdateTaskParams, authInfo runtime.ClientAut return a.UpdateTaskContext(ctx, params, authInfo, opts...) } -/* - UpdateTaskContextupdates the details for a task. - - Allows for updating a task. - -This operation requires authentication so that we know which user -last updated the task. -. - - Do not use the deprecated [UpdateTaskParams.Context] with this method: it would be ignored. -*/ +// UpdateTaskContext updates the details for a task. +// +// Allows for updating a task. +// This operation requires authentication so that we know which user +// last updated the task. +// . +// +// Do not use the deprecated [UpdateTaskParams.Context] with this method: it would be ignored. func (a *Client) UpdateTaskContext(ctx context.Context, params *UpdateTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTaskOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -694,16 +650,14 @@ func (a *Client) UpdateTaskContext(ctx context.Context, params *UpdateTaskParams return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -UploadTaskFileadds a file to a task. - -The file can't be larger than **5MB**. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.UploadTaskFileContext] instead. -*/ +// UploadTaskFile adds a file to a task. +// +// The file can't be larger than **5MB**. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.UploadTaskFileContext] instead. func (a *Client) UploadTaskFile(params *UploadTaskFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadTaskFileCreated, error) { var ctx context.Context if params.inner.ctx != nil { @@ -715,13 +669,11 @@ func (a *Client) UploadTaskFile(params *UploadTaskFileParams, authInfo runtime.C return a.UploadTaskFileContext(ctx, params, authInfo, opts...) } -/* -UploadTaskFileContextadds a file to a task. - -The file can't be larger than **5MB**. - -Do not use the deprecated [UploadTaskFileParams.Context] with this method: it would be ignored. -*/ +// UploadTaskFileContext adds a file to a task. +// +// The file can't be larger than **5MB**. +// +// Do not use the deprecated [UploadTaskFileParams.Context] with this method: it would be ignored. func (a *Client) UploadTaskFileContext(ctx context.Context, params *UploadTaskFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadTaskFileCreated, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/task-tracker/client/tasks/update_task_parameters.go b/task-tracker/client/tasks/update_task_parameters.go index 3d221c63..856dd136 100644 --- a/task-tracker/client/tasks/update_task_parameters.go +++ b/task-tracker/client/tasks/update_task_parameters.go @@ -64,18 +64,16 @@ UpdateTaskParams contains all the parameters to send to the API endpoint */ type UpdateTaskParams struct { - /* Body. - - The task to update - */ + // Body. + // + // The task to update Body *models.Task - /* ID. - - The id of the item - - Format: int64 - */ + // ID. + // + // The id of the item + // + // Format: int64 ID int64 HTTPClient *http.Client diff --git a/task-tracker/client/tasks/update_task_responses.go b/task-tracker/client/tasks/update_task_responses.go index 002f068d..db0a946c 100644 --- a/task-tracker/client/tasks/update_task_responses.go +++ b/task-tracker/client/tasks/update_task_responses.go @@ -50,11 +50,9 @@ func NewUpdateTaskOK() *UpdateTaskOK { return &UpdateTaskOK{} } -/* -UpdateTaskOK describes a response with status code 200, with default header values. - -Task details -*/ +// UpdateTaskOK describes a response with status code 200, with default header values. +// +// Task details type UpdateTaskOK struct { Payload *models.Task } @@ -120,11 +118,9 @@ func NewUpdateTaskUnprocessableEntity() *UpdateTaskUnprocessableEntity { return &UpdateTaskUnprocessableEntity{} } -/* -UpdateTaskUnprocessableEntity describes a response with status code 422, with default header values. - -Validation error -*/ +// UpdateTaskUnprocessableEntity describes a response with status code 422, with default header values. +// +// Validation error type UpdateTaskUnprocessableEntity struct { Payload *models.ValidationError } @@ -192,11 +188,9 @@ func NewUpdateTaskDefault(code int) *UpdateTaskDefault { } } -/* -UpdateTaskDefault describes a response with status code -1, with default header values. - -Error response -*/ +// UpdateTaskDefault describes a response with status code -1, with default header values. +// +// Error response type UpdateTaskDefault struct { _statusCode int XErrorCode string diff --git a/task-tracker/client/tasks/upload_task_file_parameters.go b/task-tracker/client/tasks/upload_task_file_parameters.go index 6ba0e7d9..69183f14 100644 --- a/task-tracker/client/tasks/upload_task_file_parameters.go +++ b/task-tracker/client/tasks/upload_task_file_parameters.go @@ -63,24 +63,21 @@ UploadTaskFileParams contains all the parameters to send to the API endpoint */ type UploadTaskFileParams struct { - /* Description. - - Extra information describing the file - */ + // Description. + // + // Extra information describing the file Description *string - /* File. - - The file to upload - */ + // File. + // + // The file to upload File runtime.NamedReadCloser - /* ID. - - The id of the item - - Format: int64 - */ + // ID. + // + // The id of the item + // + // Format: int64 ID int64 HTTPClient *http.Client diff --git a/task-tracker/client/tasks/upload_task_file_responses.go b/task-tracker/client/tasks/upload_task_file_responses.go index 48582334..437eb1d5 100644 --- a/task-tracker/client/tasks/upload_task_file_responses.go +++ b/task-tracker/client/tasks/upload_task_file_responses.go @@ -44,11 +44,9 @@ func NewUploadTaskFileCreated() *UploadTaskFileCreated { return &UploadTaskFileCreated{} } -/* -UploadTaskFileCreated describes a response with status code 201, with default header values. - -File added -*/ +// UploadTaskFileCreated describes a response with status code 201, with default header values. +// +// File added type UploadTaskFileCreated struct { } @@ -102,11 +100,9 @@ func NewUploadTaskFileDefault(code int) *UploadTaskFileDefault { } } -/* -UploadTaskFileDefault describes a response with status code -1, with default header values. - -Error response -*/ +// UploadTaskFileDefault describes a response with status code -1, with default header values. +// +// Error response type UploadTaskFileDefault struct { _statusCode int XErrorCode string diff --git a/task-tracker/restapi/operations/task_tracker_api.go b/task-tracker/restapi/operations/task_tracker_api.go index 82804ae7..0fa5d2c4 100644 --- a/task-tracker/restapi/operations/task_tracker_api.go +++ b/task-tracker/restapi/operations/task_tracker_api.go @@ -111,14 +111,12 @@ func NewTaskTrackerAPI(spec *loads.Document) *TaskTrackerAPI { } } -/* -TaskTrackerAPI This application implements a very simple issue tracker. -It's implemented as an API which is described by this swagger spec document. - -The go-swagger project uses this specification to test the code generation. -This document contains all possible values for a swagger definition. -This means that it exercises the framework relatively well. -*/ +// TaskTrackerAPI This application implements a very simple issue tracker. +// It's implemented as an API which is described by this swagger spec document. +// +// The go-swagger project uses this specification to test the code generation. +// This document contains all possible values for a swagger definition. +// This means that it exercises the framework relatively well. type TaskTrackerAPI struct { spec *loads.Document context *middleware.Context diff --git a/task-tracker/restapi/operations/tasks/add_comment_to_task.go b/task-tracker/restapi/operations/tasks/add_comment_to_task.go index c1f582ff..6853a0c2 100644 --- a/task-tracker/restapi/operations/tasks/add_comment_to_task.go +++ b/task-tracker/restapi/operations/tasks/add_comment_to_task.go @@ -31,14 +31,12 @@ func NewAddCommentToTask(ctx *middleware.Context, handler AddCommentToTaskHandle return &AddCommentToTask{Context: ctx, Handler: handler} } -/* - AddCommentToTask swagger:route POST /tasks/{id}/comments tasks addCommentToTask - -# Adds a comment to a task - -The comment can contain ___github markdown___ syntax. -Fenced codeblocks etc are supported through pygments. -*/ +// AddCommentToTask swagger:route POST /tasks/{id}/comments tasks addCommentToTask +// +// # Adds a comment to a task +// +// The comment can contain ___github markdown___ syntax. +// Fenced codeblocks etc are supported through pygments. type AddCommentToTask struct { Context *middleware.Context Handler AddCommentToTaskHandler diff --git a/task-tracker/restapi/operations/tasks/add_comment_to_task_parameters.go b/task-tracker/restapi/operations/tasks/add_comment_to_task_parameters.go index 979efb89..13ec7b03 100644 --- a/task-tracker/restapi/operations/tasks/add_comment_to_task_parameters.go +++ b/task-tracker/restapi/operations/tasks/add_comment_to_task_parameters.go @@ -28,16 +28,12 @@ func NewAddCommentToTaskParams() AddCommentToTaskParams { type AddCommentToTaskParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The comment to add - In: body - */ + // The comment to add + // In: body Body AddCommentToTaskBody - - /*The id of the item - Required: true - In: path - */ + // The id of the item + // Required: true + // In: path ID int64 } diff --git a/task-tracker/restapi/operations/tasks/add_comment_to_task_responses.go b/task-tracker/restapi/operations/tasks/add_comment_to_task_responses.go index 39549cea..cd4aa1d4 100644 --- a/task-tracker/restapi/operations/tasks/add_comment_to_task_responses.go +++ b/task-tracker/restapi/operations/tasks/add_comment_to_task_responses.go @@ -12,11 +12,9 @@ import ( // AddCommentToTaskCreatedCode is the HTTP code returned for type AddCommentToTaskCreated const AddCommentToTaskCreatedCode int = 201 -/* -AddCommentToTaskCreated Comment added - -swagger:response addCommentToTaskCreated -*/ +// AddCommentToTaskCreated Comment added +// +// swagger:response addCommentToTaskCreated type AddCommentToTaskCreated struct { } @@ -34,21 +32,15 @@ func (o *AddCommentToTaskCreated) WriteResponse(rw http.ResponseWriter, producer rw.WriteHeader(201) } -/* -AddCommentToTaskDefault Error response - -swagger:response addCommentToTaskDefault -*/ +// AddCommentToTaskDefault Error response +// +// swagger:response addCommentToTaskDefault type AddCommentToTaskDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/task-tracker/restapi/operations/tasks/create_task.go b/task-tracker/restapi/operations/tasks/create_task.go index cd106495..96870eb2 100644 --- a/task-tracker/restapi/operations/tasks/create_task.go +++ b/task-tracker/restapi/operations/tasks/create_task.go @@ -26,15 +26,13 @@ func NewCreateTask(ctx *middleware.Context, handler CreateTaskHandler) *CreateTa return &CreateTask{Context: ctx, Handler: handler} } -/* - CreateTask swagger:route POST /tasks tasks createTask - -Creates a 'Task' object. - -Allows for creating a task. -This operation requires authentication so that we know which user -created the task. -*/ +// CreateTask swagger:route POST /tasks tasks createTask +// +// Creates a 'Task' object. +// +// Allows for creating a task. +// This operation requires authentication so that we know which user +// created the task. type CreateTask struct { Context *middleware.Context Handler CreateTaskHandler diff --git a/task-tracker/restapi/operations/tasks/create_task_parameters.go b/task-tracker/restapi/operations/tasks/create_task_parameters.go index e393db63..1fae3872 100644 --- a/task-tracker/restapi/operations/tasks/create_task_parameters.go +++ b/task-tracker/restapi/operations/tasks/create_task_parameters.go @@ -29,11 +29,9 @@ func NewCreateTaskParams() CreateTaskParams { type CreateTaskParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The task to create - Required: true - In: body - */ + // The task to create + // Required: true + // In: body Body *models.Task } diff --git a/task-tracker/restapi/operations/tasks/create_task_responses.go b/task-tracker/restapi/operations/tasks/create_task_responses.go index 59e564d2..a4075134 100644 --- a/task-tracker/restapi/operations/tasks/create_task_responses.go +++ b/task-tracker/restapi/operations/tasks/create_task_responses.go @@ -13,15 +13,12 @@ import ( // CreateTaskCreatedCode is the HTTP code returned for type CreateTaskCreated const CreateTaskCreatedCode int = 201 -/* -CreateTaskCreated Task created - -swagger:response createTaskCreated -*/ +// CreateTaskCreated Task created +// +// swagger:response createTaskCreated type CreateTaskCreated struct { - /*URL to the newly added Task - */ + // URL to the newly added Task Location strfmt.URI `json:"Location"` } @@ -57,21 +54,15 @@ func (o *CreateTaskCreated) WriteResponse(rw http.ResponseWriter, producer runti rw.WriteHeader(201) } -/* -CreateTaskDefault Error response - -swagger:response createTaskDefault -*/ +// CreateTaskDefault Error response +// +// swagger:response createTaskDefault type CreateTaskDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/task-tracker/restapi/operations/tasks/delete_task.go b/task-tracker/restapi/operations/tasks/delete_task.go index ddef6fa7..de3c2d8c 100644 --- a/task-tracker/restapi/operations/tasks/delete_task.go +++ b/task-tracker/restapi/operations/tasks/delete_task.go @@ -26,13 +26,11 @@ func NewDeleteTask(ctx *middleware.Context, handler DeleteTaskHandler) *DeleteTa return &DeleteTask{Context: ctx, Handler: handler} } -/* - DeleteTask swagger:route DELETE /tasks/{id} tasks deleteTask - -Deletes a task. - -This is a soft delete and changes the task status to ignored. -*/ +// DeleteTask swagger:route DELETE /tasks/{id} tasks deleteTask +// +// Deletes a task. +// +// This is a soft delete and changes the task status to ignored. type DeleteTask struct { Context *middleware.Context Handler DeleteTaskHandler diff --git a/task-tracker/restapi/operations/tasks/delete_task_parameters.go b/task-tracker/restapi/operations/tasks/delete_task_parameters.go index afc9e885..6e533724 100644 --- a/task-tracker/restapi/operations/tasks/delete_task_parameters.go +++ b/task-tracker/restapi/operations/tasks/delete_task_parameters.go @@ -26,11 +26,9 @@ func NewDeleteTaskParams() DeleteTaskParams { type DeleteTaskParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The id of the item - Required: true - In: path - */ + // The id of the item + // Required: true + // In: path ID int64 } diff --git a/task-tracker/restapi/operations/tasks/delete_task_responses.go b/task-tracker/restapi/operations/tasks/delete_task_responses.go index 239c3d2c..000bdb36 100644 --- a/task-tracker/restapi/operations/tasks/delete_task_responses.go +++ b/task-tracker/restapi/operations/tasks/delete_task_responses.go @@ -12,11 +12,9 @@ import ( // DeleteTaskNoContentCode is the HTTP code returned for type DeleteTaskNoContent const DeleteTaskNoContentCode int = 204 -/* -DeleteTaskNoContent Task deleted - -swagger:response deleteTaskNoContent -*/ +// DeleteTaskNoContent Task deleted +// +// swagger:response deleteTaskNoContent type DeleteTaskNoContent struct { } @@ -34,21 +32,15 @@ func (o *DeleteTaskNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DeleteTaskDefault Error response - -swagger:response deleteTaskDefault -*/ +// DeleteTaskDefault Error response +// +// swagger:response deleteTaskDefault type DeleteTaskDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/task-tracker/restapi/operations/tasks/get_task_comments.go b/task-tracker/restapi/operations/tasks/get_task_comments.go index 1cbda65a..32a9d3e9 100644 --- a/task-tracker/restapi/operations/tasks/get_task_comments.go +++ b/task-tracker/restapi/operations/tasks/get_task_comments.go @@ -26,13 +26,11 @@ func NewGetTaskComments(ctx *middleware.Context, handler GetTaskCommentsHandler) return &GetTaskComments{Context: ctx, Handler: handler} } -/* - GetTaskComments swagger:route GET /tasks/{id}/comments tasks getTaskComments - -# Gets the comments for a task - -The comments require a size parameter. -*/ +// GetTaskComments swagger:route GET /tasks/{id}/comments tasks getTaskComments +// +// # Gets the comments for a task +// +// The comments require a size parameter. type GetTaskComments struct { Context *middleware.Context Handler GetTaskCommentsHandler diff --git a/task-tracker/restapi/operations/tasks/get_task_comments_parameters.go b/task-tracker/restapi/operations/tasks/get_task_comments_parameters.go index 5e373161..7256d1bd 100644 --- a/task-tracker/restapi/operations/tasks/get_task_comments_parameters.go +++ b/task-tracker/restapi/operations/tasks/get_task_comments_parameters.go @@ -35,22 +35,16 @@ func NewGetTaskCommentsParams() GetTaskCommentsParams { type GetTaskCommentsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The id of the item - Required: true - In: path - */ + // The id of the item + // Required: true + // In: path ID int64 - - /*Amount of items to return in a single page - In: query - Default: 20 - */ + // Amount of items to return in a single page + // In: query + // Default: 20 PageSize *int32 - - /*The created time of the oldest seen comment - In: query - */ + // The created time of the oldest seen comment + // In: query Since *strfmt.DateTime } diff --git a/task-tracker/restapi/operations/tasks/get_task_comments_responses.go b/task-tracker/restapi/operations/tasks/get_task_comments_responses.go index b77e69af..426ecd5d 100644 --- a/task-tracker/restapi/operations/tasks/get_task_comments_responses.go +++ b/task-tracker/restapi/operations/tasks/get_task_comments_responses.go @@ -12,16 +12,12 @@ import ( // GetTaskCommentsOKCode is the HTTP code returned for type GetTaskCommentsOK const GetTaskCommentsOKCode int = 200 -/* -GetTaskCommentsOK The list of comments - -swagger:response getTaskCommentsOK -*/ +// GetTaskCommentsOK The list of comments +// +// swagger:response getTaskCommentsOK type GetTaskCommentsOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Comment `json:"body,omitempty"` } @@ -57,21 +53,15 @@ func (o *GetTaskCommentsOK) WriteResponse(rw http.ResponseWriter, producer runti } } -/* -GetTaskCommentsDefault Error response - -swagger:response getTaskCommentsDefault -*/ +// GetTaskCommentsDefault Error response +// +// swagger:response getTaskCommentsDefault type GetTaskCommentsDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/task-tracker/restapi/operations/tasks/get_task_details.go b/task-tracker/restapi/operations/tasks/get_task_details.go index d332d256..1e5f897a 100644 --- a/task-tracker/restapi/operations/tasks/get_task_details.go +++ b/task-tracker/restapi/operations/tasks/get_task_details.go @@ -26,16 +26,14 @@ func NewGetTaskDetails(ctx *middleware.Context, handler GetTaskDetailsHandler) * return &GetTaskDetails{Context: ctx, Handler: handler} } -/* - GetTaskDetails swagger:route GET /tasks/{id} tasks getTaskDetails - -Gets the details for a task. - -The details view has more information than the card view. -You can see who reported the issue and who last updated it when. - -There are also comments for each issue. -*/ +// GetTaskDetails swagger:route GET /tasks/{id} tasks getTaskDetails +// +// Gets the details for a task. +// +// The details view has more information than the card view. +// You can see who reported the issue and who last updated it when. +// +// There are also comments for each issue. type GetTaskDetails struct { Context *middleware.Context Handler GetTaskDetailsHandler diff --git a/task-tracker/restapi/operations/tasks/get_task_details_parameters.go b/task-tracker/restapi/operations/tasks/get_task_details_parameters.go index 7610471e..729137a2 100644 --- a/task-tracker/restapi/operations/tasks/get_task_details_parameters.go +++ b/task-tracker/restapi/operations/tasks/get_task_details_parameters.go @@ -26,11 +26,9 @@ func NewGetTaskDetailsParams() GetTaskDetailsParams { type GetTaskDetailsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The id of the item - Required: true - In: path - */ + // The id of the item + // Required: true + // In: path ID int64 } diff --git a/task-tracker/restapi/operations/tasks/get_task_details_responses.go b/task-tracker/restapi/operations/tasks/get_task_details_responses.go index bc813edb..0d77171d 100644 --- a/task-tracker/restapi/operations/tasks/get_task_details_responses.go +++ b/task-tracker/restapi/operations/tasks/get_task_details_responses.go @@ -12,16 +12,12 @@ import ( // GetTaskDetailsOKCode is the HTTP code returned for type GetTaskDetailsOK const GetTaskDetailsOKCode int = 200 -/* -GetTaskDetailsOK Task details - -swagger:response getTaskDetailsOK -*/ +// GetTaskDetailsOK Task details +// +// swagger:response getTaskDetailsOK type GetTaskDetailsOK struct { - /* - In: Body - */ + // In: Body Payload *models.Task `json:"body,omitempty"` } @@ -57,16 +53,12 @@ func (o *GetTaskDetailsOK) WriteResponse(rw http.ResponseWriter, producer runtim // GetTaskDetailsUnprocessableEntityCode is the HTTP code returned for type GetTaskDetailsUnprocessableEntity const GetTaskDetailsUnprocessableEntityCode int = 422 -/* -GetTaskDetailsUnprocessableEntity Validation error - -swagger:response getTaskDetailsUnprocessableEntity -*/ +// GetTaskDetailsUnprocessableEntity Validation error +// +// swagger:response getTaskDetailsUnprocessableEntity type GetTaskDetailsUnprocessableEntity struct { - /* - In: Body - */ + // In: Body Payload *models.ValidationError `json:"body,omitempty"` } @@ -99,21 +91,15 @@ func (o *GetTaskDetailsUnprocessableEntity) WriteResponse(rw http.ResponseWriter } } -/* -GetTaskDetailsDefault Error response - -swagger:response getTaskDetailsDefault -*/ +// GetTaskDetailsDefault Error response +// +// swagger:response getTaskDetailsDefault type GetTaskDetailsDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/task-tracker/restapi/operations/tasks/list_tasks.go b/task-tracker/restapi/operations/tasks/list_tasks.go index 82843cb9..19585339 100644 --- a/task-tracker/restapi/operations/tasks/list_tasks.go +++ b/task-tracker/restapi/operations/tasks/list_tasks.go @@ -26,16 +26,14 @@ func NewListTasks(ctx *middleware.Context, handler ListTasksHandler) *ListTasks return &ListTasks{Context: ctx, Handler: handler} } -/* - ListTasks swagger:route GET /tasks tasks listTasks - -# Lists the tasks - -Allows for specifying a number of filter parameters to -narrow down the results. -Also allows for specifying a **sinceId** and **pageSize** parameter -to page through large result sets. -*/ +// ListTasks swagger:route GET /tasks tasks listTasks +// +// # Lists the tasks +// +// Allows for specifying a number of filter parameters to +// narrow down the results. +// Also allows for specifying a **sinceId** and **pageSize** parameter +// to page through large result sets. type ListTasks struct { Context *middleware.Context Handler ListTasksHandler diff --git a/task-tracker/restapi/operations/tasks/list_tasks_parameters.go b/task-tracker/restapi/operations/tasks/list_tasks_parameters.go index ff5cbcd3..8c9d1833 100644 --- a/task-tracker/restapi/operations/tasks/list_tasks_parameters.go +++ b/task-tracker/restapi/operations/tasks/list_tasks_parameters.go @@ -37,29 +37,21 @@ func NewListTasksParams() ListTasksParams { type ListTasksParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Amount of items to return in a single page - In: query - Default: 20 - */ + // Amount of items to return in a single page + // In: query + // Default: 20 PageSize *int32 - - /*The last id that was seen. - In: query - */ + // The last id that was seen. + // In: query SinceID *int64 - - /*the status to filter by - Unique: true - In: query - Collection Format: pipes - */ + // the status to filter by + // Unique: true + // In: query + // Collection Format: pipes Status []string - - /*the tags to filter by - Unique: true - In: query - */ + // the tags to filter by + // Unique: true + // In: query Tags []string } diff --git a/task-tracker/restapi/operations/tasks/list_tasks_responses.go b/task-tracker/restapi/operations/tasks/list_tasks_responses.go index 0aa6b1dc..165045d7 100644 --- a/task-tracker/restapi/operations/tasks/list_tasks_responses.go +++ b/task-tracker/restapi/operations/tasks/list_tasks_responses.go @@ -13,20 +13,15 @@ import ( // ListTasksOKCode is the HTTP code returned for type ListTasksOK const ListTasksOKCode int = 200 -/* -ListTasksOK Successful response - -swagger:response listTasksOK -*/ +// ListTasksOK Successful response +// +// swagger:response listTasksOK type ListTasksOK struct { - /*the last task id known to the application - */ + // the last task id known to the application XLastTaskID int64 `json:"X-Last-Task-Id"` - /* - In: Body - */ + // In: Body Payload []*models.TaskCard `json:"body,omitempty"` } @@ -83,16 +78,12 @@ func (o *ListTasksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro // ListTasksUnprocessableEntityCode is the HTTP code returned for type ListTasksUnprocessableEntity const ListTasksUnprocessableEntityCode int = 422 -/* -ListTasksUnprocessableEntity Validation error - -swagger:response listTasksUnprocessableEntity -*/ +// ListTasksUnprocessableEntity Validation error +// +// swagger:response listTasksUnprocessableEntity type ListTasksUnprocessableEntity struct { - /* - In: Body - */ + // In: Body Payload *models.ValidationError `json:"body,omitempty"` } @@ -125,21 +116,15 @@ func (o *ListTasksUnprocessableEntity) WriteResponse(rw http.ResponseWriter, pro } } -/* -ListTasksDefault Error response - -swagger:response listTasksDefault -*/ +// ListTasksDefault Error response +// +// swagger:response listTasksDefault type ListTasksDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/task-tracker/restapi/operations/tasks/update_task.go b/task-tracker/restapi/operations/tasks/update_task.go index 83b04f95..3a13ce9e 100644 --- a/task-tracker/restapi/operations/tasks/update_task.go +++ b/task-tracker/restapi/operations/tasks/update_task.go @@ -26,15 +26,13 @@ func NewUpdateTask(ctx *middleware.Context, handler UpdateTaskHandler) *UpdateTa return &UpdateTask{Context: ctx, Handler: handler} } -/* - UpdateTask swagger:route PUT /tasks/{id} tasks updateTask - -Updates the details for a task. - -Allows for updating a task. -This operation requires authentication so that we know which user -last updated the task. -*/ +// UpdateTask swagger:route PUT /tasks/{id} tasks updateTask +// +// Updates the details for a task. +// +// Allows for updating a task. +// This operation requires authentication so that we know which user +// last updated the task. type UpdateTask struct { Context *middleware.Context Handler UpdateTaskHandler diff --git a/task-tracker/restapi/operations/tasks/update_task_parameters.go b/task-tracker/restapi/operations/tasks/update_task_parameters.go index 4a677f9e..610c33ea 100644 --- a/task-tracker/restapi/operations/tasks/update_task_parameters.go +++ b/task-tracker/restapi/operations/tasks/update_task_parameters.go @@ -31,17 +31,13 @@ func NewUpdateTaskParams() UpdateTaskParams { type UpdateTaskParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*The task to update - Required: true - In: body - */ + // The task to update + // Required: true + // In: body Body *models.Task - - /*The id of the item - Required: true - In: path - */ + // The id of the item + // Required: true + // In: path ID int64 } diff --git a/task-tracker/restapi/operations/tasks/update_task_responses.go b/task-tracker/restapi/operations/tasks/update_task_responses.go index 9aad70b7..2e6ef82d 100644 --- a/task-tracker/restapi/operations/tasks/update_task_responses.go +++ b/task-tracker/restapi/operations/tasks/update_task_responses.go @@ -12,16 +12,12 @@ import ( // UpdateTaskOKCode is the HTTP code returned for type UpdateTaskOK const UpdateTaskOKCode int = 200 -/* -UpdateTaskOK Task details - -swagger:response updateTaskOK -*/ +// UpdateTaskOK Task details +// +// swagger:response updateTaskOK type UpdateTaskOK struct { - /* - In: Body - */ + // In: Body Payload *models.Task `json:"body,omitempty"` } @@ -57,16 +53,12 @@ func (o *UpdateTaskOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pr // UpdateTaskUnprocessableEntityCode is the HTTP code returned for type UpdateTaskUnprocessableEntity const UpdateTaskUnprocessableEntityCode int = 422 -/* -UpdateTaskUnprocessableEntity Validation error - -swagger:response updateTaskUnprocessableEntity -*/ +// UpdateTaskUnprocessableEntity Validation error +// +// swagger:response updateTaskUnprocessableEntity type UpdateTaskUnprocessableEntity struct { - /* - In: Body - */ + // In: Body Payload *models.ValidationError `json:"body,omitempty"` } @@ -99,21 +91,15 @@ func (o *UpdateTaskUnprocessableEntity) WriteResponse(rw http.ResponseWriter, pr } } -/* -UpdateTaskDefault Error response - -swagger:response updateTaskDefault -*/ +// UpdateTaskDefault Error response +// +// swagger:response updateTaskDefault type UpdateTaskDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/task-tracker/restapi/operations/tasks/upload_task_file.go b/task-tracker/restapi/operations/tasks/upload_task_file.go index 3df2a302..05c0f517 100644 --- a/task-tracker/restapi/operations/tasks/upload_task_file.go +++ b/task-tracker/restapi/operations/tasks/upload_task_file.go @@ -26,13 +26,11 @@ func NewUploadTaskFile(ctx *middleware.Context, handler UploadTaskFileHandler) * return &UploadTaskFile{Context: ctx, Handler: handler} } -/* - UploadTaskFile swagger:route POST /tasks/{id}/files tasks uploadTaskFile - -Adds a file to a task. - -The file can't be larger than **5MB** -*/ +// UploadTaskFile swagger:route POST /tasks/{id}/files tasks uploadTaskFile +// +// Adds a file to a task. +// +// The file can't be larger than **5MB** type UploadTaskFile struct { Context *middleware.Context Handler UploadTaskFileHandler diff --git a/task-tracker/restapi/operations/tasks/upload_task_file_parameters.go b/task-tracker/restapi/operations/tasks/upload_task_file_parameters.go index 0e94c199..a38c08c6 100644 --- a/task-tracker/restapi/operations/tasks/upload_task_file_parameters.go +++ b/task-tracker/restapi/operations/tasks/upload_task_file_parameters.go @@ -41,21 +41,15 @@ func NewUploadTaskFileParams() UploadTaskFileParams { type UploadTaskFileParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*Extra information describing the file - In: formData - */ + // Extra information describing the file + // In: formData Description *string - - /*The file to upload - In: formData - */ + // The file to upload + // In: formData File io.ReadCloser - - /*The id of the item - Required: true - In: path - */ + // The id of the item + // Required: true + // In: path ID int64 } diff --git a/task-tracker/restapi/operations/tasks/upload_task_file_responses.go b/task-tracker/restapi/operations/tasks/upload_task_file_responses.go index 50bf8cc3..edcf3d4e 100644 --- a/task-tracker/restapi/operations/tasks/upload_task_file_responses.go +++ b/task-tracker/restapi/operations/tasks/upload_task_file_responses.go @@ -12,11 +12,9 @@ import ( // UploadTaskFileCreatedCode is the HTTP code returned for type UploadTaskFileCreated const UploadTaskFileCreatedCode int = 201 -/* -UploadTaskFileCreated File added - -swagger:response uploadTaskFileCreated -*/ +// UploadTaskFileCreated File added +// +// swagger:response uploadTaskFileCreated type UploadTaskFileCreated struct { } @@ -34,21 +32,15 @@ func (o *UploadTaskFileCreated) WriteResponse(rw http.ResponseWriter, producer r rw.WriteHeader(201) } -/* -UploadTaskFileDefault Error response - -swagger:response uploadTaskFileDefault -*/ +// UploadTaskFileDefault Error response +// +// swagger:response uploadTaskFileDefault type UploadTaskFileDefault struct { _statusCode int - /* - */ XErrorCode string `json:"X-Error-Code"` - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-errors/restapi/operations/todo_list_api.go b/todo-list-errors/restapi/operations/todo_list_api.go index ec71a395..3c47df12 100644 --- a/todo-list-errors/restapi/operations/todo_list_api.go +++ b/todo-list-errors/restapi/operations/todo_list_api.go @@ -66,11 +66,9 @@ func NewTodoListAPI(spec *loads.Document) *TodoListAPI { } } -/* -TodoListAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// TodoListAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type TodoListAPI struct { spec *loads.Document context *middleware.Context diff --git a/todo-list-errors/restapi/operations/todos/add_one.go b/todo-list-errors/restapi/operations/todos/add_one.go index 3bcd201b..1412d89d 100644 --- a/todo-list-errors/restapi/operations/todos/add_one.go +++ b/todo-list-errors/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/todo-list-errors/restapi/operations/todos/add_one_parameters.go b/todo-list-errors/restapi/operations/todos/add_one_parameters.go index 4f739be0..61f51106 100644 --- a/todo-list-errors/restapi/operations/todos/add_one_parameters.go +++ b/todo-list-errors/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/todo-list-errors/restapi/operations/todos/add_one_responses.go b/todo-list-errors/restapi/operations/todos/add_one_responses.go index 78cdfd4c..f0205955 100644 --- a/todo-list-errors/restapi/operations/todos/add_one_responses.go +++ b/todo-list-errors/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-errors/restapi/operations/todos/destroy_one.go b/todo-list-errors/restapi/operations/todos/destroy_one.go index c23509ca..7f6e1199 100644 --- a/todo-list-errors/restapi/operations/todos/destroy_one.go +++ b/todo-list-errors/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/todo-list-errors/restapi/operations/todos/destroy_one_parameters.go b/todo-list-errors/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/todo-list-errors/restapi/operations/todos/destroy_one_parameters.go +++ b/todo-list-errors/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/todo-list-errors/restapi/operations/todos/destroy_one_responses.go b/todo-list-errors/restapi/operations/todos/destroy_one_responses.go index 9e3ceff1..1b9e51c9 100644 --- a/todo-list-errors/restapi/operations/todos/destroy_one_responses.go +++ b/todo-list-errors/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-errors/restapi/operations/todos/find.go b/todo-list-errors/restapi/operations/todos/find.go index 912a83f7..5499b1df 100644 --- a/todo-list-errors/restapi/operations/todos/find.go +++ b/todo-list-errors/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/todo-list-errors/restapi/operations/todos/find_parameters.go b/todo-list-errors/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/todo-list-errors/restapi/operations/todos/find_parameters.go +++ b/todo-list-errors/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/todo-list-errors/restapi/operations/todos/find_responses.go b/todo-list-errors/restapi/operations/todos/find_responses.go index 5a763663..5108728a 100644 --- a/todo-list-errors/restapi/operations/todos/find_responses.go +++ b/todo-list-errors/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-errors/restapi/operations/todos/update_one.go b/todo-list-errors/restapi/operations/todos/update_one.go index e2d8f656..da9bee40 100644 --- a/todo-list-errors/restapi/operations/todos/update_one.go +++ b/todo-list-errors/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/todo-list-errors/restapi/operations/todos/update_one_parameters.go b/todo-list-errors/restapi/operations/todos/update_one_parameters.go index 75376f73..468645b8 100644 --- a/todo-list-errors/restapi/operations/todos/update_one_parameters.go +++ b/todo-list-errors/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/todo-list-errors/restapi/operations/todos/update_one_responses.go b/todo-list-errors/restapi/operations/todos/update_one_responses.go index 65976354..26fda512 100644 --- a/todo-list-errors/restapi/operations/todos/update_one_responses.go +++ b/todo-list-errors/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-strict/client/todos/add_one_responses.go b/todo-list-strict/client/todos/add_one_responses.go index d348b7e7..74193c28 100644 --- a/todo-list-strict/client/todos/add_one_responses.go +++ b/todo-list-strict/client/todos/add_one_responses.go @@ -44,11 +44,9 @@ func NewAddOneCreated() *AddOneCreated { return &AddOneCreated{} } -/* -AddOneCreated describes a response with status code 201, with default header values. - -Created -*/ +// AddOneCreated describes a response with status code 201, with default header values. +// +// Created type AddOneCreated struct { Payload *models.Item } @@ -116,11 +114,9 @@ func NewAddOneDefault(code int) *AddOneDefault { } } -/* -AddOneDefault describes a response with status code -1, with default header values. - -error -*/ +// AddOneDefault describes a response with status code -1, with default header values. +// +// error type AddOneDefault struct { _statusCode int diff --git a/todo-list-strict/client/todos/destroy_one_responses.go b/todo-list-strict/client/todos/destroy_one_responses.go index b0d92c4f..e9398f85 100644 --- a/todo-list-strict/client/todos/destroy_one_responses.go +++ b/todo-list-strict/client/todos/destroy_one_responses.go @@ -44,11 +44,9 @@ func NewDestroyOneNoContent() *DestroyOneNoContent { return &DestroyOneNoContent{} } -/* -DestroyOneNoContent describes a response with status code 204, with default header values. - -Deleted -*/ +// DestroyOneNoContent describes a response with status code 204, with default header values. +// +// Deleted type DestroyOneNoContent struct { } @@ -102,11 +100,9 @@ func NewDestroyOneDefault(code int) *DestroyOneDefault { } } -/* -DestroyOneDefault describes a response with status code -1, with default header values. - -error -*/ +// DestroyOneDefault describes a response with status code -1, with default header values. +// +// error type DestroyOneDefault struct { _statusCode int diff --git a/todo-list-strict/client/todos/find_responses.go b/todo-list-strict/client/todos/find_responses.go index 836e82b2..628db7e3 100644 --- a/todo-list-strict/client/todos/find_responses.go +++ b/todo-list-strict/client/todos/find_responses.go @@ -44,11 +44,9 @@ func NewFindOK() *FindOK { return &FindOK{} } -/* -FindOK describes a response with status code 200, with default header values. - -OK -*/ +// FindOK describes a response with status code 200, with default header values. +// +// OK type FindOK struct { Payload []*models.Item } @@ -114,11 +112,9 @@ func NewFindDefault(code int) *FindDefault { } } -/* -FindDefault describes a response with status code -1, with default header values. - -error -*/ +// FindDefault describes a response with status code -1, with default header values. +// +// error type FindDefault struct { _statusCode int diff --git a/todo-list-strict/client/todos/todos_client.go b/todo-list-strict/client/todos/todos_client.go index 6eb9bb20..7fb04c73 100644 --- a/todo-list-strict/client/todos/todos_client.go +++ b/todo-list-strict/client/todos/todos_client.go @@ -43,9 +43,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for todos API. -*/ +// Client for todos API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -119,14 +117,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -AddOneadd one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.AddOneContext] instead. -*/ +// AddOne add one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.AddOneContext] instead. func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error) { var ctx context.Context if params.inner.ctx != nil { @@ -138,11 +134,9 @@ func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWri return a.AddOneContext(ctx, params, authInfo, opts...) } -/* -AddOneContextadd one API. - -Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. -*/ +// AddOneContext add one API. +// +// Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -185,14 +179,12 @@ func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authIn return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -DestroyOnedestroy one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.DestroyOneContext] instead. -*/ +// DestroyOne destroy one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.DestroyOneContext] instead. func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -204,11 +196,9 @@ func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAut return a.DestroyOneContext(ctx, params, authInfo, opts...) } -/* -DestroyOneContextdestroy one API. - -Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. -*/ +// DestroyOneContext destroy one API. +// +// Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -251,14 +241,12 @@ func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -Findfind API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.FindContext] instead. -*/ +// Find find API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.FindContext] instead. func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -270,11 +258,9 @@ func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, return a.FindContext(ctx, params, authInfo, opts...) } -/* -FindContextfind API. - -Do not use the deprecated [FindParams.Context] with this method: it would be ignored. -*/ +// FindContext find API. +// +// Do not use the deprecated [FindParams.Context] with this method: it would be ignored. func (a *Client) FindContext(ctx context.Context, params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -317,14 +303,12 @@ func (a *Client) FindContext(ctx context.Context, params *FindParams, authInfo r return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -UpdateOneupdate one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.UpdateOneContext] instead. -*/ +// UpdateOne update one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.UpdateOneContext] instead. func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -336,11 +320,9 @@ func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthI return a.UpdateOneContext(ctx, params, authInfo, opts...) } -/* -UpdateOneContextupdate one API. - -Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. -*/ +// UpdateOneContext update one API. +// +// Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. func (a *Client) UpdateOneContext(ctx context.Context, params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/todo-list-strict/client/todos/update_one_responses.go b/todo-list-strict/client/todos/update_one_responses.go index f4fbc68d..0e90c72e 100644 --- a/todo-list-strict/client/todos/update_one_responses.go +++ b/todo-list-strict/client/todos/update_one_responses.go @@ -44,11 +44,9 @@ func NewUpdateOneOK() *UpdateOneOK { return &UpdateOneOK{} } -/* -UpdateOneOK describes a response with status code 200, with default header values. - -OK -*/ +// UpdateOneOK describes a response with status code 200, with default header values. +// +// OK type UpdateOneOK struct { Payload *models.Item } @@ -116,11 +114,9 @@ func NewUpdateOneDefault(code int) *UpdateOneDefault { } } -/* -UpdateOneDefault describes a response with status code -1, with default header values. - -error -*/ +// UpdateOneDefault describes a response with status code -1, with default header values. +// +// error type UpdateOneDefault struct { _statusCode int diff --git a/todo-list-strict/restapi/operations/simple_to_do_list_api_api.go b/todo-list-strict/restapi/operations/simple_to_do_list_api_api.go index 64a33321..2d9da6d0 100644 --- a/todo-list-strict/restapi/operations/simple_to_do_list_api_api.go +++ b/todo-list-strict/restapi/operations/simple_to_do_list_api_api.go @@ -79,11 +79,9 @@ func NewSimpleToDoListAPIAPI(spec *loads.Document) *SimpleToDoListAPIAPI { } } -/* -SimpleToDoListAPIAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// SimpleToDoListAPIAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type SimpleToDoListAPIAPI struct { spec *loads.Document context *middleware.Context diff --git a/todo-list-strict/restapi/operations/todos/add_one.go b/todo-list-strict/restapi/operations/todos/add_one.go index e40133bf..cade1cad 100644 --- a/todo-list-strict/restapi/operations/todos/add_one.go +++ b/todo-list-strict/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/todo-list-strict/restapi/operations/todos/add_one_parameters.go b/todo-list-strict/restapi/operations/todos/add_one_parameters.go index 3b22b939..f688d8aa 100644 --- a/todo-list-strict/restapi/operations/todos/add_one_parameters.go +++ b/todo-list-strict/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/todo-list-strict/restapi/operations/todos/add_one_responses.go b/todo-list-strict/restapi/operations/todos/add_one_responses.go index 3fbcf247..32f5fa3e 100644 --- a/todo-list-strict/restapi/operations/todos/add_one_responses.go +++ b/todo-list-strict/restapi/operations/todos/add_one_responses.go @@ -13,16 +13,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P func (o *AddOneCreated) AddOneResponder() {} -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-strict/restapi/operations/todos/destroy_one.go b/todo-list-strict/restapi/operations/todos/destroy_one.go index 363e8775..cc427074 100644 --- a/todo-list-strict/restapi/operations/todos/destroy_one.go +++ b/todo-list-strict/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/todo-list-strict/restapi/operations/todos/destroy_one_parameters.go b/todo-list-strict/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/todo-list-strict/restapi/operations/todos/destroy_one_parameters.go +++ b/todo-list-strict/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/todo-list-strict/restapi/operations/todos/destroy_one_responses.go b/todo-list-strict/restapi/operations/todos/destroy_one_responses.go index f04dc266..5a10616f 100644 --- a/todo-list-strict/restapi/operations/todos/destroy_one_responses.go +++ b/todo-list-strict/restapi/operations/todos/destroy_one_responses.go @@ -13,11 +13,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -37,17 +35,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run func (o *DestroyOneNoContent) DestroyOneResponder() {} -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-strict/restapi/operations/todos/find.go b/todo-list-strict/restapi/operations/todos/find.go index 1c049d7c..6a8481b6 100644 --- a/todo-list-strict/restapi/operations/todos/find.go +++ b/todo-list-strict/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/todo-list-strict/restapi/operations/todos/find_parameters.go b/todo-list-strict/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/todo-list-strict/restapi/operations/todos/find_parameters.go +++ b/todo-list-strict/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/todo-list-strict/restapi/operations/todos/find_responses.go b/todo-list-strict/restapi/operations/todos/find_responses.go index 92d434a3..1f6a913c 100644 --- a/todo-list-strict/restapi/operations/todos/find_responses.go +++ b/todo-list-strict/restapi/operations/todos/find_responses.go @@ -13,16 +13,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -60,17 +56,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer func (o *FindOK) FindResponder() {} -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list-strict/restapi/operations/todos/update_one.go b/todo-list-strict/restapi/operations/todos/update_one.go index 72afa6e6..67f5c392 100644 --- a/todo-list-strict/restapi/operations/todos/update_one.go +++ b/todo-list-strict/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/todo-list-strict/restapi/operations/todos/update_one_parameters.go b/todo-list-strict/restapi/operations/todos/update_one_parameters.go index 78c088f6..a8376473 100644 --- a/todo-list-strict/restapi/operations/todos/update_one_parameters.go +++ b/todo-list-strict/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/todo-list-strict/restapi/operations/todos/update_one_responses.go b/todo-list-strict/restapi/operations/todos/update_one_responses.go index 59fa5c37..3fb8ec37 100644 --- a/todo-list-strict/restapi/operations/todos/update_one_responses.go +++ b/todo-list-strict/restapi/operations/todos/update_one_responses.go @@ -13,16 +13,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro func (o *UpdateOneOK) UpdateOneResponder() {} -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list/client/todos/add_one_responses.go b/todo-list/client/todos/add_one_responses.go index bce99316..aa0fa36a 100644 --- a/todo-list/client/todos/add_one_responses.go +++ b/todo-list/client/todos/add_one_responses.go @@ -44,11 +44,9 @@ func NewAddOneCreated() *AddOneCreated { return &AddOneCreated{} } -/* -AddOneCreated describes a response with status code 201, with default header values. - -Created -*/ +// AddOneCreated describes a response with status code 201, with default header values. +// +// Created type AddOneCreated struct { Payload *models.Item } @@ -116,11 +114,9 @@ func NewAddOneDefault(code int) *AddOneDefault { } } -/* -AddOneDefault describes a response with status code -1, with default header values. - -error -*/ +// AddOneDefault describes a response with status code -1, with default header values. +// +// error type AddOneDefault struct { _statusCode int diff --git a/todo-list/client/todos/destroy_one_responses.go b/todo-list/client/todos/destroy_one_responses.go index 11866e81..6ffc9642 100644 --- a/todo-list/client/todos/destroy_one_responses.go +++ b/todo-list/client/todos/destroy_one_responses.go @@ -44,11 +44,9 @@ func NewDestroyOneNoContent() *DestroyOneNoContent { return &DestroyOneNoContent{} } -/* -DestroyOneNoContent describes a response with status code 204, with default header values. - -Deleted -*/ +// DestroyOneNoContent describes a response with status code 204, with default header values. +// +// Deleted type DestroyOneNoContent struct { } @@ -102,11 +100,9 @@ func NewDestroyOneDefault(code int) *DestroyOneDefault { } } -/* -DestroyOneDefault describes a response with status code -1, with default header values. - -error -*/ +// DestroyOneDefault describes a response with status code -1, with default header values. +// +// error type DestroyOneDefault struct { _statusCode int diff --git a/todo-list/client/todos/find_responses.go b/todo-list/client/todos/find_responses.go index 9562d21d..f0c6e258 100644 --- a/todo-list/client/todos/find_responses.go +++ b/todo-list/client/todos/find_responses.go @@ -44,11 +44,9 @@ func NewFindOK() *FindOK { return &FindOK{} } -/* -FindOK describes a response with status code 200, with default header values. - -OK -*/ +// FindOK describes a response with status code 200, with default header values. +// +// OK type FindOK struct { Payload []*models.Item } @@ -114,11 +112,9 @@ func NewFindDefault(code int) *FindDefault { } } -/* -FindDefault describes a response with status code -1, with default header values. - -error -*/ +// FindDefault describes a response with status code -1, with default header values. +// +// error type FindDefault struct { _statusCode int diff --git a/todo-list/client/todos/todos_client.go b/todo-list/client/todos/todos_client.go index 6eb9bb20..7fb04c73 100644 --- a/todo-list/client/todos/todos_client.go +++ b/todo-list/client/todos/todos_client.go @@ -43,9 +43,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for todos API. -*/ +// Client for todos API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -119,14 +117,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -AddOneadd one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.AddOneContext] instead. -*/ +// AddOne add one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.AddOneContext] instead. func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error) { var ctx context.Context if params.inner.ctx != nil { @@ -138,11 +134,9 @@ func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWri return a.AddOneContext(ctx, params, authInfo, opts...) } -/* -AddOneContextadd one API. - -Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. -*/ +// AddOneContext add one API. +// +// Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -185,14 +179,12 @@ func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authIn return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -DestroyOnedestroy one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.DestroyOneContext] instead. -*/ +// DestroyOne destroy one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.DestroyOneContext] instead. func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -204,11 +196,9 @@ func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAut return a.DestroyOneContext(ctx, params, authInfo, opts...) } -/* -DestroyOneContextdestroy one API. - -Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. -*/ +// DestroyOneContext destroy one API. +// +// Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -251,14 +241,12 @@ func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -Findfind API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.FindContext] instead. -*/ +// Find find API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.FindContext] instead. func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -270,11 +258,9 @@ func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, return a.FindContext(ctx, params, authInfo, opts...) } -/* -FindContextfind API. - -Do not use the deprecated [FindParams.Context] with this method: it would be ignored. -*/ +// FindContext find API. +// +// Do not use the deprecated [FindParams.Context] with this method: it would be ignored. func (a *Client) FindContext(ctx context.Context, params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -317,14 +303,12 @@ func (a *Client) FindContext(ctx context.Context, params *FindParams, authInfo r return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -UpdateOneupdate one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.UpdateOneContext] instead. -*/ +// UpdateOne update one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.UpdateOneContext] instead. func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -336,11 +320,9 @@ func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthI return a.UpdateOneContext(ctx, params, authInfo, opts...) } -/* -UpdateOneContextupdate one API. - -Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. -*/ +// UpdateOneContext update one API. +// +// Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. func (a *Client) UpdateOneContext(ctx context.Context, params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/todo-list/client/todos/update_one_responses.go b/todo-list/client/todos/update_one_responses.go index d30e05e6..7a2ee1ab 100644 --- a/todo-list/client/todos/update_one_responses.go +++ b/todo-list/client/todos/update_one_responses.go @@ -44,11 +44,9 @@ func NewUpdateOneOK() *UpdateOneOK { return &UpdateOneOK{} } -/* -UpdateOneOK describes a response with status code 200, with default header values. - -OK -*/ +// UpdateOneOK describes a response with status code 200, with default header values. +// +// OK type UpdateOneOK struct { Payload *models.Item } @@ -116,11 +114,9 @@ func NewUpdateOneDefault(code int) *UpdateOneDefault { } } -/* -UpdateOneDefault describes a response with status code -1, with default header values. - -error -*/ +// UpdateOneDefault describes a response with status code -1, with default header values. +// +// error type UpdateOneDefault struct { _statusCode int diff --git a/todo-list/restapi/operations/todo_list_api.go b/todo-list/restapi/operations/todo_list_api.go index 0ef23b1c..8e321f87 100644 --- a/todo-list/restapi/operations/todo_list_api.go +++ b/todo-list/restapi/operations/todo_list_api.go @@ -79,11 +79,9 @@ func NewTodoListAPI(spec *loads.Document) *TodoListAPI { } } -/* -TodoListAPI This is a simple todo list API -illustrating go-swagger codegen -capabilities. -*/ +// TodoListAPI This is a simple todo list API +// illustrating go-swagger codegen +// capabilities. type TodoListAPI struct { spec *loads.Document context *middleware.Context diff --git a/todo-list/restapi/operations/todos/add_one.go b/todo-list/restapi/operations/todos/add_one.go index 4ffe46ff..1e3a84ac 100644 --- a/todo-list/restapi/operations/todos/add_one.go +++ b/todo-list/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/todo-list/restapi/operations/todos/add_one_parameters.go b/todo-list/restapi/operations/todos/add_one_parameters.go index d5a4cab9..81c4f12c 100644 --- a/todo-list/restapi/operations/todos/add_one_parameters.go +++ b/todo-list/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/todo-list/restapi/operations/todos/add_one_responses.go b/todo-list/restapi/operations/todos/add_one_responses.go index 4d7b43ff..5a079945 100644 --- a/todo-list/restapi/operations/todos/add_one_responses.go +++ b/todo-list/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list/restapi/operations/todos/destroy_one.go b/todo-list/restapi/operations/todos/destroy_one.go index 257d54bc..b2d7c154 100644 --- a/todo-list/restapi/operations/todos/destroy_one.go +++ b/todo-list/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/todo-list/restapi/operations/todos/destroy_one_parameters.go b/todo-list/restapi/operations/todos/destroy_one_parameters.go index 896b38ed..c2e3ffc6 100644 --- a/todo-list/restapi/operations/todos/destroy_one_parameters.go +++ b/todo-list/restapi/operations/todos/destroy_one_parameters.go @@ -25,11 +25,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/todo-list/restapi/operations/todos/destroy_one_responses.go b/todo-list/restapi/operations/todos/destroy_one_responses.go index bb043e86..fc0f11bb 100644 --- a/todo-list/restapi/operations/todos/destroy_one_responses.go +++ b/todo-list/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list/restapi/operations/todos/find.go b/todo-list/restapi/operations/todos/find.go index 05226ffd..1c9f3e57 100644 --- a/todo-list/restapi/operations/todos/find.go +++ b/todo-list/restapi/operations/todos/find.go @@ -26,11 +26,9 @@ func NewFind(ctx *middleware.Context, handler FindHandler) *Find { return &Find{Context: ctx, Handler: handler} } -/* - Find swagger:route GET / todos find - -Find find API -*/ +// Find swagger:route GET / todos find +// +// Find find API type Find struct { Context *middleware.Context Handler FindHandler diff --git a/todo-list/restapi/operations/todos/find_parameters.go b/todo-list/restapi/operations/todos/find_parameters.go index 3b2929d5..39ff7b15 100644 --- a/todo-list/restapi/operations/todos/find_parameters.go +++ b/todo-list/restapi/operations/todos/find_parameters.go @@ -41,24 +41,15 @@ func NewFindParams() FindParams { type FindParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: header - */ + // Required: true + // In: header XRateLimit int32 - - /* - Required: true - In: formData - */ + // Required: true + // In: formData Limit int32 - - /* - Required: true - In: formData - Collection Format: multi - */ + // Required: true + // In: formData + // Collection Format: multi Tags []int32 } diff --git a/todo-list/restapi/operations/todos/find_responses.go b/todo-list/restapi/operations/todos/find_responses.go index 3762241c..a7da2549 100644 --- a/todo-list/restapi/operations/todos/find_responses.go +++ b/todo-list/restapi/operations/todos/find_responses.go @@ -12,16 +12,12 @@ import ( // FindOKCode is the HTTP code returned for type FindOK const FindOKCode int = 200 -/* -FindOK OK - -swagger:response findOK -*/ +// FindOK OK +// +// swagger:response findOK type FindOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer } } -/* -FindDefault error - -swagger:response findDefault -*/ +// FindDefault error +// +// swagger:response findDefault type FindDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/todo-list/restapi/operations/todos/update_one.go b/todo-list/restapi/operations/todos/update_one.go index c0a24449..16a40421 100644 --- a/todo-list/restapi/operations/todos/update_one.go +++ b/todo-list/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/todo-list/restapi/operations/todos/update_one_parameters.go b/todo-list/restapi/operations/todos/update_one_parameters.go index 3e2e2d7e..3c46baee 100644 --- a/todo-list/restapi/operations/todos/update_one_parameters.go +++ b/todo-list/restapi/operations/todos/update_one_parameters.go @@ -28,16 +28,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID string } diff --git a/todo-list/restapi/operations/todos/update_one_responses.go b/todo-list/restapi/operations/todos/update_one_responses.go index 827db1d8..9a1ecd1f 100644 --- a/todo-list/restapi/operations/todos/update_one_responses.go +++ b/todo-list/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/client/classic_client/experimental/experimental_client.go b/tutorials/client/classic_client/experimental/experimental_client.go index 09053651..bc5a02b7 100644 --- a/tutorials/client/classic_client/experimental/experimental_client.go +++ b/tutorials/client/classic_client/experimental/experimental_client.go @@ -44,9 +44,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for experimental API. -*/ +// Client for experimental API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -112,14 +110,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -GetExperimentalget experimental API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.GetExperimentalContext] instead. -*/ +// GetExperimental get experimental API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.GetExperimentalContext] instead. func (a *Client) GetExperimental(params *GetExperimentalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExperimentalOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -131,11 +127,9 @@ func (a *Client) GetExperimental(params *GetExperimentalParams, authInfo runtime return a.GetExperimentalContext(ctx, params, authInfo, opts...) } -/* -GetExperimentalContextget experimental API. - -Do not use the deprecated [GetExperimentalParams.Context] with this method: it would be ignored. -*/ +// GetExperimentalContext get experimental API. +// +// Do not use the deprecated [GetExperimentalParams.Context] with this method: it would be ignored. func (a *Client) GetExperimentalContext(ctx context.Context, params *GetExperimentalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExperimentalOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -179,14 +173,12 @@ func (a *Client) GetExperimentalContext(ctx context.Context, params *GetExperime panic(msg) } -/* -PutExperimentalput experimental API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.PutExperimentalContext] instead. -*/ +// PutExperimental put experimental API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.PutExperimentalContext] instead. func (a *Client) PutExperimental(params *PutExperimentalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutExperimentalOK, *PutExperimentalNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -198,11 +190,9 @@ func (a *Client) PutExperimental(params *PutExperimentalParams, authInfo runtime return a.PutExperimentalContext(ctx, params, authInfo, opts...) } -/* -PutExperimentalContextput experimental API. - -Do not use the deprecated [PutExperimentalParams.Context] with this method: it would be ignored. -*/ +// PutExperimentalContext put experimental API. +// +// Do not use the deprecated [PutExperimentalParams.Context] with this method: it would be ignored. func (a *Client) PutExperimentalContext(ctx context.Context, params *PutExperimentalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutExperimentalOK, *PutExperimentalNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/tutorials/client/classic_client/experimental/get_experimental_responses.go b/tutorials/client/classic_client/experimental/get_experimental_responses.go index de7a3d4c..51f8b9af 100644 --- a/tutorials/client/classic_client/experimental/get_experimental_responses.go +++ b/tutorials/client/classic_client/experimental/get_experimental_responses.go @@ -43,11 +43,9 @@ func NewGetExperimentalOK() *GetExperimentalOK { return &GetExperimentalOK{} } -/* -GetExperimentalOK describes a response with status code 200, with default header values. - -OK -*/ +// GetExperimentalOK describes a response with status code 200, with default header values. +// +// OK type GetExperimentalOK struct { Payload *models.Item } @@ -113,11 +111,9 @@ func NewGetExperimentalUnauthorized() *GetExperimentalUnauthorized { return &GetExperimentalUnauthorized{} } -/* -GetExperimentalUnauthorized describes a response with status code 401, with default header values. - -wrong -*/ +// GetExperimentalUnauthorized describes a response with status code 401, with default header values. +// +// wrong type GetExperimentalUnauthorized struct { } diff --git a/tutorials/client/classic_client/experimental/put_experimental_responses.go b/tutorials/client/classic_client/experimental/put_experimental_responses.go index 1f6f98db..1d2c10d8 100644 --- a/tutorials/client/classic_client/experimental/put_experimental_responses.go +++ b/tutorials/client/classic_client/experimental/put_experimental_responses.go @@ -49,11 +49,9 @@ func NewPutExperimentalOK() *PutExperimentalOK { return &PutExperimentalOK{} } -/* -PutExperimentalOK describes a response with status code 200, with default header values. - -OK -*/ +// PutExperimentalOK describes a response with status code 200, with default header values. +// +// OK type PutExperimentalOK struct { Payload *models.Item } @@ -119,11 +117,9 @@ func NewPutExperimentalNoContent() *PutExperimentalNoContent { return &PutExperimentalNoContent{} } -/* -PutExperimentalNoContent describes a response with status code 204, with default header values. - -No change -*/ +// PutExperimentalNoContent describes a response with status code 204, with default header values. +// +// No change type PutExperimentalNoContent struct { } @@ -175,11 +171,9 @@ func NewPutExperimentalMethodNotAllowed() *PutExperimentalMethodNotAllowed { return &PutExperimentalMethodNotAllowed{} } -/* -PutExperimentalMethodNotAllowed describes a response with status code 405, with default header values. - -very wrong -*/ +// PutExperimentalMethodNotAllowed describes a response with status code 405, with default header values. +// +// very wrong type PutExperimentalMethodNotAllowed struct { } diff --git a/tutorials/client/classic_client/todos/add_one_responses.go b/tutorials/client/classic_client/todos/add_one_responses.go index 4ca2710a..f1acf63b 100644 --- a/tutorials/client/classic_client/todos/add_one_responses.go +++ b/tutorials/client/classic_client/todos/add_one_responses.go @@ -50,11 +50,9 @@ func NewAddOneCreated() *AddOneCreated { return &AddOneCreated{} } -/* -AddOneCreated describes a response with status code 201, with default header values. - -Created -*/ +// AddOneCreated describes a response with status code 201, with default header values. +// +// Created type AddOneCreated struct { Payload *models.Item } @@ -120,11 +118,9 @@ func NewAddOneNoContent() *AddOneNoContent { return &AddOneNoContent{} } -/* -AddOneNoContent describes a response with status code 204, with default header values. - -Already there -*/ +// AddOneNoContent describes a response with status code 204, with default header values. +// +// Already there type AddOneNoContent struct { } @@ -178,11 +174,9 @@ func NewAddOneDefault(code int) *AddOneDefault { } } -/* -AddOneDefault describes a response with status code -1, with default header values. - -error -*/ +// AddOneDefault describes a response with status code -1, with default header values. +// +// error type AddOneDefault struct { _statusCode int diff --git a/tutorials/client/classic_client/todos/destroy_one_responses.go b/tutorials/client/classic_client/todos/destroy_one_responses.go index b047e66c..2eed5637 100644 --- a/tutorials/client/classic_client/todos/destroy_one_responses.go +++ b/tutorials/client/classic_client/todos/destroy_one_responses.go @@ -44,11 +44,9 @@ func NewDestroyOneNoContent() *DestroyOneNoContent { return &DestroyOneNoContent{} } -/* -DestroyOneNoContent describes a response with status code 204, with default header values. - -Deleted -*/ +// DestroyOneNoContent describes a response with status code 204, with default header values. +// +// Deleted type DestroyOneNoContent struct { } @@ -102,11 +100,9 @@ func NewDestroyOneDefault(code int) *DestroyOneDefault { } } -/* -DestroyOneDefault describes a response with status code -1, with default header values. - -error -*/ +// DestroyOneDefault describes a response with status code -1, with default header values. +// +// error type DestroyOneDefault struct { _statusCode int diff --git a/tutorials/client/classic_client/todos/find_responses.go b/tutorials/client/classic_client/todos/find_responses.go index 5f9ad10a..8c62ad8d 100644 --- a/tutorials/client/classic_client/todos/find_responses.go +++ b/tutorials/client/classic_client/todos/find_responses.go @@ -44,11 +44,9 @@ func NewFindOK() *FindOK { return &FindOK{} } -/* -FindOK describes a response with status code 200, with default header values. - -OK -*/ +// FindOK describes a response with status code 200, with default header values. +// +// OK type FindOK struct { Payload []*models.Item } @@ -114,11 +112,9 @@ func NewFindDefault(code int) *FindDefault { } } -/* -FindDefault describes a response with status code -1, with default header values. - -error -*/ +// FindDefault describes a response with status code -1, with default header values. +// +// error type FindDefault struct { _statusCode int diff --git a/tutorials/client/classic_client/todos/todos_client.go b/tutorials/client/classic_client/todos/todos_client.go index 81d94ac7..cac771b2 100644 --- a/tutorials/client/classic_client/todos/todos_client.go +++ b/tutorials/client/classic_client/todos/todos_client.go @@ -43,9 +43,7 @@ func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) Client return &Client{transport: transport, formats: strfmt.Default} } -/* -Client for todos API. -*/ +// Client for todos API. type Client struct { transport runtime.ContextualTransport formats strfmt.Registry @@ -119,14 +117,12 @@ type ClientService interface { SetTransport(transport runtime.ContextualTransport) } -/* -AddOneadd one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.AddOneContext] instead. -*/ +// AddOne add one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.AddOneContext] instead. func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, *AddOneNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -138,11 +134,9 @@ func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWri return a.AddOneContext(ctx, params, authInfo, opts...) } -/* -AddOneContextadd one API. - -Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. -*/ +// AddOneContext add one API. +// +// Do not use the deprecated [AddOneParams.Context] with this method: it would be ignored. func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, *AddOneNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -186,14 +180,12 @@ func (a *Client) AddOneContext(ctx context.Context, params *AddOneParams, authIn return nil, nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -DestroyOnedestroy one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.DestroyOneContext] instead. -*/ +// DestroyOne destroy one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.DestroyOneContext] instead. func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -205,11 +197,9 @@ func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAut return a.DestroyOneContext(ctx, params, authInfo, opts...) } -/* -DestroyOneContextdestroy one API. - -Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. -*/ +// DestroyOneContext destroy one API. +// +// Do not use the deprecated [DestroyOneParams.Context] with this method: it would be ignored. func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -252,14 +242,12 @@ func (a *Client) DestroyOneContext(ctx context.Context, params *DestroyOneParams return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -Findfind API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.FindContext] instead. -*/ +// Find find API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.FindContext] instead. func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error) { var ctx context.Context if params.inner.ctx != nil { @@ -271,11 +259,9 @@ func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, return a.FindContext(ctx, params, authInfo, opts...) } -/* -FindContextfind API. - -Do not use the deprecated [FindParams.Context] with this method: it would be ignored. -*/ +// FindContext find API. +// +// Do not use the deprecated [FindParams.Context] with this method: it would be ignored. func (a *Client) FindContext(ctx context.Context, params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error) { // NOTE: parameters are not validated before sending if params == nil { @@ -318,14 +304,12 @@ func (a *Client) FindContext(ctx context.Context, params *FindParams, authInfo r return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -UpdateOneupdate one API. - -This method does not support injected context. -However, timeout and opentracing contexts are honored whenever enabled. - -If you need to pass a specific context, use [Client.UpdateOneContext] instead. -*/ +// UpdateOne update one API. +// +// This method does not support injected context. +// However, timeout and opentracing contexts are honored whenever enabled. +// +// If you need to pass a specific context, use [Client.UpdateOneContext] instead. func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, *UpdateOneNoContent, error) { var ctx context.Context if params.inner.ctx != nil { @@ -337,11 +321,9 @@ func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthI return a.UpdateOneContext(ctx, params, authInfo, opts...) } -/* -UpdateOneContextupdate one API. - -Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. -*/ +// UpdateOneContext update one API. +// +// Do not use the deprecated [UpdateOneParams.Context] with this method: it would be ignored. func (a *Client) UpdateOneContext(ctx context.Context, params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, *UpdateOneNoContent, error) { // NOTE: parameters are not validated before sending if params == nil { diff --git a/tutorials/client/classic_client/todos/update_one_responses.go b/tutorials/client/classic_client/todos/update_one_responses.go index dbad7874..13be5281 100644 --- a/tutorials/client/classic_client/todos/update_one_responses.go +++ b/tutorials/client/classic_client/todos/update_one_responses.go @@ -50,11 +50,9 @@ func NewUpdateOneOK() *UpdateOneOK { return &UpdateOneOK{} } -/* -UpdateOneOK describes a response with status code 200, with default header values. - -OK -*/ +// UpdateOneOK describes a response with status code 200, with default header values. +// +// OK type UpdateOneOK struct { Payload *models.Item } @@ -120,11 +118,9 @@ func NewUpdateOneNoContent() *UpdateOneNoContent { return &UpdateOneNoContent{} } -/* -UpdateOneNoContent describes a response with status code 204, with default header values. - -No change -*/ +// UpdateOneNoContent describes a response with status code 204, with default header values. +// +// No change type UpdateOneNoContent struct { } @@ -178,11 +174,9 @@ func NewUpdateOneDefault(code int) *UpdateOneDefault { } } -/* -UpdateOneDefault describes a response with status code -1, with default header values. - -error -*/ +// UpdateOneDefault describes a response with status code -1, with default header values. +// +// error type UpdateOneDefault struct { _statusCode int diff --git a/tutorials/client/stratoscale_client/experimental/experimental_client.go b/tutorials/client/stratoscale_client/experimental/experimental_client.go index 10aede0f..b2262e21 100644 --- a/tutorials/client/stratoscale_client/experimental/experimental_client.go +++ b/tutorials/client/stratoscale_client/experimental/experimental_client.go @@ -15,11 +15,11 @@ import ( // API is the interface of the experimental client. type API interface { - /* - GetExperimental get experimental API*/ + + // GetExperimental get experimental API GetExperimental(ctx context.Context, params *GetExperimentalParams) (*GetExperimentalOK, error) - /* - PutExperimental put experimental API*/ + + // PutExperimental put experimental API PutExperimental(ctx context.Context, params *PutExperimentalParams) (*PutExperimentalOK, *PutExperimentalNoContent, error) } @@ -32,18 +32,14 @@ func New(transport runtime.ContextualTransport, formats strfmt.Registry, authInf } } -/* -Client for experimental API -*/ +// Client for experimental API type Client struct { transport runtime.ContextualTransport formats strfmt.Registry authInfo runtime.ClientAuthInfoWriter } -/* -GetExperimental get experimental API. -*/ +// GetExperimental get experimental API. func (a *Client) GetExperimental(ctx context.Context, params *GetExperimentalParams) (*GetExperimentalOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "GetExperimental", @@ -77,9 +73,7 @@ func (a *Client) GetExperimental(ctx context.Context, params *GetExperimentalPar panic(msg) } -/* -PutExperimental put experimental API. -*/ +// PutExperimental put experimental API. func (a *Client) PutExperimental(ctx context.Context, params *PutExperimentalParams) (*PutExperimentalOK, *PutExperimentalNoContent, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "PutExperimental", diff --git a/tutorials/client/stratoscale_client/experimental/get_experimental_responses.go b/tutorials/client/stratoscale_client/experimental/get_experimental_responses.go index de7a3d4c..51f8b9af 100644 --- a/tutorials/client/stratoscale_client/experimental/get_experimental_responses.go +++ b/tutorials/client/stratoscale_client/experimental/get_experimental_responses.go @@ -43,11 +43,9 @@ func NewGetExperimentalOK() *GetExperimentalOK { return &GetExperimentalOK{} } -/* -GetExperimentalOK describes a response with status code 200, with default header values. - -OK -*/ +// GetExperimentalOK describes a response with status code 200, with default header values. +// +// OK type GetExperimentalOK struct { Payload *models.Item } @@ -113,11 +111,9 @@ func NewGetExperimentalUnauthorized() *GetExperimentalUnauthorized { return &GetExperimentalUnauthorized{} } -/* -GetExperimentalUnauthorized describes a response with status code 401, with default header values. - -wrong -*/ +// GetExperimentalUnauthorized describes a response with status code 401, with default header values. +// +// wrong type GetExperimentalUnauthorized struct { } diff --git a/tutorials/client/stratoscale_client/experimental/put_experimental_responses.go b/tutorials/client/stratoscale_client/experimental/put_experimental_responses.go index 1f6f98db..1d2c10d8 100644 --- a/tutorials/client/stratoscale_client/experimental/put_experimental_responses.go +++ b/tutorials/client/stratoscale_client/experimental/put_experimental_responses.go @@ -49,11 +49,9 @@ func NewPutExperimentalOK() *PutExperimentalOK { return &PutExperimentalOK{} } -/* -PutExperimentalOK describes a response with status code 200, with default header values. - -OK -*/ +// PutExperimentalOK describes a response with status code 200, with default header values. +// +// OK type PutExperimentalOK struct { Payload *models.Item } @@ -119,11 +117,9 @@ func NewPutExperimentalNoContent() *PutExperimentalNoContent { return &PutExperimentalNoContent{} } -/* -PutExperimentalNoContent describes a response with status code 204, with default header values. - -No change -*/ +// PutExperimentalNoContent describes a response with status code 204, with default header values. +// +// No change type PutExperimentalNoContent struct { } @@ -175,11 +171,9 @@ func NewPutExperimentalMethodNotAllowed() *PutExperimentalMethodNotAllowed { return &PutExperimentalMethodNotAllowed{} } -/* -PutExperimentalMethodNotAllowed describes a response with status code 405, with default header values. - -very wrong -*/ +// PutExperimentalMethodNotAllowed describes a response with status code 405, with default header values. +// +// very wrong type PutExperimentalMethodNotAllowed struct { } diff --git a/tutorials/client/stratoscale_client/todos/add_one_responses.go b/tutorials/client/stratoscale_client/todos/add_one_responses.go index 4ca2710a..f1acf63b 100644 --- a/tutorials/client/stratoscale_client/todos/add_one_responses.go +++ b/tutorials/client/stratoscale_client/todos/add_one_responses.go @@ -50,11 +50,9 @@ func NewAddOneCreated() *AddOneCreated { return &AddOneCreated{} } -/* -AddOneCreated describes a response with status code 201, with default header values. - -Created -*/ +// AddOneCreated describes a response with status code 201, with default header values. +// +// Created type AddOneCreated struct { Payload *models.Item } @@ -120,11 +118,9 @@ func NewAddOneNoContent() *AddOneNoContent { return &AddOneNoContent{} } -/* -AddOneNoContent describes a response with status code 204, with default header values. - -Already there -*/ +// AddOneNoContent describes a response with status code 204, with default header values. +// +// Already there type AddOneNoContent struct { } @@ -178,11 +174,9 @@ func NewAddOneDefault(code int) *AddOneDefault { } } -/* -AddOneDefault describes a response with status code -1, with default header values. - -error -*/ +// AddOneDefault describes a response with status code -1, with default header values. +// +// error type AddOneDefault struct { _statusCode int diff --git a/tutorials/client/stratoscale_client/todos/destroy_one_responses.go b/tutorials/client/stratoscale_client/todos/destroy_one_responses.go index b047e66c..2eed5637 100644 --- a/tutorials/client/stratoscale_client/todos/destroy_one_responses.go +++ b/tutorials/client/stratoscale_client/todos/destroy_one_responses.go @@ -44,11 +44,9 @@ func NewDestroyOneNoContent() *DestroyOneNoContent { return &DestroyOneNoContent{} } -/* -DestroyOneNoContent describes a response with status code 204, with default header values. - -Deleted -*/ +// DestroyOneNoContent describes a response with status code 204, with default header values. +// +// Deleted type DestroyOneNoContent struct { } @@ -102,11 +100,9 @@ func NewDestroyOneDefault(code int) *DestroyOneDefault { } } -/* -DestroyOneDefault describes a response with status code -1, with default header values. - -error -*/ +// DestroyOneDefault describes a response with status code -1, with default header values. +// +// error type DestroyOneDefault struct { _statusCode int diff --git a/tutorials/client/stratoscale_client/todos/find_responses.go b/tutorials/client/stratoscale_client/todos/find_responses.go index 5f9ad10a..8c62ad8d 100644 --- a/tutorials/client/stratoscale_client/todos/find_responses.go +++ b/tutorials/client/stratoscale_client/todos/find_responses.go @@ -44,11 +44,9 @@ func NewFindOK() *FindOK { return &FindOK{} } -/* -FindOK describes a response with status code 200, with default header values. - -OK -*/ +// FindOK describes a response with status code 200, with default header values. +// +// OK type FindOK struct { Payload []*models.Item } @@ -114,11 +112,9 @@ func NewFindDefault(code int) *FindDefault { } } -/* -FindDefault describes a response with status code -1, with default header values. - -error -*/ +// FindDefault describes a response with status code -1, with default header values. +// +// error type FindDefault struct { _statusCode int diff --git a/tutorials/client/stratoscale_client/todos/todos_client.go b/tutorials/client/stratoscale_client/todos/todos_client.go index 2bf46ed5..dcb8bc13 100644 --- a/tutorials/client/stratoscale_client/todos/todos_client.go +++ b/tutorials/client/stratoscale_client/todos/todos_client.go @@ -14,17 +14,17 @@ import ( // API is the interface of the todos client. type API interface { - /* - AddOne add one API*/ + + // AddOne add one API AddOne(ctx context.Context, params *AddOneParams) (*AddOneCreated, *AddOneNoContent, error) - /* - DestroyOne destroy one API*/ + + // DestroyOne destroy one API DestroyOne(ctx context.Context, params *DestroyOneParams) (*DestroyOneNoContent, error) - /* - Find find API*/ + + // Find find API Find(ctx context.Context, params *FindParams) (*FindOK, error) - /* - UpdateOne update one API*/ + + // UpdateOne update one API UpdateOne(ctx context.Context, params *UpdateOneParams) (*UpdateOneOK, *UpdateOneNoContent, error) } @@ -37,18 +37,14 @@ func New(transport runtime.ContextualTransport, formats strfmt.Registry, authInf } } -/* -Client for todos API -*/ +// Client for todos API type Client struct { transport runtime.ContextualTransport formats strfmt.Registry authInfo runtime.ClientAuthInfoWriter } -/* -AddOne add one API. -*/ +// AddOne add one API. func (a *Client) AddOne(ctx context.Context, params *AddOneParams) (*AddOneCreated, *AddOneNoContent, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "addOne", @@ -81,9 +77,7 @@ func (a *Client) AddOne(ctx context.Context, params *AddOneParams) (*AddOneCreat return nil, nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -DestroyOne destroy one API. -*/ +// DestroyOne destroy one API. func (a *Client) DestroyOne(ctx context.Context, params *DestroyOneParams) (*DestroyOneNoContent, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "destroyOne", @@ -112,9 +106,7 @@ func (a *Client) DestroyOne(ctx context.Context, params *DestroyOneParams) (*Des return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -Find find API. -*/ +// Find find API. func (a *Client) Find(ctx context.Context, params *FindParams) (*FindOK, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "find", @@ -143,9 +135,7 @@ func (a *Client) Find(ctx context.Context, params *FindParams) (*FindOK, error) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* -UpdateOne update one API. -*/ +// UpdateOne update one API. func (a *Client) UpdateOne(ctx context.Context, params *UpdateOneParams) (*UpdateOneOK, *UpdateOneNoContent, error) { result, err := a.transport.SubmitContext(ctx, &runtime.ClientOperation{ ID: "updateOne", diff --git a/tutorials/client/stratoscale_client/todos/update_one_responses.go b/tutorials/client/stratoscale_client/todos/update_one_responses.go index dbad7874..13be5281 100644 --- a/tutorials/client/stratoscale_client/todos/update_one_responses.go +++ b/tutorials/client/stratoscale_client/todos/update_one_responses.go @@ -50,11 +50,9 @@ func NewUpdateOneOK() *UpdateOneOK { return &UpdateOneOK{} } -/* -UpdateOneOK describes a response with status code 200, with default header values. - -OK -*/ +// UpdateOneOK describes a response with status code 200, with default header values. +// +// OK type UpdateOneOK struct { Payload *models.Item } @@ -120,11 +118,9 @@ func NewUpdateOneNoContent() *UpdateOneNoContent { return &UpdateOneNoContent{} } -/* -UpdateOneNoContent describes a response with status code 204, with default header values. - -No change -*/ +// UpdateOneNoContent describes a response with status code 204, with default header values. +// +// No change type UpdateOneNoContent struct { } @@ -178,11 +174,9 @@ func NewUpdateOneDefault(code int) *UpdateOneDefault { } } -/* -UpdateOneDefault describes a response with status code -1, with default header values. - -error -*/ +// UpdateOneDefault describes a response with status code -1, with default header values. +// +// error type UpdateOneDefault struct { _statusCode int diff --git a/tutorials/custom-server/gen/restapi/operations/get_greeting.go b/tutorials/custom-server/gen/restapi/operations/get_greeting.go index 4113ce30..109a333a 100644 --- a/tutorials/custom-server/gen/restapi/operations/get_greeting.go +++ b/tutorials/custom-server/gen/restapi/operations/get_greeting.go @@ -26,11 +26,9 @@ func NewGetGreeting(ctx *middleware.Context, handler GetGreetingHandler) *GetGre return &GetGreeting{Context: ctx, Handler: handler} } -/* - GetGreeting swagger:route GET /hello getGreeting - -GetGreeting get greeting API -*/ +// GetGreeting swagger:route GET /hello getGreeting +// +// GetGreeting get greeting API type GetGreeting struct { Context *middleware.Context Handler GetGreetingHandler diff --git a/tutorials/custom-server/gen/restapi/operations/get_greeting_parameters.go b/tutorials/custom-server/gen/restapi/operations/get_greeting_parameters.go index 925a8485..e4d1803f 100644 --- a/tutorials/custom-server/gen/restapi/operations/get_greeting_parameters.go +++ b/tutorials/custom-server/gen/restapi/operations/get_greeting_parameters.go @@ -26,10 +26,8 @@ func NewGetGreetingParams() GetGreetingParams { type GetGreetingParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /*defaults to World if not given - In: query - */ + // defaults to World if not given + // In: query Name *string } diff --git a/tutorials/custom-server/gen/restapi/operations/get_greeting_responses.go b/tutorials/custom-server/gen/restapi/operations/get_greeting_responses.go index 88e90c9e..a3a9128e 100644 --- a/tutorials/custom-server/gen/restapi/operations/get_greeting_responses.go +++ b/tutorials/custom-server/gen/restapi/operations/get_greeting_responses.go @@ -11,16 +11,13 @@ import ( // GetGreetingOKCode is the HTTP code returned for type GetGreetingOK const GetGreetingOKCode int = 200 -/* -GetGreetingOK returns a greeting - -swagger:response getGreetingOK -*/ +// GetGreetingOK returns a greeting +// +// swagger:response getGreetingOK type GetGreetingOK struct { - /*contains the actual greeting as plain text - In: Body - */ + // contains the actual greeting as plain text + // In: Body Payload string `json:"body,omitempty"` } diff --git a/tutorials/custom-server/gen/restapi/operations/greeter_api.go b/tutorials/custom-server/gen/restapi/operations/greeter_api.go index 47b57fa5..4ea71671 100644 --- a/tutorials/custom-server/gen/restapi/operations/greeter_api.go +++ b/tutorials/custom-server/gen/restapi/operations/greeter_api.go @@ -47,7 +47,7 @@ func NewGreeterAPI(spec *loads.Document) *GreeterAPI { } } -/*GreeterAPI the greeter API */ +// GreeterAPI the greeter API type GreeterAPI struct { spec *loads.Document context *middleware.Context diff --git a/tutorials/todo-list/server-1/restapi/operations/todo_list_api.go b/tutorials/todo-list/server-1/restapi/operations/todo_list_api.go index bd827020..63d520bd 100644 --- a/tutorials/todo-list/server-1/restapi/operations/todo_list_api.go +++ b/tutorials/todo-list/server-1/restapi/operations/todo_list_api.go @@ -48,7 +48,7 @@ func NewTodoListAPI(spec *loads.Document) *TodoListAPI { } } -/*TodoListAPI The product of a tutorial on goswagger.io */ +// TodoListAPI The product of a tutorial on goswagger.io type TodoListAPI struct { spec *loads.Document context *middleware.Context diff --git a/tutorials/todo-list/server-1/restapi/operations/todos/find_todos.go b/tutorials/todo-list/server-1/restapi/operations/todos/find_todos.go index ebffd124..04bf8fc1 100644 --- a/tutorials/todo-list/server-1/restapi/operations/todos/find_todos.go +++ b/tutorials/todo-list/server-1/restapi/operations/todos/find_todos.go @@ -26,11 +26,9 @@ func NewFindTodos(ctx *middleware.Context, handler FindTodosHandler) *FindTodos return &FindTodos{Context: ctx, Handler: handler} } -/* - FindTodos swagger:route GET / todos findTodos - -FindTodos find todos API -*/ +// FindTodos swagger:route GET / todos findTodos +// +// FindTodos find todos API type FindTodos struct { Context *middleware.Context Handler FindTodosHandler diff --git a/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_parameters.go b/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_parameters.go index 8fbe147d..8ce8db8c 100644 --- a/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_parameters.go +++ b/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_parameters.go @@ -34,16 +34,10 @@ func NewFindTodosParams() FindTodosParams { type FindTodosParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: query - Default: 20 - */ + // In: query + // Default: 20 Limit *int32 - - /* - In: query - */ + // In: query Since *int64 } diff --git a/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_responses.go b/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_responses.go index 51d98177..ed74e236 100644 --- a/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_responses.go +++ b/tutorials/todo-list/server-1/restapi/operations/todos/find_todos_responses.go @@ -12,16 +12,12 @@ import ( // FindTodosOKCode is the HTTP code returned for type FindTodosOK const FindTodosOKCode int = 200 -/* -FindTodosOK list the todo operations - -swagger:response findTodosOK -*/ +// FindTodosOK list the todo operations +// +// swagger:response findTodosOK type FindTodosOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindTodosOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -FindTodosDefault generic error response - -swagger:response findTodosDefault -*/ +// FindTodosDefault generic error response +// +// swagger:response findTodosDefault type FindTodosDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-2/restapi/operations/todo_list_api.go b/tutorials/todo-list/server-2/restapi/operations/todo_list_api.go index ea20a2d0..a7fe1460 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todo_list_api.go +++ b/tutorials/todo-list/server-2/restapi/operations/todo_list_api.go @@ -66,7 +66,7 @@ func NewTodoListAPI(spec *loads.Document) *TodoListAPI { } } -/*TodoListAPI The product of a tutorial on goswagger.io */ +// TodoListAPI The product of a tutorial on goswagger.io type TodoListAPI struct { spec *loads.Document context *middleware.Context diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/add_one.go b/tutorials/todo-list/server-2/restapi/operations/todos/add_one.go index 10a8cae5..b715ca43 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/add_one.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/add_one_parameters.go b/tutorials/todo-list/server-2/restapi/operations/todos/add_one_parameters.go index 31a3b042..5f7f822d 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/add_one_parameters.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/add_one_responses.go b/tutorials/todo-list/server-2/restapi/operations/todos/add_one_responses.go index 8b13d05a..9c877876 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/add_one_responses.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one.go b/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one.go index 7a1ff3f2..466d3b8a 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_parameters.go b/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_parameters.go index ab647b06..7f0d3637 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_parameters.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_parameters.go @@ -26,11 +26,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID int64 } diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_responses.go b/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_responses.go index 39cc7a0e..ad9c0688 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_responses.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/find_todos.go b/tutorials/todo-list/server-2/restapi/operations/todos/find_todos.go index ebffd124..04bf8fc1 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/find_todos.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/find_todos.go @@ -26,11 +26,9 @@ func NewFindTodos(ctx *middleware.Context, handler FindTodosHandler) *FindTodos return &FindTodos{Context: ctx, Handler: handler} } -/* - FindTodos swagger:route GET / todos findTodos - -FindTodos find todos API -*/ +// FindTodos swagger:route GET / todos findTodos +// +// FindTodos find todos API type FindTodos struct { Context *middleware.Context Handler FindTodosHandler diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_parameters.go b/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_parameters.go index 8fbe147d..8ce8db8c 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_parameters.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_parameters.go @@ -34,16 +34,10 @@ func NewFindTodosParams() FindTodosParams { type FindTodosParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: query - Default: 20 - */ + // In: query + // Default: 20 Limit *int32 - - /* - In: query - */ + // In: query Since *int64 } diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_responses.go b/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_responses.go index 69a9fe29..1d2588b3 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_responses.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/find_todos_responses.go @@ -12,16 +12,12 @@ import ( // FindTodosOKCode is the HTTP code returned for type FindTodosOK const FindTodosOKCode int = 200 -/* -FindTodosOK list the todo operations - -swagger:response findTodosOK -*/ +// FindTodosOK list the todo operations +// +// swagger:response findTodosOK type FindTodosOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindTodosOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -FindTodosDefault generic error response - -swagger:response findTodosDefault -*/ +// FindTodosDefault generic error response +// +// swagger:response findTodosDefault type FindTodosDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/update_one.go b/tutorials/todo-list/server-2/restapi/operations/todos/update_one.go index d7a2654d..1ad878ca 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/update_one.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/update_one_parameters.go b/tutorials/todo-list/server-2/restapi/operations/todos/update_one_parameters.go index b6051b13..5b5acf01 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/update_one_parameters.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/update_one_parameters.go @@ -29,16 +29,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID int64 } diff --git a/tutorials/todo-list/server-2/restapi/operations/todos/update_one_responses.go b/tutorials/todo-list/server-2/restapi/operations/todos/update_one_responses.go index 2564a3e5..15ebb11e 100644 --- a/tutorials/todo-list/server-2/restapi/operations/todos/update_one_responses.go +++ b/tutorials/todo-list/server-2/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todo_list_api.go b/tutorials/todo-list/server-complete/restapi/operations/todo_list_api.go index 82f386e5..50767392 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todo_list_api.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todo_list_api.go @@ -66,7 +66,7 @@ func NewTodoListAPI(spec *loads.Document) *TodoListAPI { } } -/*TodoListAPI The product of a tutorial on goswagger.io */ +// TodoListAPI The product of a tutorial on goswagger.io type TodoListAPI struct { spec *loads.Document context *middleware.Context diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/add_one.go b/tutorials/todo-list/server-complete/restapi/operations/todos/add_one.go index 10a8cae5..b715ca43 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/add_one.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/add_one.go @@ -26,11 +26,9 @@ func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne { return &AddOne{Context: ctx, Handler: handler} } -/* - AddOne swagger:route POST / todos addOne - -AddOne add one API -*/ +// AddOne swagger:route POST / todos addOne +// +// AddOne add one API type AddOne struct { Context *middleware.Context Handler AddOneHandler diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_parameters.go b/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_parameters.go index e17389cc..152d19bf 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_parameters.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_parameters.go @@ -27,10 +27,7 @@ func NewAddOneParams() AddOneParams { type AddOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_responses.go b/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_responses.go index 97c0d4bf..ecdb6e3f 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_responses.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/add_one_responses.go @@ -12,16 +12,12 @@ import ( // AddOneCreatedCode is the HTTP code returned for type AddOneCreated const AddOneCreatedCode int = 201 -/* -AddOneCreated Created - -swagger:response addOneCreated -*/ +// AddOneCreated Created +// +// swagger:response addOneCreated type AddOneCreated struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *AddOneCreated) WriteResponse(rw http.ResponseWriter, producer runtime.P } } -/* -AddOneDefault error - -swagger:response addOneDefault -*/ +// AddOneDefault error +// +// swagger:response addOneDefault type AddOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one.go b/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one.go index 7a1ff3f2..466d3b8a 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one.go @@ -26,11 +26,9 @@ func NewDestroyOne(ctx *middleware.Context, handler DestroyOneHandler) *DestroyO return &DestroyOne{Context: ctx, Handler: handler} } -/* - DestroyOne swagger:route DELETE /{id} todos destroyOne - -DestroyOne destroy one API -*/ +// DestroyOne swagger:route DELETE /{id} todos destroyOne +// +// DestroyOne destroy one API type DestroyOne struct { Context *middleware.Context Handler DestroyOneHandler diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_parameters.go b/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_parameters.go index ab647b06..7f0d3637 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_parameters.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_parameters.go @@ -26,11 +26,8 @@ func NewDestroyOneParams() DestroyOneParams { type DestroyOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - Required: true - In: path - */ + // Required: true + // In: path ID int64 } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_responses.go b/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_responses.go index 0e4cef10..d985383a 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_responses.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/destroy_one_responses.go @@ -12,11 +12,9 @@ import ( // DestroyOneNoContentCode is the HTTP code returned for type DestroyOneNoContent const DestroyOneNoContentCode int = 204 -/* -DestroyOneNoContent Deleted - -swagger:response destroyOneNoContent -*/ +// DestroyOneNoContent Deleted +// +// swagger:response destroyOneNoContent type DestroyOneNoContent struct { } @@ -34,17 +32,13 @@ func (o *DestroyOneNoContent) WriteResponse(rw http.ResponseWriter, producer run rw.WriteHeader(204) } -/* -DestroyOneDefault error - -swagger:response destroyOneDefault -*/ +// DestroyOneDefault error +// +// swagger:response destroyOneDefault type DestroyOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos.go b/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos.go index ebffd124..04bf8fc1 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos.go @@ -26,11 +26,9 @@ func NewFindTodos(ctx *middleware.Context, handler FindTodosHandler) *FindTodos return &FindTodos{Context: ctx, Handler: handler} } -/* - FindTodos swagger:route GET / todos findTodos - -FindTodos find todos API -*/ +// FindTodos swagger:route GET / todos findTodos +// +// FindTodos find todos API type FindTodos struct { Context *middleware.Context Handler FindTodosHandler diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_parameters.go b/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_parameters.go index 8fbe147d..8ce8db8c 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_parameters.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_parameters.go @@ -34,16 +34,10 @@ func NewFindTodosParams() FindTodosParams { type FindTodosParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: query - Default: 20 - */ + // In: query + // Default: 20 Limit *int32 - - /* - In: query - */ + // In: query Since *int64 } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_responses.go b/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_responses.go index 5a44b5d7..89db01c9 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_responses.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/find_todos_responses.go @@ -12,16 +12,12 @@ import ( // FindTodosOKCode is the HTTP code returned for type FindTodosOK const FindTodosOKCode int = 200 -/* -FindTodosOK list the todo operations - -swagger:response findTodosOK -*/ +// FindTodosOK list the todo operations +// +// swagger:response findTodosOK type FindTodosOK struct { - /* - In: Body - */ + // In: Body Payload []*models.Item `json:"body,omitempty"` } @@ -57,17 +53,13 @@ func (o *FindTodosOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -FindTodosDefault generic error response - -swagger:response findTodosDefault -*/ +// FindTodosDefault generic error response +// +// swagger:response findTodosDefault type FindTodosDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/update_one.go b/tutorials/todo-list/server-complete/restapi/operations/todos/update_one.go index d7a2654d..1ad878ca 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/update_one.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/update_one.go @@ -26,11 +26,9 @@ func NewUpdateOne(ctx *middleware.Context, handler UpdateOneHandler) *UpdateOne return &UpdateOne{Context: ctx, Handler: handler} } -/* - UpdateOne swagger:route PUT /{id} todos updateOne - -UpdateOne update one API -*/ +// UpdateOne swagger:route PUT /{id} todos updateOne +// +// UpdateOne update one API type UpdateOne struct { Context *middleware.Context Handler UpdateOneHandler diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_parameters.go b/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_parameters.go index f21d9b00..02d9763a 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_parameters.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_parameters.go @@ -29,16 +29,10 @@ func NewUpdateOneParams() UpdateOneParams { type UpdateOneParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` - - /* - In: body - */ + // In: body Body *models.Item - - /* - Required: true - In: path - */ + // Required: true + // In: path ID int64 } diff --git a/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_responses.go b/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_responses.go index 2a6f5d01..bf53da04 100644 --- a/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_responses.go +++ b/tutorials/todo-list/server-complete/restapi/operations/todos/update_one_responses.go @@ -12,16 +12,12 @@ import ( // UpdateOneOKCode is the HTTP code returned for type UpdateOneOK const UpdateOneOKCode int = 200 -/* -UpdateOneOK OK - -swagger:response updateOneOK -*/ +// UpdateOneOK OK +// +// swagger:response updateOneOK type UpdateOneOK struct { - /* - In: Body - */ + // In: Body Payload *models.Item `json:"body,omitempty"` } @@ -54,17 +50,13 @@ func (o *UpdateOneOK) WriteResponse(rw http.ResponseWriter, producer runtime.Pro } } -/* -UpdateOneDefault error - -swagger:response updateOneDefault -*/ +// UpdateOneDefault error +// +// swagger:response updateOneDefault type UpdateOneDefault struct { _statusCode int - /* - In: Body - */ + // In: Body Payload *models.Error `json:"body,omitempty"` }