oas-php/resolver
Composer 安装命令:
composer require oas-php/resolver
包简介
JSON Reference resolver
README 文档
README
JSON Reference resolver
An OpenAPI document MAY be made up of a single document or be divided into multiple, connected parts at the discretion of the user. In the latter case, $ref fields MUST be used in the specification to reference those parts as follows from the JSON Schema definitions.
This package is part of oas-php project and is used internally by oas-php/document to resolve $ref's. However, it's not confined just to OAS. In fact, it might be used with any document which uses JSON References.
installation
The oas-php/resolver is a composer package. Install it by running:
composer req oas-php/resolver
The package dependency list is short as possible. However, I suggest installing a few optional packages, so you don't need to configure anything yourself.
usage
If you install suggested packages, the simplest use case may look like:
$resolved = (new Resolver)->resolve('https://oas-php.github.io/sample/theater/openapi.json');
See documentation to learn more.
license
MIT
统计信息
- 总下载量: 17.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-01