<h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="val = 1    

async def functionOne(self) -&gt; JSONResponse:
        try:
            await addOne(); // adds one to value.
            return JSONResponse(status_code=200, content={&quot;message&quot;: &quot;example&quot;})
        except ValueError as e:
            return JSONResponse(status_code=400, content={&quot;message&quot;: e.args[0]})


router.get('/example')(self.functionOne)"><pre class="notranslate"><span class="pl-s1">val</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>    

<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">functionOne</span>(<span class="pl-s1">self</span>) <span class="pl-c1">-&gt;</span> <span class="pl-v">JSONResponse</span>:
        <span class="pl-k">try</span>:
            <span class="pl-k">await</span> <span class="pl-en">addOne</span>(); <span class="pl-c1">//</span> <span class="pl-s1">adds</span> <span class="pl-s1">one</span> <span class="pl-s1">to</span> <span class="pl-s1">value</span>.
            <span class="pl-s1">return</span> <span class="pl-v">JSONResponse</span>(<span class="pl-s1">status_code</span><span class="pl-c1">=</span><span class="pl-c1">200</span>, <span class="pl-s1">content</span><span class="pl-c1">=</span>{<span class="pl-s">"message"</span>: <span class="pl-s">"example"</span>})
        <span class="pl-k">except</span> <span class="pl-v">ValueError</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
            <span class="pl-k">return</span> <span class="pl-v">JSONResponse</span>(<span class="pl-s1">status_code</span><span class="pl-c1">=</span><span class="pl-c1">400</span>, <span class="pl-s1">content</span><span class="pl-c1">=</span>{<span class="pl-s">"message"</span>: <span class="pl-s1">e</span>.<span class="pl-s1">args</span>[<span class="pl-c1">0</span>]})


<span class="pl-s1">router</span>.<span class="pl-en">get</span>(<span class="pl-s">'/example'</span>)(<span class="pl-s1">self</span>.<span class="pl-s1">functionOne</span>)</pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">the value of the val should be 2 but getting 3 because I am getting duplicate requests in a single hit.</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto">Linux</p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.70.1</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.8</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">First check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> After submitting this, I commit to one of:
<ul dir="auto">
<li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li>
<li>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.</li>
<li>Implement a Pull Request for a confirmed bug.</li>
</ul>
</li>
</ul>

<h3 dir="auto">Example</h3>
<p dir="auto">Here's a self-contained, <a href="https://stackoverflow.com/help/minimal-reproducible-example" rel="nofollow">minimal, reproducible, example</a> with my use case:</p>

<h4 dir="auto"><code class="notranslate">main.py</code></h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI

import router1
import router2

app = FastAPI()

app.include_router(router1.router, prefix=&quot;/r1&quot;)
app.include_router(router2.router, prefix=&quot;/r2&quot;)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>

<span class="pl-k">import</span> <span class="pl-s1">router1</span>
<span class="pl-k">import</span> <span class="pl-s1">router2</span>

<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()

<span class="pl-s1">app</span>.<span class="pl-en">include_router</span>(<span class="pl-s1">router1</span>.<span class="pl-s1">router</span>, <span class="pl-s1">prefix</span><span class="pl-c1">=</span><span class="pl-s">"/r1"</span>)
<span class="pl-s1">app</span>.<span class="pl-en">include_router</span>(<span class="pl-s1">router2</span>.<span class="pl-s1">router</span>, <span class="pl-s1">prefix</span><span class="pl-c1">=</span><span class="pl-s">"/r2"</span>)</pre></div>
<h4 dir="auto"><code class="notranslate">router1.py</code></h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from enum import Enum

from fastapi import APIRouter


class DuplicatedEnum(str, Enum):
    value1 = &quot;value1&quot;


router = APIRouter()


@router.get(&quot;/&quot;)
async def _(type: DuplicatedEnum = DuplicatedEnum.value1):
    pass"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">enum</span> <span class="pl-k">import</span> <span class="pl-v">Enum</span>

<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">APIRouter</span>


<span class="pl-k">class</span> <span class="pl-v">DuplicatedEnum</span>(<span class="pl-s1">str</span>, <span class="pl-v">Enum</span>):
    <span class="pl-s1">value1</span> <span class="pl-c1">=</span> <span class="pl-s">"value1"</span>


<span class="pl-s1">router</span> <span class="pl-c1">=</span> <span class="pl-v">APIRouter</span>()


<span class="pl-en">@<span class="pl-s1">router</span>.<span class="pl-en">get</span>(<span class="pl-s">"/"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">_</span>(<span class="pl-s1">type</span>: <span class="pl-v">DuplicatedEnum</span> <span class="pl-c1">=</span> <span class="pl-v">DuplicatedEnum</span>.<span class="pl-s1">value1</span>):
    <span class="pl-k">pass</span></pre></div>
<h4 dir="auto"><code class="notranslate">router2.py</code></h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from enum import Enum

from fastapi import APIRouter


class DuplicatedEnum(str, Enum):
    value2 = &quot;value2&quot;


router = APIRouter()


@router.get(&quot;/&quot;)
async def _(type: DuplicatedEnum = DuplicatedEnum.value2):
    pass"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">enum</span> <span class="pl-k">import</span> <span class="pl-v">Enum</span>

<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">APIRouter</span>


<span class="pl-k">class</span> <span class="pl-v">DuplicatedEnum</span>(<span class="pl-s1">str</span>, <span class="pl-v">Enum</span>):
    <span class="pl-s1">value2</span> <span class="pl-c1">=</span> <span class="pl-s">"value2"</span>


<span class="pl-s1">router</span> <span class="pl-c1">=</span> <span class="pl-v">APIRouter</span>()


<span class="pl-en">@<span class="pl-s1">router</span>.<span class="pl-en">get</span>(<span class="pl-s">"/"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">_</span>(<span class="pl-s1">type</span>: <span class="pl-v">DuplicatedEnum</span> <span class="pl-c1">=</span> <span class="pl-v">DuplicatedEnum</span>.<span class="pl-s1">value2</span>):
    <span class="pl-k">pass</span></pre></div>
<h3 dir="auto">Description</h3>

<ul dir="auto">
<li>Open the browser and call the document <code class="notranslate">/redoc</code>.</li>
<li>It raised error <code class="notranslate">Error resolving $ref pointer "http://127.0.0.1:8000/openapi.json#/components/schemas/DuplicatedEnum". Token "DuplicatedEnum" does not exist.</code></li>
<li>After I checked <code class="notranslate">openapi.json</code>, it gives wrong parameter schema:</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
	&quot;openapi&quot;: &quot;3.0.2&quot;,
	&quot;info&quot;: {
		&quot;title&quot;: &quot;FastAPI&quot;,
		&quot;version&quot;: &quot;0.1.0&quot;
	},
	&quot;paths&quot;: {
		&quot;/r1/&quot;: {
			&quot;get&quot;: {
				&quot;summary&quot;: &quot; &quot;,
				&quot;operationId&quot;: &quot;__r1__get&quot;,
				&quot;parameters&quot;: [{
					&quot;required&quot;: false,
					&quot;schema&quot;: {
						&quot;allOf&quot;: [{
							&quot;$ref&quot;: &quot;#/components/schemas/DuplicatedEnum&quot; //should be `router1__DuplicatedEnum`
						}],
						&quot;default&quot;: &quot;value1&quot;
					},
					&quot;name&quot;: &quot;type&quot;,
					&quot;in&quot;: &quot;query&quot;
				}],
				&quot;responses&quot;: {
					&quot;200&quot;: {
						&quot;description&quot;: &quot;Successful Response&quot;,
						&quot;content&quot;: {
							&quot;application/json&quot;: {
								&quot;schema&quot;: {}
							}
						}
					},
					&quot;422&quot;: {
						&quot;description&quot;: &quot;Validation Error&quot;,
						&quot;content&quot;: {
							&quot;application/json&quot;: {
								&quot;schema&quot;: {
									&quot;$ref&quot;: &quot;#/components/schemas/HTTPValidationError&quot;
								}
							}
						}
					}
				}
			}
		},
		&quot;/r2/&quot;: {
			&quot;get&quot;: {
				&quot;summary&quot;: &quot; &quot;,
				&quot;operationId&quot;: &quot;__r2__get&quot;,
				&quot;parameters&quot;: [{
					&quot;required&quot;: false,
					&quot;schema&quot;: {
						&quot;allOf&quot;: [{
							&quot;$ref&quot;: &quot;#/components/schemas/DuplicatedEnum&quot;
						}],
						&quot;default&quot;: &quot;value2&quot;
					},
					&quot;name&quot;: &quot;type&quot;,
					&quot;in&quot;: &quot;query&quot;
				}],
				&quot;responses&quot;: {
					&quot;200&quot;: {
						&quot;description&quot;: &quot;Successful Response&quot;,
						&quot;content&quot;: {
							&quot;application/json&quot;: {
								&quot;schema&quot;: {}
							}
						}
					},
					&quot;422&quot;: {
						&quot;description&quot;: &quot;Validation Error&quot;,
						&quot;content&quot;: {
							&quot;application/json&quot;: {
								&quot;schema&quot;: {
									&quot;$ref&quot;: &quot;#/components/schemas/HTTPValidationError&quot;
								}
							}
						}
					}
				}
			}
		}
	},
	&quot;components&quot;: {
		&quot;schemas&quot;: {
			&quot;HTTPValidationError&quot;: {
				&quot;title&quot;: &quot;HTTPValidationError&quot;,
				&quot;type&quot;: &quot;object&quot;,
				&quot;properties&quot;: {
					&quot;detail&quot;: {
						&quot;title&quot;: &quot;Detail&quot;,
						&quot;type&quot;: &quot;array&quot;,
						&quot;items&quot;: {
							&quot;$ref&quot;: &quot;#/components/schemas/ValidationError&quot;
						}
					}
				}
			},
			&quot;ValidationError&quot;: {
				&quot;title&quot;: &quot;ValidationError&quot;,
				&quot;required&quot;: [&quot;loc&quot;, &quot;msg&quot;, &quot;type&quot;],
				&quot;type&quot;: &quot;object&quot;,
				&quot;properties&quot;: {
					&quot;loc&quot;: {
						&quot;title&quot;: &quot;Location&quot;,
						&quot;type&quot;: &quot;array&quot;,
						&quot;items&quot;: {
							&quot;type&quot;: &quot;string&quot;
						}
					},
					&quot;msg&quot;: {
						&quot;title&quot;: &quot;Message&quot;,
						&quot;type&quot;: &quot;string&quot;
					},
					&quot;type&quot;: {
						&quot;title&quot;: &quot;Error Type&quot;,
						&quot;type&quot;: &quot;string&quot;
					}
				}
			},
			&quot;router1__DuplicatedEnum&quot;: {
				&quot;title&quot;: &quot;DuplicatedEnum&quot;,
				&quot;enum&quot;: [&quot;value1&quot;],
				&quot;type&quot;: &quot;string&quot;,
				&quot;description&quot;: &quot;An enumeration.&quot;
			},
			&quot;router2__DuplicatedEnum&quot;: {
				&quot;title&quot;: &quot;DuplicatedEnum&quot;,
				&quot;enum&quot;: [&quot;value2&quot;],
				&quot;type&quot;: &quot;string&quot;,
				&quot;description&quot;: &quot;An enumeration.&quot;
			}
		}
	}
}"><pre class="notranslate"><span class="pl-kos">{</span>
	<span class="pl-s">"openapi"</span>: <span class="pl-s">"3.0.2"</span><span class="pl-kos">,</span>
	<span class="pl-s">"info"</span>: <span class="pl-kos">{</span>
		<span class="pl-s">"title"</span>: <span class="pl-s">"FastAPI"</span><span class="pl-kos">,</span>
		<span class="pl-s">"version"</span>: <span class="pl-s">"0.1.0"</span>
	<span class="pl-kos">}</span><span class="pl-kos">,</span>
	<span class="pl-s">"paths"</span>: <span class="pl-kos">{</span>
		<span class="pl-s">"/r1/"</span>: <span class="pl-kos">{</span>
			<span class="pl-s">"get"</span>: <span class="pl-kos">{</span>
				<span class="pl-s">"summary"</span>: <span class="pl-s">" "</span><span class="pl-kos">,</span>
				<span class="pl-s">"operationId"</span>: <span class="pl-s">"__r1__get"</span><span class="pl-kos">,</span>
				<span class="pl-s">"parameters"</span>: <span class="pl-kos">[</span><span class="pl-kos">{</span>
					<span class="pl-s">"required"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
					<span class="pl-s">"schema"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"allOf"</span>: <span class="pl-kos">[</span><span class="pl-kos">{</span>
							<span class="pl-s">"$ref"</span>: <span class="pl-s">"#/components/schemas/DuplicatedEnum"</span> <span class="pl-c">//should be `router1__DuplicatedEnum`</span>
						<span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
						<span class="pl-s">"default"</span>: <span class="pl-s">"value1"</span>
					<span class="pl-kos">}</span><span class="pl-kos">,</span>
					<span class="pl-s">"name"</span>: <span class="pl-s">"type"</span><span class="pl-kos">,</span>
					<span class="pl-s">"in"</span>: <span class="pl-s">"query"</span>
				<span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
				<span class="pl-s">"responses"</span>: <span class="pl-kos">{</span>
					<span class="pl-s">"200"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"description"</span>: <span class="pl-s">"Successful Response"</span><span class="pl-kos">,</span>
						<span class="pl-s">"content"</span>: <span class="pl-kos">{</span>
							<span class="pl-s">"application/json"</span>: <span class="pl-kos">{</span>
								<span class="pl-s">"schema"</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span>
							<span class="pl-kos">}</span>
						<span class="pl-kos">}</span>
					<span class="pl-kos">}</span><span class="pl-kos">,</span>
					<span class="pl-s">"422"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"description"</span>: <span class="pl-s">"Validation Error"</span><span class="pl-kos">,</span>
						<span class="pl-s">"content"</span>: <span class="pl-kos">{</span>
							<span class="pl-s">"application/json"</span>: <span class="pl-kos">{</span>
								<span class="pl-s">"schema"</span>: <span class="pl-kos">{</span>
									<span class="pl-s">"$ref"</span>: <span class="pl-s">"#/components/schemas/HTTPValidationError"</span>
								<span class="pl-kos">}</span>
							<span class="pl-kos">}</span>
						<span class="pl-kos">}</span>
					<span class="pl-kos">}</span>
				<span class="pl-kos">}</span>
			<span class="pl-kos">}</span>
		<span class="pl-kos">}</span><span class="pl-kos">,</span>
		<span class="pl-s">"/r2/"</span>: <span class="pl-kos">{</span>
			<span class="pl-s">"get"</span>: <span class="pl-kos">{</span>
				<span class="pl-s">"summary"</span>: <span class="pl-s">" "</span><span class="pl-kos">,</span>
				<span class="pl-s">"operationId"</span>: <span class="pl-s">"__r2__get"</span><span class="pl-kos">,</span>
				<span class="pl-s">"parameters"</span>: <span class="pl-kos">[</span><span class="pl-kos">{</span>
					<span class="pl-s">"required"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
					<span class="pl-s">"schema"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"allOf"</span>: <span class="pl-kos">[</span><span class="pl-kos">{</span>
							<span class="pl-s">"$ref"</span>: <span class="pl-s">"#/components/schemas/DuplicatedEnum"</span>
						<span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
						<span class="pl-s">"default"</span>: <span class="pl-s">"value2"</span>
					<span class="pl-kos">}</span><span class="pl-kos">,</span>
					<span class="pl-s">"name"</span>: <span class="pl-s">"type"</span><span class="pl-kos">,</span>
					<span class="pl-s">"in"</span>: <span class="pl-s">"query"</span>
				<span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
				<span class="pl-s">"responses"</span>: <span class="pl-kos">{</span>
					<span class="pl-s">"200"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"description"</span>: <span class="pl-s">"Successful Response"</span><span class="pl-kos">,</span>
						<span class="pl-s">"content"</span>: <span class="pl-kos">{</span>
							<span class="pl-s">"application/json"</span>: <span class="pl-kos">{</span>
								<span class="pl-s">"schema"</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span>
							<span class="pl-kos">}</span>
						<span class="pl-kos">}</span>
					<span class="pl-kos">}</span><span class="pl-kos">,</span>
					<span class="pl-s">"422"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"description"</span>: <span class="pl-s">"Validation Error"</span><span class="pl-kos">,</span>
						<span class="pl-s">"content"</span>: <span class="pl-kos">{</span>
							<span class="pl-s">"application/json"</span>: <span class="pl-kos">{</span>
								<span class="pl-s">"schema"</span>: <span class="pl-kos">{</span>
									<span class="pl-s">"$ref"</span>: <span class="pl-s">"#/components/schemas/HTTPValidationError"</span>
								<span class="pl-kos">}</span>
							<span class="pl-kos">}</span>
						<span class="pl-kos">}</span>
					<span class="pl-kos">}</span>
				<span class="pl-kos">}</span>
			<span class="pl-kos">}</span>
		<span class="pl-kos">}</span>
	<span class="pl-kos">}</span><span class="pl-kos">,</span>
	<span class="pl-s">"components"</span>: <span class="pl-kos">{</span>
		<span class="pl-s">"schemas"</span>: <span class="pl-kos">{</span>
			<span class="pl-s">"HTTPValidationError"</span>: <span class="pl-kos">{</span>
				<span class="pl-s">"title"</span>: <span class="pl-s">"HTTPValidationError"</span><span class="pl-kos">,</span>
				<span class="pl-s">"type"</span>: <span class="pl-s">"object"</span><span class="pl-kos">,</span>
				<span class="pl-s">"properties"</span>: <span class="pl-kos">{</span>
					<span class="pl-s">"detail"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"title"</span>: <span class="pl-s">"Detail"</span><span class="pl-kos">,</span>
						<span class="pl-s">"type"</span>: <span class="pl-s">"array"</span><span class="pl-kos">,</span>
						<span class="pl-s">"items"</span>: <span class="pl-kos">{</span>
							<span class="pl-s">"$ref"</span>: <span class="pl-s">"#/components/schemas/ValidationError"</span>
						<span class="pl-kos">}</span>
					<span class="pl-kos">}</span>
				<span class="pl-kos">}</span>
			<span class="pl-kos">}</span><span class="pl-kos">,</span>
			<span class="pl-s">"ValidationError"</span>: <span class="pl-kos">{</span>
				<span class="pl-s">"title"</span>: <span class="pl-s">"ValidationError"</span><span class="pl-kos">,</span>
				<span class="pl-s">"required"</span>: <span class="pl-kos">[</span><span class="pl-s">"loc"</span><span class="pl-kos">,</span> <span class="pl-s">"msg"</span><span class="pl-kos">,</span> <span class="pl-s">"type"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
				<span class="pl-s">"type"</span>: <span class="pl-s">"object"</span><span class="pl-kos">,</span>
				<span class="pl-s">"properties"</span>: <span class="pl-kos">{</span>
					<span class="pl-s">"loc"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"title"</span>: <span class="pl-s">"Location"</span><span class="pl-kos">,</span>
						<span class="pl-s">"type"</span>: <span class="pl-s">"array"</span><span class="pl-kos">,</span>
						<span class="pl-s">"items"</span>: <span class="pl-kos">{</span>
							<span class="pl-s">"type"</span>: <span class="pl-s">"string"</span>
						<span class="pl-kos">}</span>
					<span class="pl-kos">}</span><span class="pl-kos">,</span>
					<span class="pl-s">"msg"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"title"</span>: <span class="pl-s">"Message"</span><span class="pl-kos">,</span>
						<span class="pl-s">"type"</span>: <span class="pl-s">"string"</span>
					<span class="pl-kos">}</span><span class="pl-kos">,</span>
					<span class="pl-s">"type"</span>: <span class="pl-kos">{</span>
						<span class="pl-s">"title"</span>: <span class="pl-s">"Error Type"</span><span class="pl-kos">,</span>
						<span class="pl-s">"type"</span>: <span class="pl-s">"string"</span>
					<span class="pl-kos">}</span>
				<span class="pl-kos">}</span>
			<span class="pl-kos">}</span><span class="pl-kos">,</span>
			<span class="pl-s">"router1__DuplicatedEnum"</span>: <span class="pl-kos">{</span>
				<span class="pl-s">"title"</span>: <span class="pl-s">"DuplicatedEnum"</span><span class="pl-kos">,</span>
				<span class="pl-s">"enum"</span>: <span class="pl-kos">[</span><span class="pl-s">"value1"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
				<span class="pl-s">"type"</span>: <span class="pl-s">"string"</span><span class="pl-kos">,</span>
				<span class="pl-s">"description"</span>: <span class="pl-s">"An enumeration."</span>
			<span class="pl-kos">}</span><span class="pl-kos">,</span>
			<span class="pl-s">"router2__DuplicatedEnum"</span>: <span class="pl-kos">{</span>
				<span class="pl-s">"title"</span>: <span class="pl-s">"DuplicatedEnum"</span><span class="pl-kos">,</span>
				<span class="pl-s">"enum"</span>: <span class="pl-kos">[</span><span class="pl-s">"value2"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
				<span class="pl-s">"type"</span>: <span class="pl-s">"string"</span><span class="pl-kos">,</span>
				<span class="pl-s">"description"</span>: <span class="pl-s">"An enumeration."</span>
			<span class="pl-kos">}</span>
		<span class="pl-kos">}</span>
	<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: [e.g. Linux / Windows / macOS]: Linux</li>
<li>FastAPI Version [e.g. 0.3.0]: 0.63.0</li>
<li>Python version: 3.9.1</li>
</ul>