[Bug]: OneOf Directive is missed in Schema
Los mantenedores suelen responder en 7 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 53/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C#
- Estrellas
- 1.5k
- Forks
- 380
- Merge medio
- 5 d 55 min
- PR fusionados (30 d)
- 5
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/data-api-builder
-
[Bug]: GraphQL fields listed after a fragment spread are silently droppedPosiblemente ocupada @hippi345 la tomó hace 18 días. Abiertobug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Azure/data-api-builder#3861 ·
Los mantenedores suelen responder en 7 días
-
pgsql
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Azure/data-api-builder#3598 ·
Los mantenedores suelen responder en 7 días
-
2.x cli mcp-server
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Azure/data-api-builder#3576 ·
Los mantenedores suelen responder en 7 días
-
2.x health-endpoint
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Azure/data-api-builder#3570 ·
Los mantenedores suelen responder en 7 días
-
2.x telemetry
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Azure/data-api-builder#3564 ·
Los mantenedores suelen responder en 7 días
Todos los issues de Azure/data-api-builder
Issues similares
-
area/resource-registry status/triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
Altinn/altinn-auth#4821 ·
Los mantenedores suelen responder en 1 día
-
a11y community:contribution
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
microsoft/fluentui-blazor#5590 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
JetBrains/resharper-unity#2510 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
QuantConnect/Documentation#2838 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
AvaloniaUI/Avalonia#22697 · 1 comentario ·
Los mantenedores suelen responder en 1 día