-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from hahwul/dev
Release 0.8.0
- Loading branch information
Showing
31 changed files
with
813 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: noir | ||
version: 0.7.3 | ||
version: 0.8.0 | ||
|
||
authors: | ||
- hahwul <[email protected]> | ||
|
21 changes: 21 additions & 0 deletions
21
spec/functional_test/fixtures/oas3/multiple_docs/first.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Gem Store API | ||
version: 1.0.0 | ||
description: Sample API for managing pets in a Gem store. | ||
servers: | ||
- url: 'https://api.example.com/v1' | ||
paths: | ||
/gems: | ||
get: | ||
summary: Get a list of pets | ||
responses: | ||
'200': | ||
description: A list of pets | ||
content: | ||
application/json: | ||
example: | ||
- id: 1 | ||
name: Ruby | ||
- id: 2 | ||
name: Crystal |
21 changes: 21 additions & 0 deletions
21
spec/functional_test/fixtures/oas3/multiple_docs/second.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Gem Store API | ||
version: 1.0.0 | ||
description: Sample API for managing pets in a Gem store. | ||
servers: | ||
- url: 'https://api.example.com/v1' | ||
paths: | ||
/shards: | ||
get: | ||
summary: Get a list of pets | ||
responses: | ||
'200': | ||
description: A list of pets | ||
content: | ||
application/json: | ||
example: | ||
- id: 1 | ||
name: Ruby | ||
- id: 2 | ||
name: Crystal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require "../../../src/models/deliver.cr" | ||
require "../../../src/options.cr" | ||
|
||
describe "Initialize" do | ||
options = default_options | ||
options[:base] = "noir" | ||
options[:send_proxy] = "http://localhost:8090" | ||
|
||
it "Deliver" do | ||
object = Deliver.new options | ||
object.proxy.should eq("http://localhost:8090") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
require "../../../src/models/output_builder.cr" | ||
require "../../../src/options.cr" | ||
|
||
describe "Initialize" do | ||
options = default_options | ||
options[:base] = "noir" | ||
options[:scope] = "param" | ||
|
||
it "OutputBuilder" do | ||
object = OutputBuilder.new options | ||
object.scope.should eq("param") | ||
end | ||
|
||
it "OutputBuilderCommon" do | ||
object = OutputBuilderCommon.new options | ||
object.scope.should eq("param") | ||
end | ||
|
||
it "OutputBuilderCurl" do | ||
object = OutputBuilderCurl.new options | ||
object.scope.should eq("param") | ||
end | ||
|
||
it "OutputBuilderHttpie" do | ||
object = OutputBuilderHttpie.new options | ||
object.scope.should eq("param") | ||
end | ||
|
||
it "OutputBuilderMarkdownTable" do | ||
object = OutputBuilderMarkdownTable.new options | ||
object.scope.should eq("param") | ||
end | ||
|
||
it "OutputBuilderOas2" do | ||
object = OutputBuilderOas2.new options | ||
object.scope.should eq("param") | ||
end | ||
|
||
it "OutputBuilderOas3" do | ||
object = OutputBuilderOas3.new options | ||
object.scope.should eq("param") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.