Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
Improvements:
json_encode()
in Writer::writeToJson()
, thanks @ValikoDorodnovPublished by cebe over 2 years ago
Bugfixes:
x-*
) were not present in the merge result (thanks @marcelthole)Schema::$nullable
when no type is specified. nullable
will be false
by default when a type is specified but null
when no type is specified.exclusiveMinimum
and exclusiveMaximum
only return false
when minimum
or maximum
is specified, defaults to null
otherwise.Dependencies:
Other changes:
Published by cebe over 3 years ago
Bugfixes:
Documentation:
Published by cebe over 3 years ago
../
(thanks @il-m-yamagishi)readFromJsonFile()
(thanks @yorickgirard)Published by cebe almost 4 years ago
Improvements:
Bugfixes:
exclusiveMinimum
and exclusiveMaximum
to boolean (thanks @canvural)Other changes:
3.0
to 3.4
(thanks @marcelthole)Published by cebe over 4 years ago
Published by cebe over 4 years ago
Published by cebe over 4 years ago
symfony/yaml:^5.0
bin/php-openapi validate
(@mfrischbutter)--silent
parameter to command-line-tool (@mfrischbutter)Published by cebe over 4 years ago
Published by cebe almost 5 years ago
Published by cebe almost 5 years ago
Published by cebe almost 5 years ago
Published by cebe about 5 years ago
#35 Symfony YAML is not limited to version 4 anymore, you can now install php-openapi in your symfony 3 project.
#32 References failed to resolve in directory structures when referencing other files from file in subdirectories. These references where resolved in the context of the main OpenAPI file instead of the sub-directories.
Before this change it was necessary to manually call resolveReferences()
after loading a file.
Now a single call will resolve all references regardless how many levels deep.
Published by cebe about 5 years ago
Published by cebe over 5 years ago
$ref
in Path Item Objects, following the clarification of semantics.Published by cebe over 5 years ago
This release brings the following changes:
@property-read
was used even though properties are writeable now.Published by cebe over 5 years ago
This release brings the following changes:
array
type to the list of constants in Type
class (thanks, @scaytrase)Published by cebe over 5 years ago
OpenAPI v3 got a JSON Schema for validating OpenAPI 3 documents (https://github.com/OAI/OpenAPI-Specification/pull/1270 and https://github.com/OAI/OpenAPI-Specification/pull/1897).
This release adds a CLI tool for validating OpenAPI 3 documents against the JSON schema.
Other improvements:
Published by cebe over 5 years ago
Published by cebe almost 6 years ago