Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 639 for asdict (0.07 sec)

  1. fastapi/routing.py

            if read_with_orm_mode:
                # Let from_orm extract the data from this model instead of converting
                # it now to a dict.
                # Otherwise, there's no way to extract lazy data that requires attribute
                # access instead of dict iteration, e.g. lazy relationships.
                return res
            return _model_dump(
                res,
                by_alias=True,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  2. internal/logger/audit.go

    	internalAudit "github.com/minio/minio/internal/logger/message/audit"
    	"github.com/minio/minio/internal/mcontext"
    	"github.com/minio/pkg/v3/logger/message/audit"
    
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    const contextAuditKey = contextKeyType("audit-entry")
    
    // SetAuditEntry sets Audit info in the context.
    func SetAuditEntry(ctx context.Context, audit *audit.Entry) context.Context {
    	if ctx == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. cmd/metrics-v3-audit.go

    		"Total number of messages sent since start",
    		targetID)
    )
    
    // loadAuditMetrics - `MetricsLoaderFn` for audit
    // such as failed messages and total messages.
    func loadAuditMetrics(_ context.Context, m MetricValues, c *metricsCache) error {
    	audit := logger.CurrentStats()
    	for id, st := range audit {
    		labels := []string{targetID, id}
    		m.Set(auditFailedMessages, float64(st.FailedMessages), labels...)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 10 14:50:39 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-audit.go

    Harshavardhana <******@****.***> 1723587724 -0700
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_dataclasses/test_tutorial002.py

                            "tags": IsDict(
                                {
                                    "title": "Tags",
                                    "type": "array",
                                    "items": {"type": "string"},
                                }
                            )
                            | IsDict(
                                # TODO: remove when deprecating Pydantic v1
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_form_models/test_tutorial001_an.py

        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
                        "loc": ["body", "password"],
                        "msg": "Field required",
                        "input": {"username": "Foo"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_header_param_models/test_tutorial001.py

                                    "schema": IsDict(
                                        {
                                            "anyOf": [{"type": "string"}, {"type": "null"}],
                                            "title": "If Modified Since",
                                        }
                                    )
                                    | IsDict(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_form_models/test_tutorial001.py

        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
                        "loc": ["body", "password"],
                        "msg": "Field required",
                        "input": {"username": "Foo"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

        assert response.json() == snapshot(
            IsDict(
                {
                    "detail": [
                        {
                            "type": "missing",
                            "loc": ["cookie", "session_id"],
                            "msg": "Field required",
                            "input": {},
                        }
                    ]
                }
            )
            | IsDict(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_param_models/test_tutorial002.py

            {
                "detail": [
                    IsDict(
                        {
                            "type": "missing",
                            "loc": ["header", "save_data"],
                            "msg": "Field required",
                            "input": {"x_tag": [], "host": "testserver"},
                        }
                    )
                    | IsDict(
                        # TODO: remove when deprecating Pydantic v1
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top