Sha256: c23c80607cdeb9d669a27bb0d8742360f50cd06173914b9073afcb6806f893b7
Contents?: true
Size: 917 Bytes
Versions: 5
Compression:
Stored size: 917 Bytes
Contents
RSpec.describe :build_schema do link :build_schema, from: :ree_swagger it { schema = build_schema( title: 'Sample API', description: 'Sample API description', version: '0.0.1', endpoints: [ReeSwagger::EndpointDto.new( method: :get, path: '/version', caster: nil, serializer: nil, response_status: 200, description: nil, errors: [] )] ) expect(schema).to eq( { openapi: '3.0.0', info: { title: 'Sample API', description: 'Sample API description', version: '0.0.1' }, paths: { '/version' => { get: { responses: { 200 => { description: '' } } } } } } ) } end
Version data entries
5 entries across 5 versions & 1 rubygems