ernestwisniewski/kbin

View on GitHub
src/Schema/Errors/TooManyRequestsErrorSchema.php

Summary

Maintainability
A
40 mins
Test Coverage
<?php

// SPDX-FileCopyrightText: 2023 /kbin contributors <https://kbin.pub/>
//
// SPDX-License-Identifier: AGPL-3.0-only

declare(strict_types=1);

namespace App\Schema\Errors;

use OpenApi\Attributes as OA;

#[OA\Schema(
    type: 'object',
    properties: [
        new OA\Property(property: 'type', type: 'string', example: 'https://tools.ietf.org/html/rfc2616#section-10'),
        new OA\Property(property: 'title', type: 'string', example: 'An error occurred'),
        new OA\Property(property: 'status', type: 'integer', example: 429),
        new OA\Property(property: 'detail', type: 'string', example: 'Too Many Requests'),
    ]
)]
class TooManyRequestsErrorSchema
{
}