Skip to content

[Bug]: missing input flag on input model #4128

@jhendrixMSFT

Description

@jhendrixMSFT

Describe the bug

Input and Output UsageFlags need to be transitively set. i.e. if type Foo has flag Input set, then all of its transitive types must also have Input set.

Reproduction

Build https://github.com/Azure/azure-rest-api-specs/tree/main/specification/quantum/Quantum.Workspace

Type JobDetails has UsageFlags.Input set. It contains a field of type CostEstimate that does not have the Input flag set.

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglib:tcgcIssues for @azure-tools/typespec-client-generator-core library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions