- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for is_required (0.07 seconds)
-
fastapi/openapi/utils.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 25.6K bytes - Click Count (0) -
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/main/java/org/apache/maven/plugin/descriptor/Parameter.java
public Parameter() {} public Parameter(org.apache.maven.api.plugin.descriptor.Parameter p) { this.setAlias(p.getAlias()); this.setName(p.getName()); this.setRequired(p.isRequired()); this.setEditable(p.isEditable()); this.setDescription(p.getDescription()); this.setExpression(p.getExpression()); this.setDeprecated(p.getDeprecated());Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 5.1K 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)