Skip to content

leases.md uses argument name 'path:' but the parameter is 'pattern' #55

@nficano

Description

@nficano

Category: docs Severity: major
Location: docs/guides/leases.md:46-50

What

LeaseManager.AuthorizeOperation(Lease, LeaseConstraints?, string namespaceName, string pattern) (src/Arcp.Runtime/Leases/LeaseManager.cs:129) names the fourth parameter 'pattern', not 'path'. The named argument path: does not exist, so the example does not compile.

Evidence

        lm.AuthorizeOperation(
            ctx.Lease,
            ctx.LeaseConstraints,
            LeaseNamespaces.FsWrite,
            path: "/workspace/src/output.cs");

Proposed fix

Rename the argument to pattern: "/workspace/src/output.cs".

Acceptance criteria

  • The example compiles against AuthorizeOperation's actual parameter names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    audit/docsAudit: documentation inaccuracysev/majorSeverity: major

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions