我正在查看 OAS,可以看到它在哪里列出了推荐的文件名,但openapi.json
我有两个问题:
显然没有一个标准的放置位置,但是否存在人们似乎遵循的事实上的标准?就像假设最“正常”的地方使它可以访问/openapi.json
?
为什么这被排除在规范之外,为什么甚至只是推荐而不是必需的文档名称?这样做的部分目的不就是让它被发现吗?似乎重新定位 OpenAPI 文档可以通过给你一些你必须知道的东西来减少这一点。忽略它有什么好处吗?
尝试测试可编辑安装,但我不确定如何解释结果。
我故意在这部分打错字egg=
,但它仍然能够在没有我帮助的情况下找到鸡蛋:
root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git
Could not detect requirement name for 'git+https://gitlab.com/jame/clientapp.git', please specify one with #egg=your_package_name
root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git#egg=
Could not detect requirement name for 'git+https://gitlab.com/jame/clientapp.git#egg=', please specify one with #egg=your_package_name
root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git#egg=e
Obtaining e from git+https://gitlab.com/jame/clientapp.git#egg=e
Cloning https://gitlab.com/jame/clientapp.git to /src/e
Running setup.py (path:/src/e/setup.py) egg_info for package e produced metadata for project name clientapp. Fix your #egg=e fragments.
Installing collected packages: clientapp
Found existing installation: ClientApp 0.7
Can't uninstall 'ClientApp'. …
Run Code Online (Sandbox Code Playgroud)