Code Monkey home page Code Monkey logo

http-router-openapi's People

Contributors

fenric avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

http-router-openapi's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Unsupported composer value

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

circleci
.circleci/config.yml
  • circleci/php 7.1-cli-node-browsers
  • circleci/php 7.2-cli-node-browsers
  • circleci/php 7.3-cli-node-browsers
  • circleci/php 7.4-cli-node-browsers
  • circleci/php 8.0-cli-node-browsers
composer
composer.json
  • php ^7.1|^8.0
  • doctrine/annotations ^1.6
  • phpunit/phpunit 7.5.20|9.5.0
  • sunrise/coding-standard 1.0.0
  • sunrise/http-factory 1.1.0
  • sunrise/http-router ^2.11
  • symfony/console ^4.4
  • justinrainbow/json-schema 5.2.10

  • Check this box to trigger a request for Renovate to run again on this repository

Create middleware that will convert a request parsed body to DTO

The idea is as follows: if requestBody refers to a class, then such a class is considered a DTO, therefore we can work not with an array, but with a valid object.

/**
 * @OpenApi\Operation(
 *   requestBody=@OpenApi\RequestBodyReference("\App\Dto\AdminAuthRequest"),
 *   responses={
 *     200: @OpenApi\Response(
 *       description="OK",
 *     ),
 *   },
 * )
 */
#[Routing\Route('admin.signIn', path: '/admin/v1/sign-in', method: 'POST')]
#[Routing\Middleware(RequestBodyMappingMiddleware::class)] // something like that...
public function signIn(ServerRequestInterface $request) : ResponseInterface
{
    /** @var \App\Dto\AdminAuthRequest */
    $authRequest = $request->getParsedBody();

    // tries to auth an admin by the request...
    $admin = $this->adminService->authByRequest($authRequest);

    // some code...
}

Hydration should based on the following package:

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.