Tag regions of Asciidoctor snippets to allow their contents to be selectively included
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- documentation
Direzione di ricerca
Start by reviewing the generated http-response.adoc and the related snippet files: curl-request.adoc, http-request.adoc, httpie-request.adoc, request-body.adoc, and response-body.adoc. Read the linked Asciidoctor tagged-regions documentation to understand the proposed inclusion mechanism. Done means documenting response headers separately, either through a dedicated snippet or selectable tagged regions, without brittle line ranges.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When documenting some endpoint which returns protobuf format, I'd find it useful to be able to document the response headers without the body. Currently this is what I get:
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
X-Protobuf-Schema: proto1.proto
X-Protobuf-Message: com.org.project.Proto1
Content-Length: 226
�
GBP�"33.31*
GBP�2
GBP��
Sadly, the automatically generated snippets are:
- curl-request.adoc
- http-request.adoc
- http-response.adoc
- httpie-request.adoc
- request-body.adoc
- response-body.adoc
Note that there is not one that includes just the response headers without the body. I can work around this in a slightly hacky way by doing my include like this include::filename.txt[lines=0..5] however, obviously this is a little brittle if new headers should appear and I don't update this to include them (they will be chopped off).
I'd like to request as a feature either:
- Adding a new snippet with just the response headers and no body.
- Ascii doctors seems to support a concept of
tagged regionsas seen here: https://asciidoctor.org/docs/user-manual/#by-tagged-regions which would allow thehttp-response.adocto potentially include tags for the headers and body which could then improve how I can include just the headers.
- Lingua principale
- Java
- Stelle
- 1.2k
- Fork
- 733
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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 spring-projects/spring-restdocs
-
status: waiting-for-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
spring-projects/spring-restdocs#1075 ·
-
Support extracting Bean Validation constraints from method parametersForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertastatus: waiting-for-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
spring-projects/spring-restdocs#1026 · 2 commenti ·
-
status: blocked status: waiting-for-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
spring-projects/spring-restdocs#953 · 7 commenti ·
-
Add support for modifying a URI's path during pre-processingForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertatype: enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
status: feedback-provided status: waiting-for-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
spring-projects/spring-restdocs#937 · 4 commenti ·
Tutte le issue di spring-projects/spring-restdocs
Issue simili
-
agent:working follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Sanne/incus-spawn#1683 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
checkstyle/checkstyle#22210 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
521xueweihan/HelloGitHub#4105 ·
-
devops good first issue security
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
asciidoctor/asciidoctorj#1339 ·