Sha256: 2e8bd4ed4b9ced1691776082057086a3fe2e3b49ad8536127465397f67b0bf45
Contents?: true
Size: 696 Bytes
Versions: 36
Compression:
Stored size: 696 Bytes
Contents
# TODO: support examples module OpenAPIParser::Schemas class Parameter < Base openapi_attr_values :name, :in, :description, :required, :deprecated, :style, :explode, :example openapi_attr_value :allow_empty_value, schema_key: :allowEmptyValue openapi_attr_value :allow_reserved, schema_key: :allowReserved # @!attribute [r] schema # @return [Schema, Reference, nil] openapi_attr_object :schema, Schema, reference: true # @return [Object] coerced or original params # @param [OpenAPIParser::SchemaValidator::Options] options def validate_params(params, options) ::OpenAPIParser::SchemaValidator.validate(params, schema, options) end end end
Version data entries
36 entries across 36 versions & 2 rubygems