Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 298 for valid2 (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_response_model_sub_types.py

    
    app = FastAPI()
    
    
    @app.get("/valid1", responses={"500": {"model": int}})
    def valid1():
        pass
    
    
    @app.get("/valid2", responses={"500": {"model": list[int]}})
    def valid2():
        pass
    
    
    @app.get("/valid3", responses={"500": {"model": Model}})
    def valid3():
        pass
    
    
    @app.get("/valid4", responses={"500": {"model": list[Model]}})
    def valid4():
        pass
    
    
    client = TestClient(app)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  2. src/main/webapp/js/admin/plugins/form-validator/lang/it.js

    valore non è stato confermato.",badDomain:"Il dominio inserito non è corretto.",badUrl:"L' URL inserito non è valido",badCustomVal:"I valori inseriti non sono validi",andSpaces:" e spazi ",badInt:"Il numero inserito non è valido",badSecurityNumber:"Il numero di sicurezza inserito non è valido",badUKVatAnswer:"La Partita IVA (VAT) inserita non è valida nel Regno Unito",badStrength:"La password proposta non è sufficientemente sicura",badNumberOfSelectedOptionsStart:"Deve...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 2.7K bytes
    - Click Count (0)
  3. src/main/webapp/js/admin/plugins/form-validator/lang/pt.js

    menos que",notConfirmed:"As informações digitadas não puderam ser confirmadas",badDomain:"O domínio digitado não é válido",badUrl:"A URL digitada não é válida",badCustomVal:"Os dados digitados não são válidos",andSpaces:" e espaços",badInt:"O número digitado não é válido",badSecurityNumber:"O número de seguro social digitado não é válido",badUKVatAnswer:"O número do VAT digitado não é válido para o Reino Unido",badStrength:"Senha muito fraca",badNumberOfSelectedOptionsStart:"Selecione pelo menos",bad...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 2.7K bytes
    - Click Count (0)
  4. docs/fr/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    La chaîne sera vérifiée comme URL valide et documentée comme telle dans JSON Schema / OpenAPI.
    
    ## Attributs avec des listes de sous-modèles { #attributes-with-lists-of-submodels }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  5. docs/pt/docs/tutorial/body-nested-models.md

    A string será verificada para se tornar uma URL válida e documentada no JSON Schema / OpenAPI como tal.
    
    ## Atributos como listas de submodelos { #attributes-with-lists-of-submodels }
    
    Você também pode usar modelos Pydantic como subtipos de `list`, `set`, etc:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Isso vai esperar (converter, validar, documentar, etc) um corpo JSON tal qual:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  6. docs/es/docs/tutorial/body.md

        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    ...dado que `description` y `tax` son opcionales (con un valor por defecto de `None`), este “`object`” JSON también sería válido:
    
    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    ## Decláralo como un parámetro { #declare-it-as-a-parameter }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. docs/pt/docs/tutorial/body.md

    {
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    ...como `description` e `tax` são opcionais (com um valor padrão de `None`), esse JSON "`object`" também é válido:
    
    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    ## Declare como um parâmetro { #declare-it-as-a-parameter }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  8. migrator/column_type.go

    func (ct ColumnType) DatabaseTypeName() string {
    	if ct.DataTypeValue.Valid {
    		return ct.DataTypeValue.String
    	}
    	return ct.SQLColumnType.DatabaseTypeName()
    }
    
    // ColumnType returns the database type of the column. like `varchar(16)`
    func (ct ColumnType) ColumnType() (columnType string, ok bool) {
    	return ct.ColumnTypeValue.String, ct.ColumnTypeValue.Valid
    }
    
    // PrimaryKey returns the column is primary key or not.
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Click Count (0)
  9. soft_delete.go

    func (n DeletedAt) Value() (driver.Value, error) {
    	if !n.Valid {
    		return nil, nil
    	}
    	return n.Time, nil
    }
    
    func (n DeletedAt) MarshalJSON() ([]byte, error) {
    	if n.Valid {
    		return json.Marshal(n.Time)
    	}
    	return json.Marshal(nil)
    }
    
    func (n *DeletedAt) UnmarshalJSON(b []byte) error {
    	if string(b) == "null" {
    		n.Valid = false
    		return nil
    	}
    	err := json.Unmarshal(b, &n.Time)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 4.5K bytes
    - Click Count (1)
  10. tests/test_tutorial/test_body_nested_models/test_tutorial008.py

        data = [{"url": "not a valid url", "name": "Example"}]
        response = client.post("/images/multiple", json=data)
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
                    "loc": ["body", 0, "url"],
                    "input": "not a valid url",
                    "msg": "Input should be a valid URL, relative URL without a base",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 6K bytes
    - Click Count (0)
Back to Top