Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 362 for validators (0.07 seconds)

  1. internal/bucket/lifecycle/lifecycle.go

    func ParseLifecycleConfig(reader io.Reader) (*Lifecycle, error) {
    	var lc Lifecycle
    	if err := xml.NewDecoder(reader).Decode(&lc); err != nil {
    		return nil, err
    	}
    	return &lc, nil
    }
    
    // Validate - validates the lifecycle configuration
    func (lc Lifecycle) Validate(lr lock.Retention) error {
    	// Lifecycle config can't have more than 1000 rules
    	if len(lc.Rules) > 1000 {
    		return errLifecycleTooManyRules
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Apr 03 06:45:06 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  2. cmd/object-handlers_test.go

    		t.Fatalf("MinIO %s: Failed to create an anonymous request for %s/%s: <ERROR> %v",
    			instanceType, bucketName, objectName, err)
    	}
    
    	// ExecObjectLayerAPIAnonTest - Calls the HTTP API handler using the anonymous request, validates the ErrAccessDeniedResponse,
    	// sets the bucket policy using the policy statement generated from `getWriteOnlyObjectStatement` so that the
    	// unsigned request goes through and its validated again.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 163.1K bytes
    - Click Count (0)
  3. docs/en/docs/advanced/settings.md

    You can use all the same validation features and tools you use for Pydantic models, like different data types and additional validations with `Field()`.
    
    {* ../../docs_src/settings/tutorial001_py310.py hl[2,5:8,11] *}
    
    /// tip
    
    If you want something quick to copy and paste, don't use this example, use the last one below.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  4. fastapi/.agents/skills/fastapi/SKILL.md

    ## Do not use Pydantic RootModels
    
    Do not use Pydantic `RootModel`, instead use regular type annotations with `Annotated` and Pydantic validation utilities.
    
    For example, for a list with validations you could do:
    
    ```python
    from typing import Annotated
    
    from fastapi import Body, FastAPI
    from pydantic import Field
    
    app = FastAPI()
    
    
    @app.post("/items/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  5. cmd/handler-utils.go

    	if location == "" {
    		location = globalSite.Region()
    	}
    	if !isValidLocation(location) {
    		return location, ErrInvalidRegion
    	}
    
    	return location, ErrNone
    }
    
    // Validates input location is same as configured region
    // of MinIO server.
    func isValidLocation(location string) bool {
    	region := globalSite.Region()
    	return region == "" || region == location
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.4K bytes
    - Click Count (1)
  6. docs/pt/docs/tutorial/sql-databases.md

    ///
    
    ### Ler Heroes com `HeroPublic` { #read-heroes-with-heropublic }
    
    Podemos fazer o mesmo que antes para **ler** `Hero`s, novamente, usamos `response_model=list[HeroPublic]` para garantir que os dados sejam validados e serializados corretamente.
    
    {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[65:72] hl[65] *}
    
    ### Ler Um Hero com `HeroPublic` { #read-one-hero-with-heropublic }
    
    Podemos **ler** um único herói:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java

        //                                                                       Validation
        //                                                                           =========
        /**
         * Validates document fields according to index field requirements.
         *
         * @param doc the document to validate
         * @param throwError consumer to handle validation errors
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:38:39 GMT 2026
    - 25.5K bytes
    - Click Count (1)
  8. docs/pt/docs/advanced/settings.md

    Você pode usar as mesmas funcionalidades e ferramentas de validação que usa em modelos do Pydantic, como diferentes tipos de dados e validações adicionais com `Field()`.
    
    {* ../../docs_src/settings/tutorial001_py310.py hl[2,5:8,11] *}
    
    /// tip | Dica
    
    Se você quer algo rápido para copiar e colar, não use este exemplo, use o último abaixo.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java

            } catch (final Exception e) {
                throw new SsoLoginException("Failed to parse an authentication response.", e);
            }
        }
    
        /**
         * Validates the nonce in the authentication result.
         * @param stateData The stored state data containing the expected nonce.
         * @param authData The authentication result containing the actual nonce.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:03:27 GMT 2026
    - 56.8K bytes
    - Click Count (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

                uq.setUrl(childUrl);
                uq.setWeight(weight);
                childList.add(uq);
                urlQueueService.offerAll(crawlerContext.sessionId, childList);
            }
        }
    
        /**
         * Validates whether the URL queue entry is valid for crawling.
         * @param urlQueue The URL queue entry to validate.
         * @return true if valid, false otherwise.
         */
        protected boolean isValid(final UrlQueue<?> urlQueue) {
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Wed Dec 31 09:07:38 GMT 2025
    - 20.3K bytes
    - Click Count (0)
Back to Top