- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 1,361 for openat (0.15 sec)
-
docs/zh/docs/advanced/custom-response.md
!!! info "提示" 当然,实际的 `Content-Type` 头,状态码等等,将来自于你返回的 `Response` 对象。 ### OpenAPI 中的文档和重载 `Response` 如果你想要在函数内重载响应,但是同时在 OpenAPI 中文档化「媒体类型」,你可以使用 `response_class` 参数并返回一个 `Response` 对象。 接着 `response_class` 参数只会被用来文档化 OpenAPI 的 *路径操作*,你的 `Response` 用来返回响应。 ### 直接返回 `HTMLResponse` 比如像这样: ```Python hl_lines="7 23 21" {!../../../docs_src/custom_response/tutorial004.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu May 12 00:06:16 UTC 2022 - 7.8K bytes - Viewed (0) -
docs/tr/docs/tutorial/first-steps.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Feb 08 13:10:55 UTC 2024 - 10.6K bytes - Viewed (0) -
tests/test_tutorial/test_testing/test_main.py
from docs_src.app_testing.test_main import client, test_read_main def test_main(): test_read_main() def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/": { "get": {
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 819 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/openapi/enablement.go
limitations under the License. */ package openapi import ( "strings" genericfeatures "k8s.io/apiserver/pkg/features" utilfeature "k8s.io/apiserver/pkg/util/feature" "k8s.io/kube-openapi/pkg/common" "k8s.io/kube-openapi/pkg/schemamutation" "k8s.io/kube-openapi/pkg/validation/spec" ) // enumTypeDescriptionHeader is the header of enum section in schema description.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 06 17:24:29 UTC 2023 - 2.7K bytes - Viewed (0) -
src/vendor/golang.org/x/text/unicode/bidi/bracket.go
p.openers.Init() return } // remember opener location, most recent first p.openers.PushFront(i) case bpClose: // see if there is a match count := 0 for elem := p.openers.Front(); elem != nil; elem = elem.Next() { count++ opener := elem.Value.(int) if p.matchOpener(pairValues, opener, i) { // if the opener matches, add nested pair to the ordered list
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 19:27:51 UTC 2019 - 11.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/openapi/openapi_test.go
See the License for the specific language governing permissions and limitations under the License. */ package openapi import ( "reflect" "testing" "k8s.io/apimachinery/pkg/runtime" openapitesting "k8s.io/apiserver/pkg/endpoints/openapi/testing" "k8s.io/kube-openapi/pkg/validation/spec" ) func assertEqual(t *testing.T, expected, actual interface{}) { var equal bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 29 06:38:01 UTC 2022 - 2.7K bytes - Viewed (0) -
api/openapi-spec/README.md
# Kubernetes's OpenAPI Specification This folder contains an [OpenAPI specification](https://github.com/OAI/OpenAPI-Specification) for Kubernetes API. ## Vendor Extensions Kubernetes extends OpenAPI using these extensions. Note the version that extensions have been added. ### `x-kubernetes-group-version-kind` Operations and Definitions may have `x-kubernetes-group-version-kind` if they
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 15 01:29:23 UTC 2022 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
"k8s.io/client-go/kubernetes/scheme" openapibuilder "k8s.io/kube-openapi/pkg/builder" "k8s.io/kube-openapi/pkg/builder3" "k8s.io/kube-openapi/pkg/common" "k8s.io/kube-openapi/pkg/common/restfuladapter" "k8s.io/kube-openapi/pkg/spec3" "k8s.io/kube-openapi/pkg/util" "k8s.io/kube-openapi/pkg/validation/spec" ) const ( // Reference and Go types for built-in metadata
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 22.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/testing/openapi3.go
limitations under the License. */ package testing import ( "os" "sync" "k8s.io/kube-openapi/pkg/spec3" ) type OpenAPIV3Getter struct { Path string once sync.Once bytes []byte openapiv3 spec3.OpenAPI } func (f *OpenAPIV3Getter) SchemaBytesOrDie() []byte { f.once.Do(func() { _, err := os.Stat(f.Path) if err != nil { panic(err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 16:45:45 UTC 2023 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion.go
) // ToStructuralOpenAPIV2 converts our internal OpenAPI v3 structural schema to // to a v2 compatible schema. func ToStructuralOpenAPIV2(in *structuralschema.Structural) *structuralschema.Structural { if in == nil { return nil } out := in.DeepCopy() // Remove unsupported fields in OpenAPI v2 recursively mapper := structuralschema.Visitor{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 09 20:23:50 UTC 2020 - 3.5K bytes - Viewed (0)