Sha256: f1a517c901ba57a7639ddb0bb05d86bec59756d343283de4896d262a32158b61
Contents?: true
Size: 471 Bytes
Versions: 2
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true module WeakSwaggerParameters module Definitions class CollectionRef def initialize(model_class) @model_class = model_class end def apply_docs(parent_node) model_class = @model_class parent_node.instance_eval do schema type: :array do items do key :'$ref', model_class.docs_model_name end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weak_swagger_parameters-0.6.0 | lib/weak_swagger_parameters/definitions/collection_ref.rb |
weak_swagger_parameters-0.5.0 | lib/weak_swagger_parameters/definitions/collection_ref.rb |