Skip to content

feat(api): add discouraged feature information#1822

Merged
jcscottiii merged 1 commit intomainfrom
jcscottiii/backend-returns-discouraged-information
Sep 11, 2025
Merged

feat(api): add discouraged feature information#1822
jcscottiii merged 1 commit intomainfrom
jcscottiii/backend-returns-discouraged-information

Conversation

@jcscottiii
Copy link
Collaborator

This commit introduces the ability to surface information about discouraged web features through the API.

The Feature object in the API response now includes an optional discouraged field. This field contains details on why a feature is discouraged, including links to the source (according_to) and a list of suggested alternatives.

Implementation details:

  • The openapi.yaml specification has been updated with the new FeatureDiscouragedInfo schema.
  • The core Spanner feature query now joins the FeatureDiscouragedDetails table to retrieve this information.
  • Data models, adapters, and tests have been updated throughout the backend to support and validate the new data.

This commit introduces the ability to surface information about discouraged web features through the API.

The `Feature` object in the API response now includes an optional `discouraged` field. This field contains details on why a feature is discouraged, including links to the source (`according_to`) and a list of suggested `alternatives`.

Implementation details:
- The `openapi.yaml` specification has been updated with the new `FeatureDiscouragedInfo` schema.
- The core Spanner feature query now joins the `FeatureDiscouragedDetails` table to retrieve this information.
- Data models, adapters, and tests have been updated throughout the backend to support and validate the new data.
@jcscottiii jcscottiii requested a review from jrobbins September 11, 2025 20:39
@jcscottiii jcscottiii added this pull request to the merge queue Sep 11, 2025
Merged via the queue into main with commit c040c3a Sep 11, 2025
7 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/backend-returns-discouraged-information branch September 11, 2025 21:43
@jcscottiii jcscottiii mentioned this pull request Sep 18, 2025
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.

2 participants