- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for is_required (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
fastapi/dependencies/utils.py
) def _validate_value_with_model_field( *, field: ModelField, value: Any, values: dict[str, Any], loc: tuple[str, ...] ) -> tuple[Any, list[Any]]: if value is None: if field.field_info.is_required(): return None, [get_missing_field_error(loc=loc)] else: return deepcopy(field.default), [] return field.validate(value, values, loc=loc)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 38.7K bytes - Click Count (3) -
fastapi/_compat/v2.py
Annotated[annotated_args], # ty: ignore[invalid-type-form] config=self.config, ) def get_default(self) -> Any: if self.field_info.is_required(): return Undefined return self.field_info.get_default(call_default_factory=True) def validate( self, value: Any, values: dict[str, Any] = {}, # noqa: B006
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java
assertEquals("java.lang.String", mp.getImplementation()); assertTrue(mp.isEditable(), "Expected " + mp + ".isEditable() to return true"); assertFalse(mp.isRequired(), "Expected " + mp + ".isRequired() to return false"); assertEquals("parameter-description", mp.getDescription()); assertEquals("deprecated-parameter", mp.getDeprecated());
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 6K bytes - Click Count (0)