|
| 1 | +--- |
1 | 2 | en:
|
2 | 3 | grape:
|
3 | 4 | errors:
|
4 |
| - format: ! '%{attributes} %{message}' |
| 5 | + format: '%{attributes} %{message}' |
5 | 6 | messages:
|
6 |
| - coerce: 'is invalid' |
7 |
| - presence: 'is missing' |
8 |
| - regexp: 'is invalid' |
| 7 | + all_or_none: 'provide all or none of parameters' |
| 8 | + at_least_one: 'are missing, at least one parameter must be provided' |
9 | 9 | blank: 'is empty'
|
10 |
| - values: 'does not have a valid value' |
| 10 | + coerce: 'is invalid' |
| 11 | + conflicting_types: 'query params contains conflicting types' |
| 12 | + empty_message_body: 'empty message body supplied with %{body_format} content-type' |
| 13 | + exactly_one: 'are missing, exactly one parameter must be provided' |
11 | 14 | except_values: 'has a value not allowed'
|
12 |
| - same_as: 'is not the same as %{parameter}' |
| 15 | + incompatible_option_values: '%{option1}: %{value1} is incompatible with %{option2}: %{value2}' |
| 16 | + invalid_accept_header: |
| 17 | + problem: 'invalid accept header' |
| 18 | + resolution: '%{message}' |
| 19 | + invalid_formatter: 'cannot convert %{klass} to %{to_format}' |
| 20 | + invalid_message_body: |
| 21 | + problem: 'message body does not match declared format' |
| 22 | + resolution: 'when specifying %{body_format} as content-type, you must pass valid %{body_format} in the request''s ''body'' ' |
| 23 | + invalid_parameters: 'query params contains invalid format or byte sequence' |
| 24 | + invalid_response: 'Invalid response' |
| 25 | + invalid_version_header: |
| 26 | + problem: 'invalid version header' |
| 27 | + resolution: '%{message}' |
| 28 | + invalid_versioner_option: |
| 29 | + problem: 'unknown :using for versioner: %{strategy}' |
| 30 | + resolution: 'available strategy for :using is :path, :header, :accept_version_header, :param' |
| 31 | + invalid_with_option_for_represent: |
| 32 | + problem: 'you must specify an entity class in the :with option' |
| 33 | + resolution: 'eg: represent User, :with => Entity::User' |
13 | 34 | length: 'is expected to have length within %{min} and %{max}'
|
14 | 35 | length_is: 'is expected to have length exactly equal to %{is}'
|
15 |
| - length_min: 'is expected to have length greater than or equal to %{min}' |
16 | 36 | length_max: 'is expected to have length less than or equal to %{max}'
|
17 |
| - missing_vendor_option: |
18 |
| - problem: 'missing :vendor option' |
19 |
| - summary: 'when version using header, you must specify :vendor option' |
20 |
| - resolution: "eg: version 'v1', using: :header, vendor: 'twitter'" |
| 37 | + length_min: 'is expected to have length greater than or equal to %{min}' |
| 38 | + missing_group_type: 'group type is required' |
21 | 39 | missing_mime_type:
|
22 | 40 | problem: 'missing mime type for %{new_format}'
|
23 |
| - resolution: |
24 |
| - "you can choose existing mime type from Grape::ContentTypes::CONTENT_TYPES |
25 |
| - or add your own with content_type :%{new_format}, 'application/%{new_format}' |
26 |
| - " |
27 |
| - invalid_with_option_for_represent: |
28 |
| - problem: 'you must specify an entity class in the :with option' |
29 |
| - resolution: 'eg: represent User, :with => Entity::User' |
| 41 | + resolution: 'you can choose existing mime type from Grape::ContentTypes::CONTENT_TYPES or add your own with content_type :%{new_format}, ''application/%{new_format}'' ' |
30 | 42 | missing_option: 'you must specify :%{option} options'
|
31 |
| - invalid_formatter: 'cannot convert %{klass} to %{to_format}' |
32 |
| - invalid_versioner_option: |
33 |
| - problem: 'unknown :using for versioner: %{strategy}' |
34 |
| - resolution: 'available strategy for :using is :path, :header, :accept_version_header, :param' |
35 |
| - unknown_validator: 'unknown validator: %{validator_type}' |
36 |
| - unknown_params_builder: 'unknown params_builder: %{params_builder_type}' |
| 43 | + missing_vendor_option: |
| 44 | + problem: 'missing :vendor option' |
| 45 | + resolution: 'eg: version ''v1'', using: :header, vendor: ''twitter''' |
| 46 | + summary: 'when version using header, you must specify :vendor option' |
| 47 | + mutual_exclusion: 'are mutually exclusive' |
| 48 | + presence: 'is missing' |
| 49 | + regexp: 'is invalid' |
| 50 | + same_as: 'is not the same as %{parameter}' |
| 51 | + too_deep_parameters: 'query params are recursively nested over the specified limit (%{limit})' |
| 52 | + too_many_multipart_files: 'the number of uploaded files exceeded the system''s configured limit (%{limit})' |
| 53 | + unknown_auth_strategy: 'unknown auth strategy: %{strategy}' |
37 | 54 | unknown_options: 'unknown options: %{options}'
|
38 | 55 | unknown_parameter: 'unknown parameter: %{param}'
|
39 |
| - incompatible_option_values: '%{option1}: %{value1} is incompatible with %{option2}: %{value2}' |
40 |
| - mutual_exclusion: 'are mutually exclusive' |
41 |
| - at_least_one: 'are missing, at least one parameter must be provided' |
42 |
| - exactly_one: 'are missing, exactly one parameter must be provided' |
43 |
| - all_or_none: 'provide all or none of parameters' |
44 |
| - missing_group_type: 'group type is required' |
| 56 | + unknown_params_builder: 'unknown params_builder: %{params_builder_type}' |
| 57 | + unknown_validator: 'unknown validator: %{validator_type}' |
45 | 58 | unsupported_group_type: 'group type must be Array, Hash, JSON or Array[JSON]'
|
46 |
| - invalid_message_body: |
47 |
| - problem: "message body does not match declared format" |
48 |
| - resolution: |
49 |
| - "when specifying %{body_format} as content-type, you must pass valid |
50 |
| - %{body_format} in the request's 'body' |
51 |
| - " |
52 |
| - empty_message_body: 'empty message body supplied with %{body_format} content-type' |
53 |
| - too_many_multipart_files: "the number of uploaded files exceeded the system's configured limit (%{limit})" |
54 |
| - invalid_accept_header: |
55 |
| - problem: 'invalid accept header' |
56 |
| - resolution: '%{message}' |
57 |
| - invalid_version_header: |
58 |
| - problem: 'invalid version header' |
59 |
| - resolution: '%{message}' |
60 |
| - invalid_response: 'Invalid response' |
61 |
| - conflicting_types: 'query params contains conflicting types' |
62 |
| - invalid_parameters: 'query params contains invalid format or byte sequence' |
63 |
| - too_deep_parameters: 'query params are recursively nested over the specified limit (%{limit})' |
| 59 | + values: 'does not have a valid value' |
0 commit comments