[Bug]: OneOf Directive is missed in Schema
Mantenedores costumam responder em até 7 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 53/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- C#
- Estrelas
- 1.5k
- Forks
- 380
- Merge médio
- 5d 11h
- PRs com merge (30d)
- 4
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Azure/data-api-builder
-
[Bug]: GraphQL fields listed after a fragment spread are silently droppedTalvez já em andamento @hippi345 assumiu há 16 dias. Abertabug triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Azure/data-api-builder#3861 ·
Mantenedores costumam responder em até 7 dias
-
pgsql
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Azure/data-api-builder#3598 ·
Mantenedores costumam responder em até 7 dias
-
2.x cli mcp-server
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Azure/data-api-builder#3576 ·
Mantenedores costumam responder em até 7 dias
-
2.x health-endpoint
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Azure/data-api-builder#3570 ·
Mantenedores costumam responder em até 7 dias
-
2.x telemetry
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Azure/data-api-builder#3564 ·
Mantenedores costumam responder em até 7 dias
Todas as issues de Azure/data-api-builder
Issues semelhantes
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
MustacheCase/zanadir#506 ·
Mantenedores costumam responder em até 1 dia
-
effort:S P3 refactor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
nightscout/nocturne#3243 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
dasher-project/Dasher-Windows#84 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
libnativeapi/nativeapi#21 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100