Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1521 - 1530 of 3,170 for LIST (0.13 seconds)

  1. docs/zh/docs/tutorial/response-model.md

    /// note
    
    注意,`response_model`是「装饰器」方法(`get`,`post` 等)的一个参数。不像之前的所有参数和请求体,它不属于*路径操作函数*。
    
    ///
    
    它接收的类型与你将为 Pydantic 模型属性所声明的类型相同,因此它可以是一个 Pydantic 模型,但也可以是一个由 Pydantic 模型组成的 `list`,例如 `List[Item]`。
    
    FastAPI 将使用此 `response_model` 来:
    
    * 将输出数据转换为其声明的类型。
    * 校验数据。
    * 在 OpenAPI 的*路径操作*中为响应添加一个 JSON Schema。
    * 并在自动生成文档系统中使用。
    
    但最重要的是:
    
    * 会将输出数据限制在该模型定义内。下面我们会看到这一点有多重要。
    
    /// note | 技术细节
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.testing.SerializableTester;
    import java.io.Serializable;
    import java.lang.reflect.Method;
    import java.util.Collections;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for the {@code inverse} view of a BiMap.
     *
     * <p>This assumes that {@code bimap.inverse().inverse() == bimap}, which is not technically
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/ArtifactTransformation.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.repository.legacy.resolver.transform;
    
    import java.util.List;
    
    import org.apache.maven.artifact.Artifact;
    import org.apache.maven.artifact.deployer.ArtifactDeploymentException;
    import org.apache.maven.artifact.installer.ArtifactInstallationException;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  4. impl/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java

     * under the License.
     */
    package org.apache.maven.artifact.handler;
    
    import javax.inject.Inject;
    
    import java.io.File;
    import java.nio.file.Files;
    import java.util.List;
    
    import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager;
    import org.codehaus.plexus.PlexusContainer;
    import org.codehaus.plexus.testing.PlexusTest;
    import org.junit.jupiter.api.Test;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 4K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestListGenerator.java

    import java.util.List;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Creates sets, containing sample elements, to be tested.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @NullMarked
    public interface TestListGenerator<E extends @Nullable Object> extends TestCollectionGenerator<E> {
      @Override
      List<E> create(Object... elements);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.project;
    
    import java.util.List;
    
    import org.eclipse.aether.graph.Dependency;
    
    /**
     * @deprecated use {@code org.apache.maven.api.services.ProjectBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 10:13:56 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  7. impl/maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.lifecycle.mapping;
    
    import java.util.Arrays;
    import java.util.List;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  8. tests/test_response_model_sub_types.py

    @app.get("/valid1", responses={"500": {"model": int}})
    def valid1():
        pass
    
    
    @app.get("/valid2", responses={"500": {"model": list[int]}})
    def valid2():
        pass
    
    
    @app.get("/valid3", responses={"500": {"model": Model}})
    def valid3():
        pass
    
    
    @app.get("/valid4", responses={"500": {"model": list[Model]}})
    def valid4():
        pass
    
    
    client = TestClient(app)
    
    
    def test_path_operations():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/MethodDetailRenderer.java

    package gradlebuild.docs.dsl.docbook;
    
    import gradlebuild.docs.dsl.docbook.model.MethodDoc;
    import gradlebuild.docs.dsl.source.model.ParameterMetaData;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    
    import java.util.List;
    
    public class MethodDetailRenderer {
        private final GenerationListener listener;
        private final LinkRenderer linkRenderer;
        private final ElementWarningsRenderer warningsRenderer = new ElementWarningsRenderer();
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/sso/SsoManager.java

     * on the current configuration.
     */
    public class SsoManager {
        /** Logger for this class. */
        private static final Logger logger = LogManager.getLogger(SsoManager.class);
    
        /** List of registered SSO authenticators. */
        protected final List<SsoAuthenticator> authenticatorList = new ArrayList<>();
    
        /**
         * Default constructor for creating a new SsoManager instance.
         */
        public SsoManager() {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 5.3K bytes
    - Click Count (0)
Back to Top