-
-
Notifications
You must be signed in to change notification settings - Fork 928
Comparing changes
Open a pull request
base repository: api-platform/core
base: v2.5.4
head repository: api-platform/core
compare: v2.5.5
Commits on Jan 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d376566 - Browse repository at this point
Copy the full SHA d376566View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dccfa3 - Browse repository at this point
Copy the full SHA 8dccfa3View commit details -
Merge pull request #3333 from Jibbarth/fix/oauth-security-definition-…
…openapi [OpenApi] [Oauth] Fix render oauth when using OpenApi v3
Configuration menu - View commit details
-
Copy full SHA for 24fa80c - Browse repository at this point
Copy the full SHA 24fa80cView commit details
Commits on Jan 23, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 255b22f - Browse repository at this point
Copy the full SHA 255b22fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed22824 - Browse repository at this point
Copy the full SHA ed22824View commit details
Commits on Jan 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0d31896 - Browse repository at this point
Copy the full SHA 0d31896View commit details
Commits on Jan 31, 2020
-
fix(documentation): Fix DataTransformerInterface documentation
Mathieu LEDRU committedJan 31, 2020 Configuration menu - View commit details
-
Copy full SHA for d8b8345 - Browse repository at this point
Copy the full SHA d8b8345View commit details -
Merge pull request #3362 from Raulnet/fix/type-factory-readblelink
fix getClassType with no readableLink
Configuration menu - View commit details
-
Copy full SHA for bf1f930 - Browse repository at this point
Copy the full SHA bf1f930View commit details -
Merge pull request #3368 from Ocramius/fix/dump-openapi-schema-withou…
…t-escaping-slashes Ensure that `api:openapi:export` produces JSON with unescaped forward slashes
Configuration menu - View commit details
-
Copy full SHA for 66cc242 - Browse repository at this point
Copy the full SHA 66cc242View commit details -
Merge pull request #3373 from matyo91/fix/datatransformer_documentati…
…on_2_5 fix(documentation): Fix DataTransformerInterface documentation
Configuration menu - View commit details
-
Copy full SHA for 21145c7 - Browse repository at this point
Copy the full SHA 21145c7View commit details
Commits on Feb 18, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 328eafd - Browse repository at this point
Copy the full SHA 328eafdView commit details -
Merge pull request #3397 from api-platform/revert-3362-fix/type-facto…
…ry-readblelink Revert "fix getClassType with no readableLink"
Configuration menu - View commit details
-
Copy full SHA for bba9fc4 - Browse repository at this point
Copy the full SHA bba9fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb8eff7 - Browse repository at this point
Copy the full SHA cb8eff7View commit details -
Merge pull request #3351 from soyuka/fix/json-schema-date-interval
Add date interval to type factory
Configuration menu - View commit details
-
Copy full SHA for a59af14 - Browse repository at this point
Copy the full SHA a59af14View commit details
Commits on Feb 19, 2020
-
Replace "WHERE <identifier> IN ( ...subresource... )" via a direct "W…
…HERE <identifier = ..." to improve performance
Configuration menu - View commit details
-
Copy full SHA for df4ad61 - Browse repository at this point
Copy the full SHA df4ad61View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa7b217 - Browse repository at this point
Copy the full SHA fa7b217View commit details -
Co-Authored-By: Alan Poulain <contact@alanpoulain.eu>
Configuration menu - View commit details
-
Copy full SHA for 62e189b - Browse repository at this point
Copy the full SHA 62e189bView commit details -
Co-Authored-By: Teoh Han Hui <teohhanhui@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1512156 - Browse repository at this point
Copy the full SHA 1512156View commit details -
Merge pull request #3396 from clemherreman/improve-sql-queries-of-sub…
…resources Improve subresources DB query performance by removing a subquery
Configuration menu - View commit details
-
Copy full SHA for 083ad62 - Browse repository at this point
Copy the full SHA 083ad62View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c81c9 - Browse repository at this point
Copy the full SHA f5c81c9View commit details -
Merge pull request #3401 from teohhanhui/upgrade-phpstan
Upgrade phpstan to v0.12
Configuration menu - View commit details
-
Copy full SHA for 40f4f74 - Browse repository at this point
Copy the full SHA 40f4f74View commit details
Commits on Feb 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cf0fa21 - Browse repository at this point
Copy the full SHA cf0fa21View commit details -
Merge pull request #3404 from api-platform/changelog-2.5.x-dev
Don't mention v2.5.5 in CHANGELOG as it does not exist yet
Configuration menu - View commit details
-
Copy full SHA for 215709a - Browse repository at this point
Copy the full SHA 215709aView commit details
Commits on Feb 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for ab723db - Browse repository at this point
Copy the full SHA ab723dbView commit details -
Merge pull request #3410 from teohhanhui/fix/getter-false-positive
Rename a method in fixture class to avoid "getter" false positive
Configuration menu - View commit details
-
Copy full SHA for 706c257 - Browse repository at this point
Copy the full SHA 706c257View commit details
Commits on Feb 26, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8091dd1 - Browse repository at this point
Copy the full SHA 8091dd1View commit details
Commits on Feb 27, 2020
-
Merge pull request #3414 from teohhanhui/fix/validator-interface-exce…
…ption-type Fix wrong exception class thrown by ValidatorInterface
Configuration menu - View commit details
-
Copy full SHA for ef98086 - Browse repository at this point
Copy the full SHA ef98086View commit details -
Corrected schema generation for
array<string, T>
,object
, `?array……`, `?object` and `?type` The previous version of the `TypeFactory` generated following **WRONG** definitions: * `null|T[]` as `{"type": array, "items": {"type": "T"}}` * `?T[]` as `{"type": array, "items": {"type": "T"}}` * `array<string, T> as `{"type": array, "items": {"type": "T"}}` * `object` without explicit schema definition as `{"type": "string"}` * `?T` as `{"type": T}` The new definitions instead do fix this by mapping: * `array<string, T>` as `{"type": "object", "additionalProperties": {"type": "T"}}` * `array<string, ?T> as `{"type": object, "additionalProperties": {"type": ["T", "null"]}}` * `null|array<string, T>` as `{"type": ["object", "null"], "additionalProperties": {"type": "T"}}` * `array<int, T>` as `{"type": "array", "items": {"type": "T"}}` (not very precise, but list support is not yet in symfony) * `object` without explicit schema definition as `{"type": "object"}` * `?T[]` as `{"type": "array", "items": {"type": ["T", "null"]}}` * `null|T[]` as `{"type": ["array", "null"], "items": {"type": "T"}}`
Configuration menu - View commit details
-
Copy full SHA for 3cf7970 - Browse repository at this point
Copy the full SHA 3cf7970View commit details -
Removed
@psalm-param array{...}
annotationsThese annotations were too specific, since the returned type would never match anyway. Specifically, psalm cannot yet declare `ArrayType1&ArrayType2`, so an union type of two arrays is not currently something we can declare explicitly. Ref: #3402 (comment)
Configuration menu - View commit details
-
Copy full SHA for a94ca5f - Browse repository at this point
Copy the full SHA a94ca5fView commit details -
Using
oneOf
also for simple non-$ref
typesAs per OpenAPI documentation at https://swagger.io/docs/specification/data-models/data-types/ the OpenAPI v3 documentation does not allow defining union types via `type: ['string', 'integer']`, but requires explicit usage of `oneOf` and nested type declarations or references instead. Ref: #3402 (comment)
Configuration menu - View commit details
-
Copy full SHA for 8e3e043 - Browse repository at this point
Copy the full SHA 8e3e043View commit details -
Conditionally fall back to JSON-Schema compatible with Swagger/OpenAP…
…I v2 OpenAPI V2 has no way to generate accurate nullable types, so we need to disable nullable `oneOf` syntax in JSON-Schema by providing some context to the `TypeFactory` when not operating under OpenAPI v3 or newer considerations. In future, Swagger/OpenAPIV2 will (finally) at some point disappear, so we will be able to get rid of these conditionals once that happens.
Configuration menu - View commit details
-
Copy full SHA for f1c59cd - Browse repository at this point
Copy the full SHA f1c59cdView commit details -
Use
{"nullable": true, "anyOf": [{"$ref": ...}]}
to comply with Ope……nAPI 3.0 OpenAPI 3.1 is not yet released, but fixes nullability in the way we had fixed it before (via `{"oneOf": [{"type": "null"}, ...]}`) in OAI/OpenAPI-Specification#1977. Until OpenAPI 3.1 is released, things like ``{"type": ["integer", "null"]}` are not valid definitions (because `"null"` is not yet a recognized type). We'll stick to OpenAPI 3.0 for now, using: * `{"nullable": true, ...}` for simple types * `{"nullable": true, "anyOf": [{"$ref": ...}]}` for type references
Configuration menu - View commit details
-
Copy full SHA for 5a079e5 - Browse repository at this point
Copy the full SHA 5a079e5View commit details -
Rolling back to mapping unknown
object
types as JSON-Schema `{"type……": "string"}` To avoid BC breaks, we defer this fix to #3403 > **API Platform version(s) affected**: 2.5.x > > **Description** > > In our tests for `TypeFactory`: > > ``` > > yield [['type' => 'string'], new Type(Type::BUILTIN_TYPE_OBJECT)]; > yield [['type' => 'string'], new Type(Type::BUILTIN_TYPE_OBJECT, true)]; > > // ... > > yield [['type' => 'string'], new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)]; > yield [['type' => 'string'], new Type(Type::BUILTIN_TYPE_OBJECT, true, Dummy::class)]; > ``` > > While reviewing #3402, @dunglas found a potential BC break with objects that may be used in URIs as `string`s (therefore not `objects`): > > * [#3402 (comment)](#3402 (comment)) > > * [#3402 (comment)](#3402 (comment)) > > > **How to reproduce** > > The test should instead convert `object` to `object`: > > ``` > > yield [['type' => 'object'], new Type(Type::BUILTIN_TYPE_OBJECT)]; > yield [['type' => 'object'], new Type(Type::BUILTIN_TYPE_OBJECT, true)]; > > // ... > > yield [['type' => 'object'], new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)]; > yield [['type' => 'object'], new Type(Type::BUILTIN_TYPE_OBJECT, true, Dummy::class)]; > ```
Configuration menu - View commit details
-
Copy full SHA for 7870bce - Browse repository at this point
Copy the full SHA 7870bceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48afa94 - Browse repository at this point
Copy the full SHA 48afa94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25697ee - Browse repository at this point
Copy the full SHA 25697eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d17089 - Browse repository at this point
Copy the full SHA 9d17089View commit details -
Merge pull request #3402 from Ocramius/fix/correct-json-schema-defini…
…tions-for-nullability-and-nested-structures Corrected schema generation for `array<string, T>`, `object`, `?array`, `?object` and `?type`
Configuration menu - View commit details
-
Copy full SHA for 713b3ed - Browse repository at this point
Copy the full SHA 713b3edView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce26a90 - Browse repository at this point
Copy the full SHA ce26a90View commit details -
Configuration menu - View commit details
-
Copy full SHA for b494e80 - Browse repository at this point
Copy the full SHA b494e80View commit details
Commits on Feb 28, 2020
-
Disable legacy (bundle) integration tests by default
Move legacy integration tests to separate CI jobs Bump CI jobs to use PHP 7.4 by default
Configuration menu - View commit details
-
Copy full SHA for 16fbeca - Browse repository at this point
Copy the full SHA 16fbecaView commit details -
Make the CI jobs more resilient
Continue on error when it doesn't affect correctness of the job
Configuration menu - View commit details
-
Copy full SHA for b70e929 - Browse repository at this point
Copy the full SHA b70e929View commit details -
Merge pull request #3386 from teohhanhui/ci-symfony-5.1
Bump CI to check Symfony 5.1 compatibility
Configuration menu - View commit details
-
Copy full SHA for a548e16 - Browse repository at this point
Copy the full SHA a548e16View commit details
Commits on Mar 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a23a67c - Browse repository at this point
Copy the full SHA a23a67cView commit details -
Merge pull request #3417 from arnedesmedt/enableDecoratingSchemaFactory
Don't typehint the SchemaFactory decorator by its implementation, but by its interface
Configuration menu - View commit details
-
Copy full SHA for 6578c8b - Browse repository at this point
Copy the full SHA 6578c8bView commit details
Commits on Mar 4, 2020
-
Pass $options to PropertyInfoMetadataFactory
I had an issue where nested properties / classes didn't show up on OpenApi / Swagger docs (#2868). With this PR the issue seems to be solved as the PropertyMetadataFactory gets the options. Thanks to @teohhanhui for the help on this.
Configuration menu - View commit details
-
Copy full SHA for 3529900 - Browse repository at this point
Copy the full SHA 3529900View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fa855c - Browse repository at this point
Copy the full SHA 9fa855cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15bc5f4 - Browse repository at this point
Copy the full SHA 15bc5f4View commit details
Commits on Mar 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d26a503 - Browse repository at this point
Copy the full SHA d26a503View commit details -
Merge pull request #3425 from remoteclient/patch-3
Pass $options to PropertyInfoMetadataFactory
Configuration menu - View commit details
-
Copy full SHA for 7e1e5ba - Browse repository at this point
Copy the full SHA 7e1e5baView commit details -
Only save /tmp/phpstan/resultCache.php to cache
The result cache is a huge win. CircleCI takes a very long time saving /tmp/phpstan/cache for some reason, and this cache doesn't affect the run time much anyway.
Configuration menu - View commit details
-
Copy full SHA for 4b8bcf4 - Browse repository at this point
Copy the full SHA 4b8bcf4View commit details
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.