Debian Codegraph @

.github/DISCUSSION_TEMPLATE/questions.yml

raw
1 labels: [question]
2 body:
3 - type: markdown
4 attributes:
5 value: |
6 Thanks for your interest in FastAPI! 🚀
7
8 Please follow these instructions, fill every question, and do every step. 🙏
9
10 I'm asking this because answering questions and solving problems in GitHub is what consumes most of the time.
11
12 I end up not being able to add new features, fix bugs, review pull requests, etc. as fast as I wish because I have to spend too much time handling questions.
13
14 All that, on top of all the incredible help provided by a bunch of community members, the [FastAPI Experts](https://fastapi.tiangolo.com/fastapi-people/#experts), that give a lot of their time to come here and help others.
15
16 That's a lot of work they are doing, but if more FastAPI users came to help others like them just a little bit more, it would be much less effort for them (and you and me 😅).
17
18 By asking questions in a structured way (following this) it will be much easier to help you.
19
20 And there's a high chance that you will find the solution along the way and you won't even have to submit it and wait for an answer. 😎
21
22 As there are too many questions, I'll have to discard and close the incomplete ones. That will allow me (and others) to focus on helping people like you that follow the whole process and help us help you. 🤓
23 - type: checkboxes
24 id: checks
25 attributes:
26 label: First Check
27 description: Please confirm and check all the following options.
28 options:
29 - label: I added a very descriptive title here.
30 required: true
31 - label: I used the GitHub search to find a similar question and didn't find it.
32 required: true
33 - label: I searched the FastAPI documentation, with the integrated search.
34 required: true
35 - label: I already searched in Google "How to X in FastAPI" and didn't find any information.
36 required: true
37 - label: I already read and followed all the tutorial in the docs and didn't find an answer.
38 required: true
39 - label: I already checked if it is not related to FastAPI but to [Pydantic](https://github.com/pydantic/pydantic).
40 required: true
41 - label: I already checked if it is not related to FastAPI but to [Swagger UI](https://github.com/swagger-api/swagger-ui).
42 required: true
43 - label: I already checked if it is not related to FastAPI but to [ReDoc](https://github.com/Redocly/redoc).
44 required: true
45 - type: checkboxes
46 id: help
47 attributes:
48 label: Commit to Help
49 description: |
50 After submitting this, I commit to one of:
51
52 * Read open questions until I find 2 where I can help someone and add a comment to help there.
53 * I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
54 * Review one Pull Request by downloading the code and following [all the review process](https://fastapi.tiangolo.com/help-fastapi/#review-pull-requests).
55
56 options:
57 - label: I commit to help with one of those options 👆
58 required: true
59 - type: textarea
60 id: example
61 attributes:
62 label: Example Code
63 description: |
64 Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case.
65
66 If I (or someone) can copy it, run it, and see it right away, there's a much higher chance I (or someone) will be able to help you.
67
68 placeholder: |
69 from fastapi import FastAPI
70
71 app = FastAPI()
72
73
74 @app.get("/")
75 def read_root():
76 return {"Hello": "World"}
77 render: python
78 validations:
79 required: true
80 - type: textarea
81 id: description
82 attributes:
83 label: Description
84 description: |
85 What is the problem, question, or error?
86
87 Write a short description telling me what you are doing, what you expect to happen, and what is currently happening.
88 placeholder: |
89 * Open the browser and call the endpoint `/`.
90 * It returns a JSON with `{"Hello": "World"}`.
91 * But I expected it to return `{"Hello": "Sara"}`.
92 validations:
93 required: true
94 - type: dropdown
95 id: os
96 attributes:
97 label: Operating System
98 description: What operating system are you on?
99 multiple: true
100 options:
101 - Linux
102 - Windows
103 - macOS
104 - Other
105 validations:
106 required: true
107 - type: textarea
108 id: os-details
109 attributes:
110 label: Operating System Details
111 description: You can add more details about your operating system here, in particular if you chose "Other".
112 - type: input
113 id: fastapi-version
114 attributes:
115 label: FastAPI Version
116 description: |
117 What FastAPI version are you using?
118
119 You can find the FastAPI version with:
120
121 ```bash
122 python -c "import fastapi; print(fastapi.__version__)"
123 ```
124 validations:
125 required: true
126 - type: input
127 id: pydantic-version
128 attributes:
129 label: Pydantic Version
130 description: |
131 What Pydantic version are you using?
132
133 You can find the Pydantic version with:
134
135 ```bash
136 python -c "import pydantic; print(pydantic.version.VERSION)"
137 ```
138 validations:
139 required: true
140 - type: input
141 id: python-version
142 attributes:
143 label: Python Version
144 description: |
145 What Python version are you using?
146
147 You can find the Python version with:
148
149 ```bash
150 python --version
151 ```
152 validations:
153 required: true
154 - type: textarea
155 id: context
156 attributes:
157 label: Additional Context
158 description: Add any additional context information or screenshots you think are useful.