Azure / Azure/data-api-builder
[Bug]: Mcp valid but wrong
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 22h
- PR unite (30g)
- 9
Descrizione
## What?
There is a Boolean shorthand on entities currently supported in the 2.0 JSON schema:
```json
{
"entities": {
"Products": {
"mcp": true
},
"SensitiveData": {
"mcp": false
}
}
}
```
However, here's the problem:
```json
{
"entities": {
"Products": {
"mcp": {
"dml-tools": true,
"custom-tool": false
}
},
"SensitiveData": {
"mcp": {
"dml-tools": false,
"custom-tool": false
}
}
}
}
```
### This is confusing
It is unclear which sub-property the shorthand is actually toggling.
## Fix
Remove the shorthand on entities, I have already removed it from the docs.
### Not in runtime!
Do not remove the `runtime.mcp.enabled` shorthand, that is still great!
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina la definizione dello schema JSON 2.0 per la configurazione mcp a livello di entità e individua dove è accettata la forma abbreviata booleana. Verifica che i valori mcp dell'entità debbano usare la forma oggetto, mentre runtime.mcp.enabled accetti ancora la relativa forma abbreviata; aggiorna o esegui i controlli di validazione dello schema pertinenti, se presenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 76/100