Type of Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator::$DEFINITION_SEPARATOR must be string

Created on 18 July 2024, 3 months ago
Updated 2 September 2024, about 2 months ago

Problem/Motivation

OpenAPI module's 2.2.0 release included a type for the $DEFINITION_SEPARATOR in OpenApiGeneratorBase

Steps to reproduce

Update openapi to 2.2.0
Generate the openapi schema.
Error is:
Fatal error: Type of Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator::$DEFINITION_SEPARATOR must be string (as in class Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase) in /var/www/docroot/modules/contrib/openapi_jsonapi/src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php on line 38

Proposed resolution

Add string type to $DEFINITION_SEPARATOR in JsonApiGenerator

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States Shawn DeArmond

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024