Sha256: b929642b23c169de46903a2a77ebaf736e575ff005bada258500500db8ea64a1
Contents?: true
Size: 398 Bytes
Versions: 42
Compression:
Stored size: 398 Bytes
Contents
module OasParser class Payload def formats return [] unless content content.keys end def schema(format) content[format]['schema'] end def split_schemas(format) content[format]['schema']['oneOf'] end def exhibits_one_of_multiple_schemas?(format) return false unless content schema(format).keys.include?('oneOf') end end end
Version data entries
42 entries across 42 versions & 2 rubygems