Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 471 - 480 of 562 for models (0.03 seconds)

  1. tests/test_response_code_no_body.py

        title: str
    
    
    class JsonApiError(BaseModel):
        errors: list[Error]
    
    
    @app.get(
        "/a",
        status_code=204,
        response_class=JsonApiResponse,
        responses={500: {"description": "Error", "model": JsonApiError}},
    )
    async def a():
        pass
    
    
    @app.get("/b", responses={204: {"description": "No Content"}})
    async def b():
        pass  # pragma: no cover
    
    
    client = TestClient(app)
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  2. compat/maven-model/src/main/java/org/apache/maven/model/BaseObject.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model;
    
    import java.io.Serializable;
    
    import static java.util.Objects.requireNonNull;
    
    public abstract class BaseObject implements Serializable, Cloneable, InputLocationTracker {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/MojoExecution.java

     */
    package org.apache.maven.api;
    
    import java.util.Optional;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.model.PluginExecution;
    import org.apache.maven.api.plugin.descriptor.MojoDescriptor;
    import org.apache.maven.api.xml.XmlNode;
    
    /**
     * A {@code MojoExecution} represents a single execution of a Maven Plugin during a given build.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Feb 28 23:54:53 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/cache/CacheRetention.java

         */
        PERSISTENT,
    
        /**
         * Data should be retained for the duration of the current Maven session.
         * Suitable for:
         * - Build-wide configuration
         * - Project model caching
         * - Inter-module metadata
         */
        SESSION_SCOPED,
    
        /**
         * Data should only be retained for the current build request.
         * Suitable for:
         * - Plugin execution results
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  5. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingResult.java

     * under the License.
     */
    package org.apache.maven.toolchain.building;
    
    import java.util.ArrayList;
    import java.util.List;
    
    import org.apache.maven.building.Problem;
    import org.apache.maven.toolchain.model.PersistedToolchains;
    
    /**
     * Holds the result of the merged toolchains and holds the problems during this build, if any.
     *
     * @since 3.3.0
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 05 09:37:42 GMT 2025
    - 2K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/PathTranslator.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.path;
    
    import java.io.File;
    
    /**
     * Resolves relative paths against a specific base directory.
     *
     * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  7. docs/pt/docs/advanced/response-cookies.md

    {* ../../docs_src/response_cookies/tutorial002_py39.py hl[1, 8:9] *}
    
    Em seguida, você pode retornar qualquer objeto que precise, como normalmente faria (um `dict`, um modelo de banco de dados, etc).
    
    E se você declarou um `response_model`, ele ainda será usado para filtrar e converter o objeto que você retornou.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  8. docs/pt/docs/advanced/response-headers.md

    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    Em seguida você pode retornar qualquer objeto que precisar, da maneira que faria normalmente (um `dict`, um modelo de banco de dados, etc.).
    
    Se você declarou um `response_model`, ele ainda será utilizado para filtrar e converter o objeto que você retornou.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  9. docs/es/docs/advanced/using-request-directly.md

    Aunque cualquier otro parámetro declarado normalmente (por ejemplo, el cuerpo con un modelo de Pydantic) seguiría siendo validado, convertido, anotado, etc.
    
    Pero hay casos específicos donde es útil obtener el objeto `Request`.
    
    ## Usa el objeto `Request` directamente { #use-the-request-object-directly }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  10. docs/es/docs/how-to/conditional-openapi.md

    Si quieres asegurar tu API, hay varias cosas mejores que puedes hacer, por ejemplo:
    
    * Asegúrate de tener modelos Pydantic bien definidos para tus request bodies y responses.
    * Configura los permisos y roles necesarios usando dependencias.
    * Nunca guardes contraseñas en texto plano, solo hashes de contraseñas.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.6K bytes
    - Click Count (0)
Back to Top