mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
Separates create and update excluded request attributes on file generation
This commit is contained in:
parent
55c7ec77cb
commit
ec3a318f53
@ -36,7 +36,11 @@ module Swagger
|
||||
V1::#{@model_name.classify}Serializer
|
||||
end
|
||||
|
||||
def excluded_request_attributes
|
||||
def excluded_create_request_attributes
|
||||
%i[updated_at created_at]
|
||||
end
|
||||
|
||||
def excluded_update_request_attributes
|
||||
%i[updated_at created_at]
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user