11# php-openapi
22
3- Read and write [ OpenAPI] ( https://www.openapis.org/ ) 3.0. x YAML and JSON files and make the content accessible in PHP objects.
3+ Read and write [ OpenAPI] ( https://www.openapis.org/ ) 3.x YAML and JSON files and make the content accessible in PHP objects.
44
5- It also provides a CLI tool for validating and converting OpenAPI 3.0.x Description files.
5+ It also provides a CLI tool for validating and converting OpenAPI 3.x Description files.
6+
7+ Supported OpenAPI versions:
8+
9+ - 3.0.x
10+ - 3.1.x
611
712[ ![ Latest Stable Version] ( https://poser.pugx.org/cebe/php-openapi/v/stable )] ( https://packagist.org/packages/cebe/php-openapi )
813[ ![ Total Downloads] ( https://poser.pugx.org/cebe/php-openapi/downloads )] ( https://packagist.org/packages/cebe/php-openapi )
@@ -222,7 +227,7 @@ $openapi->resolveReferences(
222227
223228The library provides simple validation operations, that check basic OpenAPI spec requirements.
224229This is the same as "structural errors found while reading the API Description file" from the CLI tool.
225- This validation does not include checking against the OpenAPI v3.0 JSON schema , this is only implemented in the CLI.
230+ This validation does not include checking against the OpenAPI v3.0/v3.1 JSON schemas , this is only implemented in the CLI.
226231
227232```
228233// return `true` in case no errors have been found, `false` in case of errors.
@@ -235,48 +240,6 @@ $errors = $openapi->getErrors();
235240> but the list of errors given may not be complete. Also a passing validation does not necessarily indicate a completely
236241> valid spec.
237242
238-
239- ## Completeness
240-
241- This library is currently work in progress, the following list tracks completeness:
242-
243- - [x] read OpenAPI 3.0 JSON
244- - [x] read OpenAPI 3.0 YAML
245- - [ ] OpenAPI 3.0 Schema
246- - [x] OpenAPI Object
247- - [x] Info Object
248- - [x] Contact Object
249- - [x] License Object
250- - [x] Server Object
251- - [x] Server Variable Object
252- - [x] Components Object
253- - [x] Paths Object
254- - [x] Path Item Object
255- - [x] Operation Object
256- - [x] External Documentation Object
257- - [x] Parameter Object
258- - [x] Request Body Object
259- - [x] Media Type Object
260- - [x] Encoding Object
261- - [x] Responses Object
262- - [x] Response Object
263- - [x] Callback Object
264- - [x] Example Object
265- - [x] Link Object
266- - [ ] [ Runtime Expressions] ( https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#runtime-expressions )
267- - [x] Header Object
268- - [x] Tag Object
269- - [x] Reference Object
270- - [x] Schema Object
271- - [x] load/read
272- - [ ] validation
273- - [x] Discriminator Object
274- - [x] XML Object
275- - [x] Security Scheme Object
276- - [x] OAuth Flows Object
277- - [x] OAuth Flow Object
278- - [x] Security Requirement Object
279-
280243# Development
281244
282245You may use the docker environment for local development:
@@ -286,7 +249,6 @@ You may use the docker environment for local development:
286249 make IN_DOCKER=1 test
287250 ...
288251
289-
290252# Support
291253
292254** Need help with your API project?**
0 commit comments