Skip to content

Commit 3f7f501

Browse files
committed
add docs for any type
1 parent 2149263 commit 3f7f501

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1.3.0
44

5-
- Add `:any` type to skip type validation for a given param.
5+
- Add `any` type to skip type validation for a given param.
66

77
## 1.2.7
88

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ Type `:date`. Defines a date parameter. Must be a `Date`.
781781

782782
- [`:array`](#array-type)
783783
- [`:hash`](#hash-type)
784+
- [`:any`](#any-type)
784785

785786
#### Array type
786787

@@ -822,6 +823,14 @@ param :only_scalars, type: :hash
822823
param :non_scalars_too, type: :hash, allow_non_scalars: true
823824
```
824825

826+
#### Any type
827+
828+
Type `:any`. Defines a parameter that is not type checked.
829+
830+
```ruby
831+
param :anything_goes, type: :any
832+
```
833+
825834
### Custom types
826835

827836
You may register custom types that can be utilized in your schemas.

0 commit comments

Comments
 (0)