Skip to content

Commit

Permalink
Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
fotinakis committed Jan 29, 2016
1 parent 28fbd20 commit b85f0d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ The `key` block simply takes the value you give and puts it directly into the fi

#### Inline keys

It is possible to condensed syntax to omit numerous `key` calls using hash argument.
It is possible to omit numerous `key` calls using inline hash keys on any block.

All three calls are equal:
All three calls are equivalent:

```ruby
parameter do
Expand All @@ -354,11 +354,14 @@ end
```

```ruby
parameter paramType: :path, name: :petId,
parameter paramType: :path,
name: :petId,
description: 'ID of pet that needs to be fetched',
type: :string
```

These inline keys can be used on any block, not just `parameter` blocks.

#### Writing JSON to a file

If you are not serving the JSON directly and need to write it to a file for some reason, you can easily use `build_root_json` for that as well:
Expand Down Expand Up @@ -410,6 +413,7 @@ Throw a ★ on it! :)

## Release notes

* v1.3.0: Added support for condensed syntax via inline keys on every block.
* v1.2.0: Improved support for `$ref` Path Item Object parameters.
* v1.1.3: Rename tags directive to tag for consistency.
* v1.1.2: Bugfix for security definition support.
Expand Down
2 changes: 1 addition & 1 deletion lib/swagger/blocks/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Swagger
module Blocks
VERSION = '1.2.0'
VERSION = '1.3.0'
end
end

0 comments on commit b85f0d1

Please sign in to comment.