From b85f0d11a5b5da514a8b1d7bd20ff89a106dd9b7 Mon Sep 17 00:00:00 2001 From: Mike Fotinakis Date: Fri, 29 Jan 2016 15:48:50 -0800 Subject: [PATCH] Bump version. --- README.md | 10 +++++++--- lib/swagger/blocks/version.rb | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 03af798..a5cff73 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: @@ -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. diff --git a/lib/swagger/blocks/version.rb b/lib/swagger/blocks/version.rb index 2586391..1f3b419 100644 --- a/lib/swagger/blocks/version.rb +++ b/lib/swagger/blocks/version.rb @@ -1,5 +1,5 @@ module Swagger module Blocks - VERSION = '1.2.0' + VERSION = '1.3.0' end end