forked from loafle/openapi-generator-original
update crystal samples
This commit is contained in:
parent
c4a6c4a542
commit
04169ec29b
@ -1,11 +1,11 @@
|
||||
# OpenAPI Petstore
|
||||
# #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.
|
||||
##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
|
||||
#The version of the OpenAPI document: 1.0.0
|
||||
#
|
||||
# Generated by: https://openapi-generator.tech
|
||||
# Generator version: 7.13.0-SNAPSHOT
|
||||
#Generated by: https://openapi-generator.tech
|
||||
#Generator version: 7.13.0-SNAPSHOT
|
||||
#
|
||||
|
||||
# load modules
|
||||
@ -17,7 +17,7 @@ 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)
|
||||
expect(result.success?).to be_false
|
||||
expect(buffer.to_s).to contain message
|
||||
result.success?.should be_false
|
||||
buffer.to_s.should contain message
|
||||
buffer.close
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user