Skip to content

Fix JSON:API collection included schema#8190

Open
Will-thom wants to merge 1 commit into
api-platform:mainfrom
Will-thom:fix/jsonapi-openapi-included
Open

Fix JSON:API collection included schema#8190
Will-thom wants to merge 1 commit into
api-platform:mainfrom
Will-thom:fix/jsonapi-openapi-included

Conversation

@Will-thom
Copy link
Copy Markdown

Fixes #7956.

Preserves the JSON:API included schema when building OpenAPI schemas for collection responses and adds a functional regression test.

Tests:

  • php -l src/JsonApi/JsonSchema/SchemaFactory.php
  • php -l tests/Functional/OpenApiTest.php
  • vendor/bin/phpunit tests/Functional/OpenApiTest.php --filter testJsonApiCollectionSchemaDocumentsIncludedResources
  • vendor/bin/phpunit tests/Functional/OpenApiTest.php --filter testRetrieveTheOpenApiDocumentation
  • vendor/bin/phpunit tests/Functional/OpenApiTest.php --filter testHasSchemasForMultipleFormats
  • vendor/bin/phpunit tests/Functional/PaginationDisabledTest.php --filter testSchemaCollectionJsonApi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON:API included compound documents no longer represented in OpenAPI output in 4.3.x

1 participant