Skip to content

Commit 99c6720

Browse files
committed
API Blueprint view object respects required: false for parameters now
1 parent 229fe27 commit 99c6720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation/views/api_blueprint_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def fields(property_name, examples)
7474
.uniq { |property| property[:name] }
7575
.map do |property|
7676
properties = []
77-
properties << "required" if property[:required]
77+
properties << "optional" if !property[:required]
7878
properties << property[:type] if property[:type]
7979
if properties.count > 0
8080
property[:properties_description] = properties.join(", ")

0 commit comments

Comments
 (0)