Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 207 for converter_ (0.09 sec)

  1. docs/pt/docs/how-to/general.md

    ## Converter qualquer dado para JSON
    
    
    Para converter qualquer dado para um formato compatível com JSON, leia a seção [Tutorial - JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}.
    
    ## OpenAPI Metadata - Docs
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 12 02:41:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/response-change-status-code.md

    Mas se o dado não existir, você quer criá-lo e retornar um código de status HTTP de "CREATED" `201`.
    
    Mas você ainda quer ser capaz de filtrar e converter o dado que você retornará com um `response_model`.
    
    Para estes casos, você pode utilizar um parâmetro `Response`.
    
    ## Use um parâmetro `Response`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testStringConverter_convert() {
        Converter<String, Float> converter = Floats.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0.0")).isEqualTo((Float) 0.0f);
        assertThat(converter.convert("-1.0")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0")).isEqualTo((Float) 0.0f);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testStringConverter_convert() {
        Converter<String, Double> converter = Doubles.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0.0")).isEqualTo((Double) 0.0);
        assertThat(converter.convert("-1.0")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1")).isEqualTo((Double) 1.0);
        assertThat(converter.convert("0")).isEqualTo((Double) 0.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testStringConverter_convert() {
        Converter<String, Float> converter = Floats.stringConverter();
        assertThat(converter.convert("1.0")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0.0")).isEqualTo((Float) 0.0f);
        assertThat(converter.convert("-1.0")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1")).isEqualTo((Float) 1.0f);
        assertThat(converter.convert("0")).isEqualTo((Float) 0.0f);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

        /**
         * Parses a sequence of XML elements and converts them to the given target type.
         *
         * @param parser The XML parser
         * @param toType The target type
         * @return Converted instance of the target type
         */
        private Object parse(final MXParser parser, final TypeLiteral<?> toType) throws Exception {
            parser.require(XmlPullParser.START_TAG, null, null);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. docs_src/schema_extra_example/tutorial005_an_py39.py

                            "price": 35.4,
                            "tax": 3.2,
                        },
                    },
                    "converted": {
                        "summary": "An example with converted data",
                        "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                        "value": {
                            "name": "Bar",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. docs/es/docs/python-types.md

    Tú declaras la "forma" de los datos mediante clases con atributos.
    
    Cada atributo tiene un tipo.
    
    Luego creas un instance de esa clase con algunos valores y Pydantic validará los valores, los convertirá al tipo apropiado (si ese es el caso) y te dará un objeto con todos los datos.
    
    Y obtienes todo el soporte del editor con el objeto resultante.
    
    Tomado de la documentación oficial de Pydantic:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. docs/pt/docs/how-to/custom-request-and-route.md

    /// danger | Perigo
    
    Isso é um recurso "avançado".
    
    Se você for um iniciante em **FastAPI** você deve considerar pular essa seção.
    
    ///
    
    ## Casos de Uso
    
    Alguns casos de uso incluem:
    
    * Converter requisições não-JSON para JSON (por exemplo, <a href="https://msgpack.org/index.html" class="external-link" target="_blank">`msgpack`</a>).
    * Descomprimir corpos de requisição comprimidos com gzip.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:33:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/path-params.md

    ///
    
    #### Return *enumeration members*
    
    You can return *enum members* from your *path operation*, even nested in a JSON body (e.g. a `dict`).
    
    They will be converted to their corresponding values (strings in this case) before returning them to the client:
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top