Download the PHP package cydrickn/openapi-validator-bundle without Composer
On this page you can find all versions of the php package cydrickn/openapi-validator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cydrickn/openapi-validator-bundle
More information about cydrickn/openapi-validator-bundle
Files in cydrickn/openapi-validator-bundle
Download cydrickn/openapi-validator-bundle
More information about cydrickn/openapi-validator-bundle
Files in cydrickn/openapi-validator-bundle
Vendor cydrickn
Package openapi-validator-bundle
Short Description Open Api Generator and Validator
License MIT
Package openapi-validator-bundle
Short Description Open Api Generator and Validator
License MIT
Please rate this library. Is it a good library?
Informations about the package openapi-validator-bundle
OpenApi Validator Bundle
Symfony Bundle for validating Request and Response based on open api specification 3.
Requirements
- Symfony >= 5
- PHP >= 7.4
- PHP Extension JSON
Optional
- nelmio/api-doc-bundle >= 4.0 (Currently in Beta)
- Why 4.0, version 3 and below only supports version 2 of OpenAPI Specification.
Installation
Setting Up
Add the bundle in your config/bundles.php
Add configuration config/packages/cydrickn_openapi_validator.yml
Configurations
Config | Type | Required | Accepted Value | Default | Description |
---|---|---|---|---|---|
validate_request | Boolean | Yes | true or false | true | Enable validating of request |
validate_response | Boolean | Yes | true or false | true | Enable validating of response |
schema.factory | String | Yes | yaml-file, json-file or nelmio | yaml-file | Factory to use to generate the schema for validation |
schema.file | String | Required only for yaml-file and json-file | File path of the specification |
TODO
- [x] Add Nelmio Api Schema Factory
- [x] Add Dynamic Configuration
- [x] Add document
- [ ] Add Route Schema Factory
- [ ] Add PHP file Schema Factory
- [ ] Code coverage of 100%
- [ ] Add CI
- [ ] Support Lower PHP Version >= 7.1
- [ ] Support Lower Symfony Version >= 3
All versions of openapi-validator-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
ext-json Version *
psr/http-message Version ^1.0
symfony/framework-bundle Version ^5.1
league/openapi-psr7-validator Version ^0.16.0
symfony/psr-http-message-bridge Version ^2.0
nyholm/psr7 Version ^1.3
ext-json Version *
psr/http-message Version ^1.0
symfony/framework-bundle Version ^5.1
league/openapi-psr7-validator Version ^0.16.0
symfony/psr-http-message-bridge Version ^2.0
nyholm/psr7 Version ^1.3
The package cydrickn/openapi-validator-bundle contains the following files
Loading the files please wait ....