mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-03 00:01:47 -04:00
Rename schema_data
to spec_data
for consistency
This commit is contained in:
parent
4d7019bee6
commit
effce7f181
@ -98,10 +98,10 @@ module APIStubHelpers
|
|||||||
# Finds the latest OpenAPI specification in ROOT/openapi/ and parses it for
|
# Finds the latest OpenAPI specification in ROOT/openapi/ and parses it for
|
||||||
# use with Committee.
|
# use with Committee.
|
||||||
def self.initialize_spec
|
def self.initialize_spec
|
||||||
schema_data = ::JSON.parse(File.read("#{PROJECT_ROOT}/openapi/spec.json"))
|
spec_data = ::JSON.parse(File.read("#{PROJECT_ROOT}/openapi/spec.json"))
|
||||||
|
|
||||||
driver = Committee::Drivers::OpenAPI2.new
|
driver = Committee::Drivers::OpenAPI2.new
|
||||||
driver.parse(schema_data)
|
driver.parse(spec_data)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a new Rack app with Committee middleware it.
|
# Creates a new Rack app with Committee middleware it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user