Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 307 for conversion (0.07 sec)

  1. tests/test_starlette_urlconvertors.py

    client = TestClient(app)
    
    
    def test_route_converters_int():
        # Test integer conversion
        response = client.get("/int/5")
        assert response.status_code == 200, response.text
        assert response.json() == {"int": 5}
        assert app.url_path_for("int_convertor", param=5) == "/int/5"  # type: ignore
    
    
    def test_route_converters_float():
        # Test float conversion
        response = client.get("/float/25.5")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Nov 27 14:46:06 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

                return true;
            }
    
            // Check for identity or widening reference conversion
            if (actual != null && formal.isAssignableFrom(actual)) {
                return true;
            }
    
            // Check for boxing with widening primitive conversion. Note that
            // actual parameters are never primitives.
            if (formal.isPrimitive()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/response-directly.md

    /// tip
    
    `JSONResponse` itself is a sub-class of `Response`.
    
    ///
    
    And when you return a `Response`, **FastAPI** will pass it directly.
    
    It won't do any data conversion with Pydantic models, it won't convert the contents to any type, etc.
    
    This gives you a lot of flexibility. You can return any data type, override any data declaration or validation, etc.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. common-protos/k8s.io/apimachinery/pkg/runtime/generated.proto

    // your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked.
    // The next step is to copy (using pkg/conversion) into the internal struct. The runtime
    // package's DefaultScheme has conversion functions installed which will unpack the
    // JSON stored in RawExtension, turning it into the correct object type, and storing it
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/EditForm.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.dict.protwords;
    
    import org.lastaflute.web.validation.Required;
    import org.lastaflute.web.validation.theme.conversion.ValidateTypeFailure;
    
    /**
     * @author ma2tani
     */
    public class EditForm extends CreateForm {
    
        @Required
        @ValidateTypeFailure
        public Long id;
    
        public String getDisplayId() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1009 bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/extra-data-types.md

    * `int`
    * `float`
    * `str`
    * `bool`
    
    But you can also use more complex data types.
    
    And you will still have the same features as seen up to now:
    
    * Great editor support.
    * Data conversion from incoming requests.
    * Data conversion for response data.
    * Data validation.
    * Automatic annotation and documentation.
    
    ## Other data types
    
    Here are some of the additional data types you can use:
    
    * `UUID`:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/body-nested-models.md

            "name": "The Foo live"
        }
    }
    ```
    
    Again, doing just that declaration, with **FastAPI** you get:
    
    * Editor support (completion, etc.), even for nested models
    * Data conversion
    * Data validation
    * Automatic documentation
    
    ## Special types and validation
    
    Apart from normal singular types like `str`, `int`, `float`, etc. you can use more complex singular types that inherit from `str`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/elevateword/EditForm.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.elevateword;
    
    import org.lastaflute.web.validation.Required;
    import org.lastaflute.web.validation.theme.conversion.ValidateTypeFailure;
    
    import jakarta.validation.constraints.Size;
    
    /**
     * @author Keiichi Watanabe
     */
    public class EditForm extends CreateForm {
    
        @Required
        @Size(max = 1000)
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/reqheader/EditForm.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.reqheader;
    
    import org.lastaflute.web.validation.Required;
    import org.lastaflute.web.validation.theme.conversion.ValidateTypeFailure;
    
    import jakarta.validation.constraints.Size;
    
    /**
     * @author Keiichi Watanabe
     */
    public class EditForm extends CreateForm {
    
        @Required
        @Size(max = 1000)
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

      /**
       * Configure code points to be escaped for conversion to `java.net.URI`. That class is more
       * strict than the others.
       */
      fun escapeForUri(vararg codePoints: Int) =
        apply {
          uriEscapedCodePoints.append(String(*codePoints))
        }
    
      /**
       * Configure code points to be stripped in conversion to `java.net.URI`. That class is more
       * strict than the others.
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top