Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 373 for Regex (0.15 sec)

  1. tests/test_regex_deprecated_body.py

                "detail": [
                    {
                        "ctx": {"pattern": "^fixedquery$"},
                        "loc": ["body", "q"],
                        "msg": 'string does not match regex "^fixedquery$"',
                        "type": "value_error.str.regex",
                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_openapi_schema():
        client = get_client()
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. tests/test_regex_deprecated_params.py

                "detail": [
                    {
                        "ctx": {"pattern": "^fixedquery$"},
                        "loc": ["query", "q"],
                        "msg": 'string does not match regex "^fixedquery$"',
                        "type": "value_error.str.regex",
                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_openapi_schema():
        client = get_client()
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. docs_src/query_params_str_validations/tutorial004_an_py310_regex.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None, Query(min_length=3, max_length=50, regex="^fixedquery$")
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 366 bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogMatch(Regex("""User-Agent: okhttp/.+"""))
          .assertLogEqual("--> END GET")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)"""))
          .assertLogEqual("Content-Type: text/html; charset=0")
          .assertLogMatch(Regex("""Content-Length: \d+"""))
          .assertLogMatch(Regex(""))
          .assertLogEqual("Body with unknown charset")
          .assertLogMatch(Regex("""<-- END HTTP \(\d+ms, 25-byte body\)"""))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  5. fastapi/params.py

                        "strict": strict,
                        "json_schema_extra": current_json_schema_extra,
                    }
                )
                kwargs["pattern"] = pattern or regex
            else:
                kwargs["regex"] = pattern or regex
                kwargs.update(**current_json_schema_extra)
            use_kwargs = {k: v for k, v in kwargs.items() if v is not _Unset}
    
            super().__init__(**use_kwargs)
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  6. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""callStart: Request\{method=POST, url=$url\}"""))
          .assertLogMatch(Regex("""proxySelectStart: $url"""))
          .assertLogMatch(Regex("""proxySelectEnd: \[DIRECT]"""))
          .assertLogMatch(Regex("""dnsStart: ${url.host}"""))
          .assertLogMatch(Regex("""dnsEnd: \[.+]"""))
          .assertLogMatch(Regex("""connectStart: ${url.host}/.+ DIRECT"""))
          .assertLogMatch(Regex("""connectEnd: http/1.1"""))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      @GwtIncompatible // java.util.regex.Pattern
      public void testPatternSplitWordBoundary_singleCharInput() {
        String string = "f";
        Iterable<String> words = Splitter.on(Pattern.compile("\\b")).split(string);
        assertThat(words).containsExactly("f").inOrder();
      }
    
      @AndroidIncompatible // Apparently Gingerbread's regex API is buggy.
      @J2ktIncompatible // Kotlin Native's regex is based on Apache Harmony, like old Android
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/admin/pathmap/admin_pathmap.jsp

                                    <la:form action="/admin/pathmap/">
                                        <div class="form-group row">
                                            <label for="regex" class="col-sm-2 text-sm-right col-form-label"><la:message
                                                    key="labels.regex"/></label>
    Others
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Tue Mar 31 05:47:05 GMT 2020
    - 7.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsPathMappingCQ.java

        }
    
        public void setRegex_Equal(String regex) {
            setRegex_Term(regex, null);
        }
    
        public void setRegex_Equal(String regex, ConditionOptionCall<TermQueryBuilder> opLambda) {
            setRegex_Term(regex, opLambda);
        }
    
        public void setRegex_Term(String regex) {
            setRegex_Term(regex, null);
        }
    
        public void setRegex_Term(String regex, ConditionOptionCall<TermQueryBuilder> opLambda) {
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 72.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      @GwtIncompatible // java.util.regex.Pattern
      public void testPatternSplitWordBoundary_singleCharInput() {
        String string = "f";
        Iterable<String> words = Splitter.on(Pattern.compile("\\b")).split(string);
        assertThat(words).containsExactly("f").inOrder();
      }
    
      @AndroidIncompatible // Apparently Gingerbread's regex API is buggy.
      @J2ktIncompatible // Kotlin Native's regex is based on Apache Harmony, like old Android
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top