openapi-psr7-validator
It validates PSR-7 messages (HTTP request/response) against OpenAPI specifications
File Explorer
Download Latest Version (.zip)- pre-commit
- ci.yml
- ArrayHelper.php
- InvalidRequestMessage.php
- InvalidResponseMessage.php
- InvalidServerRequestMessage.php
- SlimAdapter.php
- ValidationMiddleware.php
- ValidationMiddlewareBuilder.php
- AddressValidationFailed.php
- InvalidBody.php
- InvalidCookies.php
- InvalidHeaders.php
- InvalidParameter.php
- InvalidPath.php
- InvalidQueryArgs.php
- InvalidSecurity.php
- RequiredParameterMissing.php
- MultipleOperationsMismatchForRequest.php
- NoCallback.php
- NoContentType.php
- NoOperation.php
- NoPath.php
- NoResponseCode.php
- ValidationFailed.php
- FileFactory.php
- JsonFactory.php
- JsonFileFactory.php
- PrecreatedSchemaFactory.php
- StringFactory.php
- YamlFactory.php
- YamlFileFactory.php
- BodyDeserialization.php
- BodyValidator.php
- FormUrlencodedValidator.php
- MultipartValidator.php
- UnipartValidator.php
- CookiesValidator.php
- RequestCookieValidator.php
- ServerRequestCookieValidator.php
- ArrayValidator.php
- HeadersValidator.php
- PathValidator.php
- QueryArgumentsValidator.php
- SecurityValidator.php
- SerializedParameter.php
- ValidationStrategy.php
- ValidatorChain.php
- CacheableSchemaFactory.php
- CallbackAddress.php
- CallbackRequestValidator.php
- CallbackResponseAddress.php
- CallbackResponseValidator.php
- MessageValidator.php
- OperationAddress.php
- PathFinder.php
- RequestValidator.php
- ResponseAddress.php
- ResponseValidator.php
- ReusableSchema.php
- RoutedServerRequestValidator.php
- SchemaFactory.php
- ServerRequestValidator.php
- SpecFinder.php
- ValidatorBuilder.php
- ContentTypeMismatch.php
- FormatMismatch.php
- InvalidSchema.php
- KeywordMismatch.php
- NotEnoughValidSchemas.php
- SchemaMismatch.php
- TooManyValidSchemas.php
- TypeMismatch.php
- AdditionalProperties.php
- AllOf.php
- AnyOf.php
- BaseKeyword.php
- Discriminator.php
- Enum.php
- Items.php
- Maximum.php
- MaxItems.php
- MaxLength.php
- MaxProperties.php
- Minimum.php
- MinItems.php
- MinLength.php
- MinProperties.php
- MultipleOf.php
- Not.php
- Nullable.php
- OneOf.php
- Pattern.php
- Properties.php
- Required.php
- Type.php
- UniqueItems.php
- FormatsContainer.php
- None.php
- NumberDouble.php
- NumberFloat.php
- StringByte.php
- StringDate.php
- StringDateTime.php
- StringEmail.php
- StringHostname.php
- StringIP4.php
- StringIP6.php
- StringURI.php
- StringUUID.php
- BreadCrumb.php
- SchemaValidator.php
- Validator.php
- EmptyObjectValidationTest.php
- HeaderParametersReferenceResolution.php
- Issue12Test.php
- Issue140Test.php
- Issue17Test.php
- Issue19Test.php
- Issue32Test.php
- Issue3Test.php
- Issue4Test.php
- Issue50Test.php
- Issue52Test.php
- Issue57Test.php
- Issue62Test.php
- Issue79Test.php
- Issue93Test.php
- IssueWithNullableMergeTest.php
- IssueWithQueryArrayTest.php
- IssueWithRefTest.php
- NullableSchemaTest.php
- readme.md
- RouteCollisionIssueTest.php
- ValidationMiddlewareTest.php
- MultipartValidatorTest.php
- BodyValidatorTest.php
- SecurityApiKeyTest.php
- SecurityHTTPTest.php
- SerializedParameterTest.php
- BaseValidatorTest.php
- CallbackRequestTest.php
- CallbackResponseTest.php
- CompleteTest.php
- CookieDeserializeTest.php
- HeadersTest.php
- MessageCookiesTest.php
- OperationAddressTest.php
- ParameterDeserializationTest.php
- PathFinderTest.php
- PathParametersTest.php
- QueryArgumentsTest.php
- RequestTest.php
- RoutedServerRequestTest.php
- ServerRequestMultipleMatchesTest.php
- ServerRequestRelativeServerTest.php
- ServerRequestTest.php
- SpecFinderTest.php
- ValidateResponseTest.php
- ValidatorBuilderTest.php
- AllOfTest.php
- AnyOfTest.php
- EnumTest.php
- ItemsTest.php
- MaximumTest.php
- MaxItemsTest.php
- MaxLengthTest.php
- MaxPropertiesTest.php
- MinimumTest.php
- MinItemsTest.php
- MinLengthTest.php
- MinPropertiesTest.php
- MultipleOfTest.php
- NotTest.php
- NullableTest.php
- OneOfTest.php
- PatternTest.php
- PropertiesTest.php
- RequiredTest.php
- TypeFormatTest.php
- TypeTest.php
- UniqueItemsTest.php
- StringDateTest.php
- StringDateTimeTest.php
- StringURITest.php
- BreadCrumbTest.php
- InvalidDataTrackingTest.php
- PathParsingTest.php
- SchemaValidatorTest.php
- api.yaml
- complete.yaml
- date-times.yaml
- form-url-encoded.yaml
- image.jpg
- multi-media-types.yaml
- multipart.yaml
- multipleMatches.yaml
- pathParams.yaml
- ref-as-individual-path-inc.yaml
- ref-as-individual-path.yaml
- schemas.yaml
- SchemaWithRefs.yaml
- serialized-params.yaml
- uber.yaml
- .gitattributes
- .gitignore
- composer.json
- image.jpg
- LICENSE.md
- phpcs.xml
- phpstan.neon
- phpunit.xml
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/thephpleague/openapi-psr7-validator
Downloads the entire project code from GitHub to your computer.
cd openapi-psr7-validator
Moves into the project folder you just downloaded.
2. PHP (Composer)
Easy RecommendedPrerequisites
composer require league/openapi-psr7-validator
Type this command into your terminal and run it.
Run it with a built-in server like php -S localhost:8000, then open http://localhost:8000 in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
