Rename schema_data to spec_data for consistency

This commit is contained in:
Brandur 2017-03-14 16:55:06 -07:00
parent 4d7019bee6
commit effce7f181

View File

@ -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.