- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 814 for we (0.02 sec)
-
docs/en/docs/advanced/security/oauth2-scopes.md
We verify that we get a `username`, and extract the scopes. And then we validate that data with the Pydantic model (catching the `ValidationError` exception), and if we get an error reading the JWT token or validating the data with Pydantic, we raise the `HTTPException` we created before. For that, we update the Pydantic model `TokenData` with a new property `scopes`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 13.5K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
Now that we have **multiple models**, we can update the parts of the app that use them. We receive in the request a `HeroCreate` *data model*, and from it, we create a `Hero` *table model*. This new *table model* `Hero` will have the fields sent by the client, and will also have an `id` generated by the database.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 15.4K bytes - Viewed (0) -
docs/en/docs/advanced/advanced-dependencies.md
And now, we can use `__init__` to declare the parameters of the instance that we can use to "parameterize" the dependency: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[9] *} In this case, **FastAPI** won't ever touch or care about `__init__`, we will use it directly in our code. ## Create an instance { #create-an-instance } We could create an instance of this class with:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.6K bytes - Viewed (0) -
guava-gwt/pom.xml
of those modules are ones that it uses but forgets to list in its own <inherits>, we'd like to get an error. Currently we do, but if we add the extra <inherits> lines, we won't. I have one idea for a better approach, but it's painful, and I haven't tested it: We could postprocess Collect.gwt.xml to add <skip> lines for all the files that should be
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Sep 04 21:35:58 UTC 2025 - 19.4K bytes - Viewed (0) -
docs/en/docs/tutorial/security/get-current-user.md
`get_current_user` will have a dependency with the same `oauth2_scheme` we created before. The same as we were doing before in the *path operation* directly, our new dependency `get_current_user` will receive a `token` as a `str` from the sub-dependency `oauth2_scheme`: {* ../../docs_src/security/tutorial002_an_py310.py hl[25] *} ## Get the user { #get-the-user }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4K bytes - Viewed (0) -
cmd/metacache-set.go
continue } if yes := o.shouldSkip(ctx, entry); yes { // when we have not enough results, record the skipped entry if o.Limit > 0 && results.len() < o.Limit { results.lastSkippedEntry = entry.name } continue } if o.Limit > 0 && results.len() >= o.Limit { // We have enough and we have more. // Do not return io.EOF if resCh != nil { resErr = nil
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.7K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
So, in our example, we can make `tags` be specifically a "list of strings": {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## Set types { #set-types } But then we think about it, and realize that tags shouldn't repeat, they would probably be unique strings. And Python has a special data type for sets of unique items, the `set`. Then we can declare `tags` as a set of strings:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.3K bytes - Viewed (0) -
docs/en/docs/how-to/custom-request-and-route.md
/// We can also use this same approach to access the request body in an exception handler. All we need to do is handle the request inside a `try`/`except` block: {* ../../docs_src/custom_request_and_route/tutorial002.py hl[13,15] *} If an exception occurs, the`Request` instance will still be in scope, so we can read and make use of the request body when handling the error:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacCredentialTypeTest.java
} /** * Tests the isCredentialTypeCorrect method with a null byte array. * This test is indirect as the constructor would throw an exception. * We can't instantiate the class with null, so we can't directly test this method's behavior with null. * However, the constructor logic `!isCredentialTypeCorrect()` covers this.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.9K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
if header.VersionID != uv { continue } } if found { continue } // We need a specific version, skip... if versionID != "" && uv != header.VersionID { isLatest = false succModTime = header.ModTime continue } // We found what we need. found = true var version xlMetaV2Version if _, err := version.unmarshalV(x.metaV, ver.meta); err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 65.6K bytes - Viewed (1)