Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1551 - 1560 of 2,108 for Gist (0.11 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/ko/docs/tutorial/encoder.md

    # JSON 호환 가능 인코더 { #json-compatible-encoder }
    
    데이터 유형(예: Pydantic 모델)을 JSON과 호환되는 형태(예: `dict`, `list` 등)로 변환해야 하는 경우가 있습니다.
    
    예를 들면, 데이터베이스에 저장해야 하는 경우입니다.
    
    이를 위해, **FastAPI**에서는 `jsonable_encoder()` 함수를 제공합니다.
    
    ## `jsonable_encoder` 사용 { #using-the-jsonable-encoder }
    
    JSON 호환 가능 데이터만 수신하는 `fake_db` 데이터베이스가 존재한다고 가정하겠습니다.
    
    예를 들면, `datetime` 객체는 JSON과 호환되지 않으므로 이 데이터베이스는 이를 받지 않습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  2. cmd/kms-router.go

    		// KMS Key APIs
    		kmsRouter.Methods(http.MethodPost).Path(version+"/key/create").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSCreateKeyHandler))).Queries("key-id", "{key-id:.*}")
    		kmsRouter.Methods(http.MethodGet).Path(version+"/key/list").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSListKeysHandler))).Queries("pattern", "{pattern:.*}")
    		kmsRouter.Methods(http.MethodGet).Path(version + "/key/status").HandlerFunc(gz(httpTraceAll(kmsAPI.KMSKeyStatusHandler)))
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 07 23:55:37 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.testing.SerializableTester;
    import java.math.BigInteger;
    import java.util.List;
    import java.util.Set;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link ImmutableRangeSet}.
     *
     * @author Louis Wasserman
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 25 16:19:30 GMT 2025
    - 21.7K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/KotlinModifiersBreakingChangeRule.groovy

            def operatorChanged = oldIsOperator != newIsOperator
            def infixChanged = oldIsInfix != newIsInfix
    
            if (operatorChanged || infixChanged) {
                List<String> changes = []
                if (operatorChanged) {
                    changes.add(modifierChangeDetail("operator", newIsOperator))
                }
                if (infixChanged) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.4K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java

      @CollectionFeature.Require(SERIALIZABLE)
      /*
       * As the class docs say, this test only makes sense for collections that define equals().
       * Accordingly, our testing framework adds it only when testing an implementation of List, Set, or
       * Multiset.
       */
      @SuppressWarnings("UndefinedEquals")
      public void testReserialize() {
        assertEquals(SerializableTester.reserialize(actualContents()), actualContents());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java

      @CollectionFeature.Require(SERIALIZABLE)
      /*
       * As the class docs say, this test only makes sense for collections that define equals().
       * Accordingly, our testing framework adds it only when testing an implementation of List, Set, or
       * Multiset.
       */
      @SuppressWarnings("UndefinedEquals")
      public void testReserialize() {
        assertEquals(SerializableTester.reserialize(actualContents()), actualContents());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  7. tests/test_multi_query_errors.py

    from fastapi import FastAPI, Query
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    
    @app.get("/items/")
    def read_items(q: list[int] = Query(default=None)):
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_multi_query():
        response = client.get("/items/?q=5&q=6")
        assert response.status_code == 200, response.text
        assert response.json() == {"q": [5, 6]}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  8. src/main/config/openapi/openapi-user.yaml

              $ref: '#/components/responses/NotFound'
            '500':
              $ref: '#/components/responses/InternalServerError'
    
      /labels:
        get:
          tags:
            - search
          summary: List labels
          description: Returns available labels
          operationId: listLabels
          responses:
            '200':
              description: Successful operation
              content:
                application/json:
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu May 09 06:31:27 GMT 2024
    - 21.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/opensearch/user/cbean/cq/bs/BsGroupCQ.java

            queryLambda.callback(cq);
            final Collection<FilterFunctionBuilder> list = new ArrayList<>();
            if (functionsLambda != null) {
                functionsLambda.callback((cqLambda, scoreFunctionBuilder) -> {
                    GroupCQ cf = new GroupCQ();
                    cqLambda.callback(cf);
                    list.add(new FilterFunctionBuilder(cf.getQuery(), scoreFunctionBuilder));
                });
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java

            List<String> names = shaFiles.stream().map(File::getName).collect(Collectors.toList());
            return String.join("\n", names);
        }
    
        public static String getDependencyName(Map<String, String> mappings, String dependencyName) {
            // order is the same for keys and values iteration since we use a linked hashmap
            List<String> mapped = new ArrayList<>(mappings.values());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 26 12:16:14 GMT 2021
    - 14.3K bytes
    - Click Count (0)
Back to Top