Skip to content

Commit

Permalink
add "blank allowed" message to api doc (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
pekopekopekopayo authored May 28, 2024
1 parent 4b464be commit 1ea8d7a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/apipie/apipies/_params.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<small>
<%= param[:required] ? t('apipie.required') : t('apipie.optional') %>
<%= param[:allow_nil] ? ', '+t('apipie.nil_allowed') : '' %>
<%= param[:allow_blank] ? ', '+t('apipie.blank_allowed') : '' %>
</small>
</td>
<td>
Expand Down
1 change: 1 addition & 0 deletions app/views/apipie/apipies/_params_plain.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<small>
<%= param[:required] ? t('apipie.required') : t('apipie.optional') %>
<%= param[:allow_nil] ? ', '+t('apipie.nil_allowed') : '' %>
<%= param[:allow_blank] ? ', '+t('apipie.blank_allowed') : '' %>
<% if param[:validator] %>
[ <%= Apipie.markup_to_html(param[:validator]).html_safe %> ]
<% end %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ en:
required: required
optional: optional
nil_allowed: nil allowed
blank_allowed: blank allowed
param_name: Param name
params: Params
examples: Examples
Expand Down
1 change: 1 addition & 0 deletions config/locales/ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ko:
required: 필수
optional: 옵션
nil_allowed: nil 허용
blank_allowed: blank 허용
param_name: Param 이름
params: Params
examples: 예시
Expand Down

0 comments on commit 1ea8d7a

Please sign in to comment.