From 4dd879a6eb6a6b9c70179f44dd8506d15c379b27 Mon Sep 17 00:00:00 2001 From: soyuka Date: Wed, 3 Apr 2024 16:20:18 +0200 Subject: [PATCH 1/2] fix(graphql): increment graphql normalizer priority closes #6279 #6264 --- src/Symfony/Bundle/Resources/config/graphql.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/Resources/config/graphql.xml b/src/Symfony/Bundle/Resources/config/graphql.xml index a089eebb2bc..932feb68d3c 100644 --- a/src/Symfony/Bundle/Resources/config/graphql.xml +++ b/src/Symfony/Bundle/Resources/config/graphql.xml @@ -213,8 +213,8 @@ - - + + From 85a93ff38662dd83622491c5aa13120809a41893 Mon Sep 17 00:00:00 2001 From: soyuka Date: Wed, 3 Apr 2024 16:55:03 +0200 Subject: [PATCH 2/2] improve behat test --- features/openapi/docs.feature | 53 ++++++++++++++--------------------- 1 file changed, 21 insertions(+), 32 deletions(-) diff --git a/features/openapi/docs.feature b/features/openapi/docs.feature index 1aa379c71b8..6bc34619f4b 100644 --- a/features/openapi/docs.feature +++ b/features/openapi/docs.feature @@ -396,38 +396,27 @@ Feature: Documentation support Then the response status code should be 200 And the response should be in JSON And the JSON node "openapi" should be equal to "3.0.0" - And the JSON node "components.schemas.DummyBoolean" should be equal to: + And the JSON node "components.schemas.DummyBoolean.properties.id.anyOf" should be equal to: """ - { - "type": "object", - "description": "", - "deprecated": false, - "properties": { - "id": { - "readOnly": true, - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "isDummyBoolean": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "dummyBoolean": { - "readOnly": true, - "type": "boolean" - } + [ + { + "type": "integer" + }, + { + "type": "null" } - } + ] + """ + And the JSON node "components.schemas.DummyBoolean.properties.isDummyBoolean.anyOf" should be equal to: """ + [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + """ + And the JSON node "components.schemas.DummyBoolean.properties.isDummyBoolean.owl:maxCardinality" should not exist +