[Bug]: OneOf Directive is missed in Schema
Maintainer antworten meist innerhalb von 7 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 53/100
Rechercherichtung
Start by comparing GraphQL schema generation in version 2.1.5 with the earlier 1.6+ behavior described in the issue, focusing on how OneOf input types are represented. Reproduce with a PostgreSQL configuration containing a OneOf input type and inspect the generated schema. Done when the schema includes @oneOf on those input types.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What happened?
Description :
The generated GraphQL schema is missing the @oneOf directive in the latest version of DAB. This functionality was working correctly in earlier versions (1.6+), where the schema correctly exposed OneOf input objects with the @oneOf directive.
Expected Behavior :
When generating the GraphQL schema, input objects configured as OneOf types should include the @oneOf directive in the schema output.
Actual Behavior:
The generated schema does not include the @oneOf directive
Impact :
GraphQL clients cannot discover OneOf semantics through schema introspection.
Schema does not accurately represent the intended input validation rules.
Potential interoperability issues with tooling that relies on the @oneOf directive.
Steps to Reproduce :
Configure an input type that should behave as a OneOf input.
Generate or inspect the GraphQL schema.
Observe that the @oneOf directive is not present on the input type.
Environment
Product: Data API Builder (DAB)
Previous Working Version: 1.6+
Current Version: Latest
Database: PostgreSQL
GraphQL Endpoint: Enabled
Additional Context
This behavior seems to be a regression introduced in a recent release. The same configuration generated schemas with the @oneOf directive in DAB 1.6+, but the directive is no longer emitted in the latest version
Version
2.1.5
What database are you using?
PostgreSQL
What hosting model are you using?
Static Web Apps (SWA), Container Apps
Which API approach are you accessing DAB through?
GraphQL
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 380
- Ø Merge
- 5 T. 55 Min.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Azure/data-api-builder
-
[Bug]: GraphQL fields listed after a fragment spread are silently droppedEvtl. vergeben @hippi345 hat das vor 18 Tagen übernommen. Offenbug triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Azure/data-api-builder#3861 ·
Maintainer antworten meist innerhalb von 7 Tagen
-
pgsql
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Azure/data-api-builder#3598 ·
Maintainer antworten meist innerhalb von 7 Tagen
-
2.x cli mcp-server
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Azure/data-api-builder#3576 ·
Maintainer antworten meist innerhalb von 7 Tagen
-
2.x health-endpoint
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Azure/data-api-builder#3570 ·
Maintainer antworten meist innerhalb von 7 Tagen
-
2.x telemetry
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Azure/data-api-builder#3564 ·
Maintainer antworten meist innerhalb von 7 Tagen
Alle Issues in Azure/data-api-builder
Ähnliche Issues
-
bug untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
CarlosAdrianM/Nesto#610 ·
-
area/resource-registry status/triage
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Altinn/altinn-auth#4821 ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y community:contribution
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
microsoft/fluentui-blazor#5590 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug mcp small
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag