Sha256: 14ca46ca13b53c5fe37d42fa362a03355b09f76c7fc62e3621b543daae094079
Contents?: true
Size: 611 Bytes
Versions: 36
Compression:
Stored size: 611 Bytes
Contents
module OpenAPIParser::Schemas class Header < Base openapi_attr_values :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 # validate by schema # @param [Object] value def validate(value) OpenAPIParser::SchemaValidator.validate(value, schema, OpenAPIParser::SchemaValidator::Options.new) end end end
Version data entries
36 entries across 36 versions & 2 rubygems