Skip to content

Commit bf4b0e4

Browse files
committed
Merge 3.1
2 parents 7a1d351 + 1fc611e commit bf4b0e4

File tree

105 files changed

+1015
-384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1015
-384
lines changed

.github/workflows/subtree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: subtree
22
on:
33
push:
44
tags:
5+
- v*
56
branches:
67
- main
78
- 3.1
@@ -16,6 +17,7 @@ jobs:
1617
- uses: actions/checkout@v3
1718
with:
1819
fetch-depth: 0
20+
token: ${{ secrets.GH_TOKEN }}
1921
- name: 'Install splitsh'
2022
run: |
2123
curl -L https://github.com/splitsh/lite/releases/download/v1.0.1/lite_linux_amd64.tar.gz > lite_linux_amd64.tar.gz

CHANGELOG.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
11
# Changelog
22

3+
## v3.1.11
4+
5+
### Bug fixes
6+
7+
* [2121d15c3](https://github.com/api-platform/core/commit/2121d15c3d3401f43ee3af4aedbb9d45d36adce3) fix(symfony): allow post with uri variables and no provider
8+
* [ed4bca9b9](https://github.com/api-platform/core/commit/ed4bca9b95571984f5c94924640dd0bbd0aa3ce9) fix(serializer): Guess uri variables with the operation and the data instead of hardcoding id (#5546)
9+
10+
## v3.1.10
11+
12+
### Bug fixes
13+
14+
* [1281b0f49](https://github.com/api-platform/core/commit/1281b0f491f5656a7554265858460bb768329ed4) fix(serializer): don't force resource class on relation (#5576)
15+
* [810e4455b](https://github.com/api-platform/core/commit/810e4455b34070c12404bc65ea0366c48d54d43d) fix(serializer): fix denormalizing to non-cloneable objects (#5569)
16+
17+
## v3.1.9
18+
19+
* [0fc5ad580](https://github.com/api-platform/core/commit/0fc5ad58024e49c434ef0d68a04b2fcc83308e5f) Fixes wrong interfaces aliases (#5563)
20+
21+
## v3.1.8
22+
23+
### Bug fixes
24+
25+
* [1f28efc56](https://github.com/api-platform/core/commit/1f28efc56e7aa18dd3ef265e54b9517ffe883189) fix(graphql): send headers in GraphiQL (#5539)
26+
* [25861348d](https://github.com/api-platform/core/commit/25861348d02a41b0e2a99537e0943d5506831593) fix(elasticsearch): add is_collection to documentation (#5497)
27+
* [60082d7a5](https://github.com/api-platform/core/commit/60082d7a5f83022d68e2e59c7683dd0fc586d1b7) fix(doctrine): use fromClass metadata for each link (#5508)
28+
* [62510b2bb](https://github.com/api-platform/core/commit/62510b2bbe514dca93ae3b081f43f1cb56fef984) fix(jsonschema): change type to integer in json schema for int backed enums (#5553)
29+
* [6d2f883d1](https://github.com/api-platform/core/commit/6d2f883d17c6866bb41ab72ca84d3d8358625476) fix(metadata): remove identifier_metadata_factory services (#5518)
30+
* [6d7aaf7de](https://github.com/api-platform/core/commit/6d7aaf7dee263ee43894c5ae504c970d822e715a) fix: class already declared with preloading (#5523)
31+
* [aa7f4b8fe](https://github.com/api-platform/core/commit/aa7f4b8fe8c70a3fd7c2161c68e21c0edc6de89f) Revert "fix(symfony): query parameter validation after authentication (#5473)" (#5556)
32+
* [e4fa5a234](https://github.com/api-platform/core/commit/e4fa5a234b05652630c07ab375c5d4b9e46e17f8) fix(serializer): no forced resource class relation (#5542)
33+
* [f3935749e](https://github.com/api-platform/core/commit/f3935749e83176c9be0afe8628b5b617529577bd) fix: the stateOptions::entityClass should be used when present while building Links (#5550)
34+
35+
## v3.1.7
36+
37+
### Bug fixes
38+
39+
* [05b572234](https://github.com/api-platform/core/commit/05b5722347810f6af9b458b60c28a0bb38301f64) fix(jsonschema): access related subschema on readableLink (#5515)
40+
* [138c51218](https://github.com/api-platform/core/commit/138c512186145f79b1b00f25e1785cc533eb6107) fix(serializer): skip unknown property and use the name converter
41+
* [23ef01aa2](https://github.com/api-platform/core/commit/23ef01aa2d5700ede458f32e09c6a85967d60c1d) fix(openapi): restore OpenApiFactory::OPENAPI_DEFINITION_NAME (#5516)
42+
* [871824c44](https://github.com/api-platform/core/commit/871824c443f0e1fb5bfbddeef648b5da2745d291) fix(symfony): check operations parameters (#5513)
43+
* [af5cd209d](https://github.com/api-platform/core/commit/af5cd209d5e1761b1b0a7bf4de2e81280f32a167) fix(serializer): cache class metadata factory (#5512)
44+
* [f128e3b3c](https://github.com/api-platform/core/commit/f128e3b3ce17f34e4767c547c5857c754555fdd3) fix(openapi): yaml parameters extractor (#5487)
45+
46+
## v3.1.6
47+
48+
### Bug fixes
49+
50+
* [2be8b4f74](https://github.com/api-platform/core/commit/2be8b4f743d8104c6cd8e4533dc8958079188543) fix(symfony): OperationMetadataFactoryInterface service alias (#5491)
51+
* [4c87a97c2](https://github.com/api-platform/core/commit/4c87a97c29765eea9316b01c213353911de6648d) fix(openapi): deprecate api_keys names not compatible with 3.1 (#5490)
52+
* [e47162227](https://github.com/api-platform/core/commit/e471622271dc8fe1b31adfd6c8232693e354c004) fix(jsonschema): find the related operation instead of assuming one (#5469)
53+
* [e7114b7ed](https://github.com/api-platform/core/commit/e7114b7ed1d622a86748add518b5e09de90f1437) fix(elasticsearch): remove old bridge service (#5488)
54+
355
## v3.1.5
456

557
### Bug fixes
@@ -259,6 +311,13 @@ Breaking changes:
259311
* Metadata: `Patch` is added to the automatic CRUD
260312
* Symfony: generated route names and operation names changed, route naming can be changed directly within metadata
261313
314+
## v2.7.12
315+
316+
### Bug fixes
317+
318+
* [810e4455b](https://github.com/api-platform/core/commit/810e4455b34070c12404bc65ea0366c48d54d43d) fix(serializer): fix denormalizing to non-cloneable objects (#5569)
319+
* [b6dc7728b](https://github.com/api-platform/core/commit/b6dc7728b68db71242e00beab4b09030254a323f) fix(symfony): update for PHPUnit 10 (#5551)
320+
262321
## v2.7.11
263322
264323
### Bug fixes
@@ -1546,4 +1605,4 @@ Please read #2825 if you have issues with the behavior of Readable/Writable Link
15461605
## 1.0.0 beta 2
15471606
15481607
* Preserve indexes when normalizing and denormalizing associative arrays
1549-
* Allow setting default order for property when registering a `Doctrine\Orm\Filter\OrderFilter` instance
1608+
* Allow setting default order for property when registering a `Doctrine\Orm\Filter\OrderFilter` instance

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,19 @@ Alternatively, you can also work with the test application we provide:
3838
cd tests/Fixtures/app
3939
./console assets:install --symlink
4040
symfony serve
41+
42+
# if you prefer keeping the server in your terminal:
43+
symfony server:start --dir tests/Fixtures/app
4144

4245
# or if you prefer using the PHP built-in web server
4346
php -S localhost:8000 -t public/
4447

48+
You also have access to a `console`:
49+
50+
```
51+
APP_DEBUG=1 tests/Fixtures/app/console debug:config
52+
```
53+
4554
### Matching Coding Standards
4655

4756
The API Platform project follows [Symfony coding standards](https://symfony.com/doc/current/contributing/code/standards.html).

features/authorization/deny_authentication_before_filter.feature

Lines changed: 0 additions & 11 deletions
This file was deleted.

features/hydra/error.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,15 @@ Feature: Error handling
139139
And the JSON node "@id" should be equal to "/relation_embedders/1"
140140
And the JSON node "anotherRelated.@id" should be equal to "/related_dummies/1"
141141
And the JSON node "anotherRelated.symfony" should be equal to "phalcon"
142+
143+
Scenario: Get an error because of sending bad type property
144+
When I add "Content-Type" header equal to "application/json"
145+
And I send a "POST" request to "/greetings" with body:
146+
"""
147+
{
148+
"0": 1
149+
}
150+
"""
151+
Then the response status code should be 201
152+
And the response should be in JSON
153+
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"

features/jsonld/context.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Feature: JSON-LD contexts generation
4040
},
4141
"jsonData": "Dummy/jsonData",
4242
"arrayData": "Dummy/arrayData",
43-
"nameConverted": "Dummy/nameConverted",
43+
"name_converted": "Dummy/name_converted",
4444
"name": "https://schema.org/name",
4545
"alias": "https://schema.org/alternateName",
4646
"foo": "Dummy/foo"

features/jsonld/non_resource.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,13 @@ Feature: JSON-LD non-resource handling
132132
And the response should be in JSON
133133
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
134134
And the JSON node "totalPrice.@id" should not exist
135+
136+
@!mongodb
137+
@createSchema
138+
Scenario: Get a resource using entityClass with a DateTime attribute
139+
Given there is a resource using entityClass with a DateTime attribute
140+
When I send a "GET" request to "/EntityClassWithDateTime/1"
141+
Then the response status code should be 200
142+
And the response should be in JSON
143+
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
144+
And the JSON node "start" should exist

features/main/attribute_resource.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,11 @@ Feature: Resource attributes
100100
And the response should be in JSON
101101
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
102102
And the JSON node "hydra:description" should be equal to 'Unable to generate an IRI for the item of type "ApiPlatform\Tests\Fixtures\TestBundle\Entity\IncompleteUriVariableConfigured"'
103+
104+
Scenario: Uri variables with Post operation
105+
When I add "Content-Type" header equal to "application/ld+json"
106+
And I send a "POST" request to "/post_with_uri_variables/{id}" with body:
107+
"""
108+
{}
109+
"""
110+
Then the response status code should be 201

features/main/crud_uri_variables.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,15 @@ Feature: Uri Variables
200200
When I add "Content-Type" header equal to "application/ld+json"
201201
And I send a "GET" request to "/companies/1/employees/2"
202202
Then the response status code should be 404
203+
204+
@!mongodb
205+
Scenario: Get all EntityClassAndCustomProviderResources
206+
Given there are 1 separated entities
207+
When I send a "GET" request to "/entityClassAndCustomProviderResources"
208+
Then the response status code should be 200
209+
210+
@!mongodb
211+
Scenario: Get one EntityClassAndCustomProviderResource
212+
Given there are 1 separated entities
213+
When I send a "GET" request to "/entityClassAndCustomProviderResources/1"
214+
Then the response status code should be 200

rector.php

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)