- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 59 for model1 (0.2 sec)
-
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParameterizedModelQueryIntegrationTest.groovy
outputContains("creating model with parameter='fetch1' for root project 'root'") outputContains("creating model with parameter='fetch1' for project ':a'") outputContains("creating model with parameter='fetch1' for project ':b'") and: model1.keySet() ==~ [":", ":a", ":b"] model1.values().every { it.size() == 1 } model1[":"][0].message == "fetch1 It works from project :"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 9.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiGradleLifecycleIntegrationTest.groovy
""" withIsolatedProjects() def model3 = runBuildAction(new FetchCustomModelForEachProject()) then: model3.size() == 2 model3[0].message == "updated message for root" model3[1].message == "It works from project :a" fixture.assertStateUpdated { fileChanged("build.gradle") projectConfigured(":buildSrc")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 4.1K bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model_pv2.py
return name async def get_model_c() -> ModelC: return ModelC(username="test-user", password="test-password") @app.get("/model/{name}", response_model=ModelA) async def get_model_a(name: str, model_c=Depends(get_model_c)): return {"name": name, "description": "model-a-desc", "foo": model_c} client = TestClient(app) return client @needs_pydanticv2
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 6.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiCompositeBuildsIntegrationTest.groovy
modelsCreated(":", ":a") } when: executer.withArguments(ENABLE_CLI) def model2 = runBuildAction(new FetchCustomModelForEachProjectInTree()) then: model2.size() == 2 model2[0].message == "It works from project :" model2[1].message == "It works from project :a" and: fixture.assertStateLoaded() when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-nested-models.md
## Modelos aninhados Cada atributo de um modelo Pydantic tem um tipo. Mas esse tipo pode ser outro modelo Pydantic. Portanto, você pode declarar "objects" JSON profundamente aninhados com nomes, tipos e validações de atributos específicos. Tudo isso, aninhado arbitrariamente. ### Defina um sub-modelo Por exemplo, nós podemos definir um modelo `Image`: ```Python hl_lines="9-11"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 7.4K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
# Extra Models Continuing with the previous example, it will be common to have more than one related model. This is especially the case for user models, because: * The **input model** needs to be able to have a password. * The **output model** should not have a password. * The **database model** would probably need to have a hashed password. !!! danger Never store user's plaintext passwords. Always store a "secure hash" that you can then verify.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 7.7K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiStreamingBuildActionIntegrationTest.groovy
and: (model.left as GradleProject).name == "hello-world" (model.right as EclipseProject).gradleProject.name == "hello-world" and: def streamedModels = listener1.models as List<CustomModel> streamedModels.size() == 2 streamedModels[0].value == 1 streamedModels[1].value == 2 when: withIsolatedProjects()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 4.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheToolingApiInvocationIntegrationTest.groovy
when: def model = runPhasedBuildAction(new SomeToolingModelBuildAction(), new SomeToolingModelBuildAction()) then: model.left.message == "It works from project :" model.right.message == "It works from project :" outputContains("script log statement") when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 6.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-nested-models.md
```Python hl_lines="15" {!../../../docs_src/body_nested_models/tutorial008.py!} ``` ## 어디서나 편집기 지원 그리고 어디서나 편집기 지원을 받을수 있습니다. 리스트 내부 항목의 경우에도: <img src="/img/tutorial/body-nested-models/image01.png"> Pydantic 모델 대신에 `dict`를 직접 사용하여 작업할 경우, 이러한 편집기 지원을 받을수 없습니다. 하지만 수신한 딕셔너리가 자동으로 변환되고 출력도 자동으로 JSON으로 변환되므로 걱정할 필요는 없습니다. ## 단독 `dict`의 본문 일부 타입의 키와 다른 타입의 값을 사용하여 `dict`로 본문을 선언할 수 있습니다.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Jun 12 12:49:35 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/fr/docs/advanced/additional-responses.md
**FastAPI** prendra ce modèle, générera son schéma JSON et l'inclura au bon endroit dans OpenAPI. Par exemple, pour déclarer une autre réponse avec un code HTTP `404` et un modèle Pydantic `Message`, vous pouvez écrire : ```Python hl_lines="18 22" {!../../../docs_src/additional_responses/tutorial001.py!} ``` !!! note "Remarque" Gardez à l'esprit que vous devez renvoyer directement `JSONResponse`. !!! info
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 9.6K bytes - Viewed (0)