定制 softonic/openapi-validation-formats-extension 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

softonic/openapi-validation-formats-extension

Composer 安装命令:

composer require softonic/openapi-validation-formats-extension

包简介

Softonic OpenApi validation formats extension

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads Average time to resolve an issue Percentage of issues still open

This library adds some format validation for OpenAPI validation middleware package.

Installation

Via composer:

composer require softonic/openapi-validation-formats-extension

Documentation

Once installed you will be able to register the formats that you want from this package.

In this example we can see how to register the UUID format.

$validator = new OpenApiValidation(base_path() . '/swagger.json');
$validator->addFormat('string', 'uuid', new Uuid());

For more information about format registration refer to the OpenAPI validation middleware package documentation.

Testing

softonic/openapi-validation-formats-extension has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer.

To run the tests, run the following command from the project folder.

$ docker-compose run tests

To run interactively using PsySH:

$ docker-compose run psysh

License

The Apache 2.0 license. Please see LICENSE for more information.

统计信息

  • 总下载量: 53.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-07-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固