Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 911 - 920 of 1,734 for jason (0.03 seconds)

  1. docs/zh/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    该字符串将被检查是否为有效的 URL,并在 JSON Schema / OpenAPI 文档中进行记录。
    
    ## 带有一组子模型的属性
    
    你还可以将 Pydantic 模型用作 `list`、`set` 等的子类型:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    这将期望(转换,校验,记录文档等)下面这样的 JSON 请求体:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 6.7K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

            |  -H 'Authorization: Bearer abc123' \
            |  -H 'Content-Type: application/json; charset=utf-8' \
            |  --data '{"key":"value"}'
            """.trimMargin(),
          )
      }
    
      @Test
      fun bodyContentTypeTakesPrecedence() {
        val body = "{\"key\":\"value\"}".toRequestBody("application/json".toMediaType())
    
        val request =
          Request
            .Builder()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 24 11:36:14 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  3. docs/debugging/inspect/main.go

    	}
    
    	var inputs []string
    
    	// Parse parameters
    	switch {
    	case *stdin:
    		// Parse 'mc support inspect --json' output
    		input := struct {
    			File string `json:"file"`
    			Key  string `json:"key"`
    		}{}
    		got, err := io.ReadAll(os.Stdin)
    		if err != nil {
    			fatalErr(err)
    		}
    		fatalErr(json.Unmarshal(got, &input))
    		inputs = []string{input.File}
    		*keyHex = input.Key
    	case len(flag.Args()) == 1:
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Feb 17 17:09:42 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_custom_response/test_tutorial002_tutorial003_tutorial004.py

        if mod_name.startswith("tutorial003"):
            response_content = {"application/json": {"schema": {}}}
        else:
            response_content = {"text/html": {"schema": {"type": "string"}}}
    
        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"},
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. internal/config/bool-flag.go

    package config
    
    import (
    	"encoding/json"
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    // BoolFlag - wrapper bool type.
    type BoolFlag bool
    
    // String - returns string of BoolFlag.
    func (bf BoolFlag) String() string {
    	if bf {
    		return "on"
    	}
    
    	return "off"
    }
    
    // MarshalJSON - converts BoolFlag into JSON data.
    func (bf BoolFlag) MarshalJSON() ([]byte, error) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Apr 07 15:10:40 GMT 2022
    - 2.3K bytes
    - Click Count (0)
  6. docs/uk/docs/features.md

    * Автоматична документація моделей даних за допомогою <a href="https://json-schema.org/" class="external-link" target="_blank"><strong>JSON Schema</strong></a> (оскільки OpenAPI базується саме на JSON Schema).
    * Розроблено на основі цих стандартів після ретельного аналізу, а не як додатковий рівень поверх основної архітектури.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/duplicatehost/ApiAdminDuplicatehostAction.java

         * Supports both GET and PUT requests for retrieving paginated duplicate host configurations.
         *
         * @param body search parameters for filtering and pagination
         * @return JSON response containing duplicate host settings list with pagination info
         */
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindMissingDocumentationFiles.java

    import com.google.gson.Gson;
    import com.google.gson.annotations.SerializedName;
    import com.google.gson.reflect.TypeToken;
    
    /**
     * A Java class to verify that all .adoc files and their anchors listed in a JSON file exist
     * within a specified directory.
     */
    @CacheableTask
    public abstract class FindMissingDocumentationFiles extends DefaultTask {
        private static final Set<String> EXCLUDED_FILES = new HashSet<>(Arrays.asList(
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Aug 21 15:38:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  9. docs/fr/docs/advanced/response-directly.md

    Par défaut, **FastAPI** convertirait automatiquement cette valeur de retour en JSON en utilisant le `jsonable_encoder` expliqué dans [JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}.
    
    Ensuite, en arrière-plan, il mettra ces données JSON-compatible (par exemple un `dict`) à l'intérieur d'un `JSONResponse` qui sera utilisé pour envoyer la réponse au client.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Nov 09 16:39:20 GMT 2024
    - 3.6K bytes
    - Click Count (0)
  10. docs/site-replication/run-replication-with-checksum-header.sh

    	fi
    done
    
    echo "{\"Parts\":[${PARTS}]}" >fileparts.json
    jq <fileparts.json
    aws s3api --endpoint-url=https://localhost:9001 complete-multipart-upload --multipart-upload file://fileparts.json --bucket test-bucket --key mpartobj --upload-id "${UPLOAD_ID}" --no-verify-ssl --profile enterprise
    sleep 120
    
    # List the objects from replicated site
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Jan 20 14:49:07 GMT 2025
    - 11.5K bytes
    - Click Count (0)
Back to Top