Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 640 for validates (0.04 sec)

  1. docs/pt/docs/tutorial/path-params-numeric-validations.md

    # Parâmetros de path e validações numéricas { #path-parameters-and-numeric-validations }
    
    Da mesma forma que você pode declarar mais validações e metadados para parâmetros de consulta com `Query`, você pode declarar o mesmo tipo de validações e metadados para parâmetros de path com `Path`.
    
    ## Importe `Path` { #import-path }
    
    Primeiro, importe `Path` de `fastapi`, e importe `Annotated`:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/BufferCache.java

            // Try to get from cache first - O(1) operation
            byte[] buf = bufferQueue.poll();
            if (buf != null) {
                queueSize.decrementAndGet();
                return buf;
            }
    
            // Validate buffer size to prevent overflow
            int bufferSize = SmbComTransaction.TRANSACTION_BUF_SIZE;
            if (bufferSize < 0 || bufferSize > MAX_BUFFER_SIZE) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/sql-databases.md

    ///
    
    ### Read Heroes with `HeroPublic` { #read-heroes-with-heropublic }
    
    We can do the same as before to **read** `Hero`s, again, we use `response_model=list[HeroPublic]` to ensure that the data is validated and serialized correctly.
    
    {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[65:72] hl[65] *}
    
    ### Read One Hero with `HeroPublic` { #read-one-hero-with-heropublic }
    
    We can **read** a single hero:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 05:06:56 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/query-params-str-validations.md

    Этого можно добиться, используя <a href="https://docs.pydantic.dev/latest/concepts/validators/#field-after-validator" class="external-link" target="_blank">`AfterValidator` Pydantic</a> внутри `Annotated`.
    
    /// tip | Совет
    
    В Pydantic также есть <a href="https://docs.pydantic.dev/latest/concepts/validators/#field-before-validator" class="external-link" target="_blank">`BeforeValidator`</a> и другие. 🤓
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  5. docs/en/docs/index.md

        * Swagger UI.
        * ReDoc.
    
    ---
    
    Coming back to the previous code example, **FastAPI** will:
    
    * Validate that there is an `item_id` in the path for `GET` and `PUT` requests.
    * Validate that the `item_id` is of type `int` for `GET` and `PUT` requests.
        * If it is not, the client will see a useful, clear error.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  6. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java

        public static final MojoDescriptor POST_CLEAN = createMojoDescriptor("post-clean");
    
        // default (or at least some of them)
    
        public static final MojoDescriptor VALIDATE = createMojoDescriptor("validate");
    
        public static final MojoDescriptor INITIALIZE = createMojoDescriptor("initialize");
    
        public static final MojoDescriptor TEST_COMPILE = createMojoDescriptor("test-compile");
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. internal/event/target/nsq_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			n := NSQArgs{
    				Enable:      tt.fields.Enable,
    				NSQDAddress: tt.fields.NSQDAddress,
    				Topic:       tt.fields.Topic,
    			}
    			if err := n.Validate(); (err != nil) != tt.wantErr {
    				t.Errorf("NSQArgs.Validate() error = %v, wantErr %v", err, tt.wantErr)
    			}
    		})
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. tests/benchmarks/test_general_performance.py

        items: list[dict[str, Any]]
        metadata: dict[str, Any]
    
    
    class LargeOut(BaseModel):
        items: list[dict[str, Any]]
        metadata: dict[str, Any]
    
    
    app = FastAPI()
    
    
    @app.post("/sync/validated", response_model=ItemOut)
    def sync_validated(item: ItemIn, dep: Annotated[int, Depends(dep_b)]):
        return ItemOut(name=item.name, value=item.value, dep=dep)
    
    
    @app.get("/sync/dict-no-response-model")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 20:40:26 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

         * Upload a design file.
         * @param form The upload form.
         * @return The HTML response.
         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse upload(final UploadForm form) {
            validate(form, messages -> {}, () -> asListHtml(form));
            verifyToken(this::asListHtml);
            final String uploadedFileName = form.designFile.getFileName();
            String fileName = form.designFileName;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/labeltype/AdminLabeltypeAction.java

         *
         * @param form the edit form
         * @return HTML response for the edit page
         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            final String id = form.id;
            labelTypeService.getLabelType(id).ifPresent(entity -> {
                copyBeanToBean(entity, form, copyOp -> {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top