- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,067 for query (0.09 sec)
-
docs_src/query_params_str_validations/tutorial010.py
from typing import Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Union[str, None] = Query( default=None, alias="item-query", title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, max_length=50, pattern="^fixedquery$", deprecated=True,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 574 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SearchHelper.java
}); String query = ComponentUtil.getQueryStringBuilder().params(params).sortField(params.getSort()).build(); List<Map<String, Object>> documentItems; try { documentItems = searchInternal(query, params, userBean); } catch (final InvalidQueryException e) { if (logger.isDebugEnabled()) { logger.debug("Invalid query: {}", query, e); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:20:39 UTC 2024 - 19.1K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py
response = client.get("/items/", params={"item-query": "nonregexquery"}) assert response.status_code == 422 assert response.json() == IsDict( { "detail": [ { "type": "string_pattern_mismatch", "loc": ["query", "item-query"], "msg": "String should match pattern '^fixedquery$'",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 6.2K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial010_an_py310.py
response = client.get("/items/", params={"item-query": "nonregexquery"}) assert response.status_code == 422 assert response.json() == IsDict( { "detail": [ { "type": "string_pattern_mismatch", "loc": ["query", "item-query"], "msg": "String should match pattern '^fixedquery$'",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 6.3K bytes - Viewed (0) -
tests/test_invalid_sequence_param.py
from typing import Dict, List, Optional, Tuple import pytest from fastapi import FastAPI, Query from pydantic import BaseModel def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/") def read_items(q: List[Item] = Query(default=None)): pass # pragma: no cover def test_invalid_tuple():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 1.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java
@Override public QueryBuilder execute(final QueryContext context, final Query query, final float boost) { if (query instanceof final BooleanQuery booleanQuery) { if (logger.isDebugEnabled()) { logger.debug("{}:{}", query, boost); } return convertBooleanQuery(context, booleanQuery, boost); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/FacetInfo.java
} public void addQuery(final String s) { if (query == null) { query = new String[] { s }; } else { final String[] newQuery = Arrays.copyOf(query, query.length + 1); newQuery[query.length] = s; query = newQuery; } if (logger.isDebugEnabled()) { logger.debug("loaded facet query: {}", s); } } @Override
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.6K bytes - Viewed (0) -
chainable_api.go
func (db *DB) Joins(query string, args ...interface{}) (tx *DB) { return joins(db, clause.LeftJoin, query, args...) } // InnerJoins specify inner joins conditions // db.InnerJoins("Account").Find(&user) func (db *DB) InnerJoins(query string, args ...interface{}) (tx *DB) { return joins(db, clause.InnerJoin, query, args...) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 14.8K bytes - Viewed (0) -
tests/test_ambiguous_params.py
@app.get("/multi-query") async def get(foo: Annotated[int, Query(gt=2), Query(lt=10)]): return foo with pytest.raises( AssertionError, match=( "Cannot specify `Depends` in `Annotated` and default value" " together for 'foo'" ), ): @app.get("/") async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 12 00:22:47 UTC 2023 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java
if (crawlingInfoPager.id != null) { cb.query().docMeta().setId_Equal(crawlingInfoPager.id); } // TODO Long, Integer, String supported only. if (StringUtil.isNotBlank(crawlingInfoPager.sessionId)) { cb.query().setSessionId_Match(crawlingInfoPager.sessionId); } cb.query().addOrderBy_CreatedTime_Desc(); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 13.4K bytes - Viewed (0)