Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 521 for Extras (0.09 sec)

  1. src/test/java/org/codelibs/opensearch/extension/ExtensionPlugin.java

            extra.put("reloadable_ja_stop", JapaneseStopTokenFilterFactory::new);
            extra.put("kanji_number", KanjiNumberFilterFactory::new);
            extra.put("kuromoji_pos_concat", PosConcatenationFilterFactory::new);
            extra.put("char_type", CharTypeFilterFactory::new);
            extra.put("number_concat", NumberConcatenationFilterFactory::new);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

                # TODO: remove when deprecating Pydantic v1
                {
                    "detail": [
                        {
                            "type": "value_error.extra",
                            "loc": ["cookie", "extra"],
                            "msg": "extra fields not permitted",
                        }
                    ]
                }
            )
        )
    
    
    def test_openapi_schema(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/request-form-models.md

    </div>
    
    ## Forbid Extra Form Fields
    
    In some special use cases (probably not very common), you might want to **restrict** the form fields to only those declared in the Pydantic model. And **forbid** any **extra** fields.
    
    /// note
    
    This is supported since FastAPI version `0.114.0`. 🤓
    
    ///
    
    You can use Pydantic's model configuration to `forbid` any `extra` fields:
    
    //// tab | Python 3.9+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_form_models/test_tutorial002_an_py39.py

            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "extra_forbidden",
                    "loc": ["body", "extra"],
                    "msg": "Extra inputs are not permitted",
                    "input": "extra",
                }
            ]
        }
    
    
    @needs_pydanticv2
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/body-fields.md

    ///
    
    ## Add extra information
    
    You can declare extra information in `Field`, `Query`, `Body`, etc. And it will be included in the generated JSON Schema.
    
    You will learn more about adding extra information later in the docs, when learning to declare examples.
    
    /// warning
    
    Extra keys passed to `Field` will also be present in the resulting OpenAPI schema for your application.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 17:01:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. tests/test_openapi_query_parameter_extension.py

            "parameters": [
                {
                    "required": False,
                    "schema": {"title": "Extra Param 1"},
                    "name": "extra_param_1",
                    "in": "query",
                },
                {
                    "required": True,
                    "schema": {"title": "Extra Param 2"},
                    "name": "extra_param_2",
                    "in": "query",
                },
            ]
        },
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. fastapi/params.py

            deprecated: Union[deprecated, str, bool, None] = None,
            include_in_schema: bool = True,
            json_schema_extra: Union[Dict[str, Any], None] = None,
            **extra: Any,
        ):
            if example is not _Unset:
                warnings.warn(
                    "`example` has been deprecated, please use `examples` instead",
                    category=DeprecationWarning,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 18:06:20 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/dataclasses.md

    Dessa forma, seu esquema aparecerá na interface de documentação da API:
    
    <img src="/img/tutorial/dataclasses/image01.png">
    
    ## Dataclasses em Estruturas de Dados Aninhadas
    
    Você também pode combinar `dataclasses` com outras anotações de tipo para criar estruturas de dados aninhadas.
    
    Em alguns casos, você ainda pode ter que usar a versão do Pydantic das `dataclasses`. Por exemplo, se você tiver erros com a documentação da API gerada automaticamente.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:33:53 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. fastapi/param_functions.py

                Any additional JSON schema data.
                """
            ),
        ] = None,
        **extra: Annotated[
            Any,
            Doc(
                """
                Include extra fields used by the JSON Schema.
                """
            ),
            deprecated(
                """
                The `extra` kwargs is deprecated. Use `json_schema_extra` instead.
                """
            ),
        ],
    ) -> Any:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_form_models/test_tutorial002_an.py

            "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"}
        )
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "extra_forbidden",
                    "loc": ["body", "extra"],
                    "msg": "Extra inputs are not permitted",
                    "input": "extra",
                }
            ]
        }
    
    
    @needs_pydanticv2
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top