Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 525 for validation (0.1 seconds)

  1. tests/test_request_params/test_file/test_optional_list.py

    # Validation alias
    
    
    @app.post("/optional-list-bytes-validation-alias")
    def read_optional_list_bytes_validation_alias(
        p: Annotated[Optional[list[bytes]], File(validation_alias="p_val_alias")] = None,
    ):
        return {"file_size": [len(file) for file in p] if p else None}
    
    
    @app.post("/optional-list-uploadfile-validation-alias")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  2. tests/test_request_params/test_path/test_required_str.py

            ),
            pytest.param(
                "/required-validation-alias/{p_val_alias}",
                "p_val_alias",
                "P Val Alias",
                id="required-validation-alias",
            ),
            pytest.param(
                "/required-alias-and-validation-alias/{p_val_alias}",
                "p_val_alias",
                "P Val Alias",
                id="required-alias-and-validation-alias",
            ),
        ],
    )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  3. docs/en/docs/features.md

    But by default, it all **"just works"**.
    
    ### Validation { #validation }
    
    * Validation for most (or all?) Python **data types**, including:
        * JSON objects (`dict`).
        * JSON array (`list`) defining item types.
        * String (`str`) fields, defining min and max lengths.
        * Numbers (`int`, `float`) with min and max values, etc.
    
    * Validation for more exotic types, like:
        * URL.
        * Email.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/site/apt/index.apt

       ** file model validation: <<<ModelValidator>>> ({{{./apidocs/org/apache/maven/model/validation/ModelValidator.html}javadoc}}),
       with its <<<DefaultModelValidator>>> implementation
       ({{{./xref/org/apache/maven/model/validation/DefaultModelValidator.html}source}})
    
       []
    
     * phase 2, with optional plugin processing
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 03 08:42:52 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

        /**
         * Denotes validation as performed by Maven 3.0. This validation level is meant for existing projects.
         */
        int VALIDATION_LEVEL_MAVEN_3_0 = 30;
    
        /**
         * Denotes validation as performed by Maven 3.1. This validation level is meant for new projects.
         */
        int VALIDATION_LEVEL_MAVEN_3_1 = 31;
    
        /**
         * Denotes strict validation as recommended by the current Maven version.
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  6. tests/test_extra_routes.py

                                "content": {"application/json": {"schema": {}}},
                            },
                            "422": {
                                "description": "Validation Error",
                                "content": {
                                    "application/json": {
                                        "schema": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/RepositoryAwareRequest.java

     *   <li>Downloading parent POMs and dependency POMs</li>
     *   <li>Retrieving version information and ranges</li>
     *   <li>Accessing plugin artifacts and their dependencies</li>
     * </ul>
     *
     * <p>Repository validation ensures data integrity by:
     * <ul>
     *   <li>Preventing duplicate repositories that could cause confusion</li>
     *   <li>Rejecting null repository entries that would cause failures</li>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 5K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/body-fields.md

    As these keys may not necessarily be part of the OpenAPI specification, some OpenAPI tools, for example [the OpenAPI validator](https://validator.swagger.io/), may not work with your generated schema.
    
    ///
    
    ## Recap { #recap }
    
    You can use Pydantic's `Field` to declare extra validations and metadata for model attributes.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  9. tests/test_openapi_separate_input_output_schemas.py

                                        }
                                    },
                                },
                                "422": {
                                    "description": "Validation Error",
                                    "content": {
                                        "application/json": {
                                            "schema": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  10. tests/test_exception_handlers.py

        assert response.json() == {"exception": "http-exception"}
    
    
    def test_override_request_validation_exception():
        response = client.get("/request-validation/invalid")
        assert response.status_code == 200
        assert response.json() == {"exception": "request-validation"}
    
    
    def test_override_server_error_exception_raises():
        with pytest.raises(RuntimeError):
            client.get("/server-error")
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 03 22:37:12 GMT 2024
    - 2.4K bytes
    - Click Count (0)
Back to Top