forked from loafle/openapi-generator-original
23 lines
645 B
Crystal
23 lines
645 B
Crystal
# #OpenAPI Petstore
|
|
#
|
|
##This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
#
|
|
#The version of the OpenAPI document: 1.0.0
|
|
#
|
|
#Generated by: https://openapi-generator.tech
|
|
#OpenAPI Generator version: 6.5.0-SNAPSHOT
|
|
#
|
|
|
|
# load modules
|
|
require "spec"
|
|
require "json"
|
|
require "../src/petstore"
|
|
|
|
def assert_compilation_error(path : String, message : String) : Nil
|
|
buffer = IO::Memory.new
|
|
result = Process.run("crystal", ["run", "--no-color", "--no-codegen", path], error: buffer)
|
|
result.success?.should be_false
|
|
buffer.to_s.should contain message
|
|
buffer.close
|
|
end
|