From 413c7e24ae6e23147dd84fc942d832afc2f93414 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Tue, 31 Oct 2023 10:40:07 -0400 Subject: [PATCH] Patch jsonapi_schema for Issue #3397275: Use OptionsProviderInterface::getPossibleOptions() for allowed field values (anyOf / oneOf) --- CHANGELOG.md | 1 + composer.json | 3 ++- docs/development/api/changes.md | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72f88e330..1d38a0db5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [Issue #3256745: Move default farm OAuth2 client to a separate module](https://www.drupal.org/project/farm/issues/3256745) - [Update Simple OAuth module to v6 #743](https://github.com/farmOS/farmOS/pull/743) - [Issue #3396419: Make log timestamp required](https://www.drupal.org/project/log/issues/3396419) +- Patch JSON:API Schema module for [Issue #3397275: Use OptionsProviderInterface::getPossibleOptions() for allowed field values (anyOf / oneOf)](https://www.drupal.org/project/jsonapi_schema/issues/3397275) ### Fixed diff --git a/composer.json b/composer.json index e62a13706..7b9123623 100644 --- a/composer.json +++ b/composer.json @@ -77,7 +77,8 @@ "Issue #3256795: Float fields have a null schema": "https://www.drupal.org/files/issues/2022-01-03/3256795-4.patch", "Issue #3246251: Change format utc-millisec to date-time": "https://www.drupal.org/files/issues/2021-10-27/3246251-2.patch", "Issue #3189930: TypeError: Argument 1 passed to Drupal\\jsonapi_schema\\Controller\\JsonApiSchemaController::Drupal\\jsonapi_schema\\Controller\\{closure}() must be an instance of Drupal\\jsonapi\\ResourceType\\ResourceType": "https://www.drupal.org/files/issues/2020-12-26/3189930-2.patch", - "Issue #3322227: Document schema title wrong for multiple resource types": "https://www.drupal.org/files/issues/2022-11-17/3322227-0.patch" + "Issue #3322227: Document schema title wrong for multiple resource types": "https://www.drupal.org/files/issues/2022-11-17/3322227-0.patch", + "Issue #3397275: Use OptionsProviderInterface::getPossibleOptions() for allowed field values (anyOf / oneOf)": "https://www.drupal.org/files/issues/2023-10-27/3397275-2.patch" }, "drupal/simple_oauth": { "Issue #3322325: Cannot authorize clients with empty string set as secret": "https://www.drupal.org/files/issues/2023-10-31/3322325-8.patch", diff --git a/docs/development/api/changes.md b/docs/development/api/changes.md index 561be9475..94420ead7 100644 --- a/docs/development/api/changes.md +++ b/docs/development/api/changes.md @@ -29,6 +29,8 @@ Other notable changes: - [Material quantities can reference multiple material types](https://www.drupal.org/node/3395697) - Log `timestamp` is marked as `required` in JSON Schema +- Allowed values are declared in JSON Schema `oneOf` / `anyOf` enumerations for + more entity attributes. ## 2.x vs 1.x