{"id":15150403,"url":"https://gitlab.com/vuphuong87/symfony-openapi-schema-validator","last_synced_at":"2025-10-24T05:32:24.356Z","repository":{"id":60999396,"uuid":"21354662","full_name":"vuphuong87/symfony-openapi-schema-validator","owner":"vuphuong87","description":"The OpenAPI schema validator wrapper for Symfony HTTP Request / Response object ","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":null,"default_branch":"master","last_synced_at":"2025-01-31T00:24:26.405Z","etag":null,"topics":["openapi","symfony","validator"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":null,"metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-25T04:50:15.989Z","updated_at":"2020-09-29T15:40:00.880Z","dependencies_parsed_at":"2022-10-08T03:55:13.014Z","dependency_job_id":null,"html_url":"https://gitlab.com/vuphuong87/symfony-openapi-schema-validator","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/vuphuong87%2Fsymfony-openapi-schema-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/vuphuong87%2Fsymfony-openapi-schema-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/vuphuong87%2Fsymfony-openapi-schema-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/vuphuong87%2Fsymfony-openapi-schema-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/vuphuong87","download_url":"https://gitlab.com/vuphuong87/symfony-openapi-schema-validator/-/archive/master/symfony-openapi-schema-validator-master.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4517613,"owners_count":6741,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":["openapi","symfony","validator"],"created_at":"2024-09-26T14:03:48.723Z","updated_at":"2025-10-24T05:32:18.804Z","avatar_url":null,"language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony OpenAPI Schema Validator\n\n[![coverage report](https://gitlab.com/vuphuong87/symfony-openapi-schema-validator/badges/master/coverage.svg)](https://gitlab.com/vuphuong87/symfony-openapi-schema-validator/-/commits/master)\n\nThe OpenAPI schema validator wrapper for Symfony HTTP Request / Response object.\n\nThis package use `league/openapi-psr7-validator` package to validate OpenAPI schema on a PSR7 Request / Response object. \nThe Symfony HTTP Request / Response object will be converted to PSR7 objects thanks to `symfony/psr-http-message-bridge` package.\n\n## Install\n\n``` bash\n$ composer require vuphuong87/symfony-openapi-schema-validator\n```\n\n## Usage\n\n### Validate a Request\n\n``` php\n$schemaValidator = new SchemaValidator($apispec);\n$schemaValidator-\u003eisValidRequest($request)\n```\n\n### Validate a Response\n\n``` php\n$path = '/v1/posts'; // uri path defined in schema\n$schemaValidator = new SchemaValidator($apispec);\n$schemaValidator-\u003eisValidResponse($response, $path, 'GET');\n```\n\n### Get validation errors\n\n``` php\n$schemaValidator-\u003egetErrors();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fvuphuong87%2Fsymfony-openapi-schema-validator","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Fvuphuong87%2Fsymfony-openapi-schema-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fvuphuong87%2Fsymfony-openapi-schema-validator/lists"}