Support for anyOf/minProperties for required schema properties.
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- openapi, react, typescript
- Ambito
- documentation
Direzione di ricerca
Start by reproducing the issue with the provided OpenAPI YAML and inspect the schema-rendering path that produces the Docusaurus Tabs error. Support the anyOf required-property case, including minProperties if relevant; done means the page renders and communicates the either/or requirement without the no-TabItem error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Given the following schema the generated page does not properly render and instead gives an error:
Docusaurus error: the <Tabs> component requires at least one <TabItem> children component
post:
tags:
- Suggested Entitlement Description
operationId: submitSedBatchRequest
summary: Submit Sed Batch Request
description: 'Submit Sed Batch Request.
Request body has one of the following:
- a list of entitlement Ids
- a list of SED Ids
that user wants to have description generated by LLM.
API responses with batchId that groups Ids together'
requestBody:
description: Sed Batch Request
content:
application/json:
schema:
description: Sed Batch Request
type: object
anyOf:
- required: [entitlements]
- required: [seds]
properties:
entitlements:
description: list of entitlement ids
type: array
items:
type: string
example: 016629d1-1d25-463f-97f3-c6686846650
seds:
description: list of sed ids
type: array
items:
type: string
example: 016629d1-1d25-463f-97f3-c6686846650
Expected behavior
Request body should display and show that you must specific either an array of entitlements or an array of sed ids.
Current behavior
I receive the error above, I believe this is because the plugin is not accounting for this use-case in open api specification.
Possible solution
Steps to reproduce
Create a schema with the use of anyOf property to denote that you must include either property.
Screenshots
Context
Your Environment
- Version used:
- Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): Node v20.9.0
- Operating System and version (desktop or mobile): MacOS Sonoma 14.7
- Link to your project:
- Lingua principale
- TypeScript
- Stelle
- 1.1k
- Fork
- 318
- Merge medio
- 2g 8h
- PR unite (30g)
- 28
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PaloAltoNetworks/docusaurus-openapi-docs
-
Send API Request drops number and boolean default values of query parametersForse già presa @sean0407 l’ha presa 17 giorni fa. Apertabug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 66/100
PaloAltoNetworks/docusaurus-openapi-docs#1654 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
PaloAltoNetworks/docusaurus-openapi-docs#1653 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PaloAltoNetworks/docusaurus-openapi-docs#1473 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
PaloAltoNetworks/docusaurus-openapi-docs#1472 · 1 commento · 2 reazioni ·
I maintainer di solito rispondono entro 2 giorni
-
Only show one "Introduction" item with `groupPathsBy: "tagGroup"` and `categoryLinkSource: "tag"`Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PaloAltoNetworks/docusaurus-openapi-docs#1297 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di PaloAltoNetworks/docusaurus-openapi-docs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Graphify-Labs/graphify#4860 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sveltejs/eslint-plugin-svelte#1615 ·
I maintainer di solito rispondono entro 7 giorni
-
Parallel reticle_verify opens per-flow leases without the source lease's ignoreHTTPSErrorsForse già presa @as992949791 l’ha presa oggi. Apertagood first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
reticlehq/reticle#2033 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno