Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Implicit (0.2 sec)

  1. fastapi/openapi/models.py

    class OAuthFlowClientCredentials(OAuthFlow):
        tokenUrl: str
    
    
    class OAuthFlowAuthorizationCode(OAuthFlow):
        authorizationUrl: str
        tokenUrl: str
    
    
    class OAuthFlows(BaseModelWithConfig):
        implicit: Optional[OAuthFlowImplicit] = None
        password: Optional[OAuthFlowPassword] = None
        clientCredentials: Optional[OAuthFlowClientCredentials] = None
        authorizationCode: Optional[OAuthFlowAuthorizationCode] = None
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. fastapi/openapi/utils.py

                if route.status_code is not None:
                    status_code = str(route.status_code)
                else:
                    # It would probably make more sense for all response classes to have an
                    # explicit default status_code, and to extract it from them, instead of
                    # doing this inspection tricks, that would probably be in the future
                    # TODO: probably make status_code a default class attribute for all
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  3. tests/test_required_noneable.py

        assert response.status_code == 200
        assert response.json() == "foo"
    
    
    def test_required_nonable_explicit_query_invalid():
        response = client.get("/explicit-query")
        assert response.status_code == 422
    
    
    def test_required_nonable_explicit_query_value():
        response = client.get("/explicit-query", params={"q": "foo"})
        assert response.status_code == 200
        assert response.json() == "foo"
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 19:08:31 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  4. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

          seen[key] += 1
        # Remove this testsuite if it doesn't have anything in it any more
        if len(testsuite) == 0:  # pylint: disable=g-explicit-length-test
          r._elem.remove(testsuite._elem)
      if len(r) > 0:  # pylint: disable=g-explicit-length-test
        result += r
    
    # Insert the number of failures for each test to help identify flakes
    # need to clarify for shard
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body/test_tutorial001_py310.py

                        "msg": "value is not a valid dict",
                        "type": "type_error.dict",
                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_explicit_content_type(client: TestClient):
        response = client.post(
            "/items/",
            content='{"name": "Foo", "price": 50.5}',
            headers={"Content-Type": "application/json"},
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (1)
  6. tests/test_tutorial/test_body/test_tutorial001.py

                        "loc": ["body"],
                        "msg": "value is not a valid dict",
                        "type": "type_error.dict",
                    }
                ]
            }
        )
    
    
    def test_explicit_content_type(client: TestClient):
        response = client.post(
            "/items/",
            content='{"name": "Foo", "price": 50.5}',
            headers={"Content-Type": "application/json"},
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (5)
  7. ci/official/utilities/extract_resultstore_links.py

      return result_store_links
    
    
    def indent_xml(elem, level=0) -> None:
      """Indents and newlines the XML for better output."""
      indent_str = '\n' + level * '  '
      if len(elem):  # pylint: disable=g-explicit-length-test  # `if elem` not valid
        if not elem.text or not elem.text.strip():
          elem.text = indent_str + '  '
        if not elem.tail or not elem.tail.strip():
          elem.tail = indent_str
        for elem in elem:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top