Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to describe OpenAPI? #3

Open
OlegKunitsyn opened this issue Mar 3, 2024 · 0 comments
Open

How to describe OpenAPI? #3

OlegKunitsyn opened this issue Mar 3, 2024 · 0 comments

Comments

@OlegKunitsyn
Copy link

#[JsonRPCAPI(methodName: 'product.echo', type: 'POST')]
class JsonRpcProductEchoMethod
{
    public function call(EchoDto $dto): EchoDto
    {
        return $dto;
    }
}

produces unexpected echoRequest and echoMainRequest schemas

product.echoRequest:
    type: object
    properties: {  }
    required: {  }
product.echoMainRequest:
    type: object
    properties: { jsonrpc: { type: string, format: '', default: '2.0', example: '2.0' }, method: { type: string, format: '', default: product.echo, example: product.echo }, params: { $ref: '#/components/schemas/product.echoRequest' } }
    required: [jsonrpc, method, params]
EchoDtoResponse:
    type: object
    properties: { jsonrpc: { type: string, format: '', default: '2.0', example: '2.0' }, tenant: { type: string, format: '', default: '', example: '' }, product: { type: App\Dto\ProductDto, format: '', default: '', example: '' } }
    required: [jsonrpc, tenant, product]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant