Skip to content

Commit

Permalink
Remove remaining references to "Swagger"
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Jul 8, 2024
1 parent de6872e commit c9c822c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 38 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ task :default => [:spec]

REQUIRED_RUBY_VERSION = ">= 3.3"

desc "Run Swagger Code Generator to update the client from the Swagger spec"
desc "Run OpenAPI Generator to update the client from the spec"
task :generate do
spec_filename = 'open_api_spec.yaml'
# Download latest swagger spec
# Download latest spec
sh "wget https://api.ynab.com/papi/#{spec_filename} -O ./#{spec_filename}"
# Remove existing generated files to ensure old files are not included in the gem
sh "rm -r docs/ lib/ynab/models/"
Expand Down
12 changes: 0 additions & 12 deletions lib/ynab/api_error.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
=begin
#YNAB API Endpoints
#Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.0-SNAPSHOT
=end

module YNAB
class ApiError < StandardError
attr_reader :code, :response_headers, :response_body
Expand Down
12 changes: 0 additions & 12 deletions lib/ynab/overrides/transactions_api.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
=begin
#YNAB API Endpoints
#Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.0-SNAPSHOT
=end

require 'uri'
require 'ynab/api/deprecated_api'

Expand Down
12 changes: 0 additions & 12 deletions lib/ynab/version.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
=begin
#YNAB API Endpoints
#Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.0-SNAPSHOT
=end

module YNAB
VERSION = '3.2.0'
end

0 comments on commit c9c822c

Please sign in to comment.