Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Puzzling error about properties of a patch request must not be required: type. [TypeSpec PR] #672

Closed
1 of 2 tasks
TimLovellSmith opened this issue Mar 6, 2024 · 1 comment

Comments

@TimLovellSmith
Copy link
Member

Before filling a bug

  • have you checked the faq for known issues.
  • have you checked existing issues

Describe the bug

We're getting an unexpected linter error:

❌ PatchBodyParametersSchema | Properties of a PATCH request body must not be required, property:type.Location: GitHub.Network/stable/2024-04-02/GitHub.Network.json#L303 | RPC-Patch-V1-10

in this typespec PR. https://github.com/Azure/azure-rest-api-specs-pr/pull/17246/checks?check_run_id=22323977604

I can't figure out why. The json looks reasonable to me.

Please provide as much information as you can. This would be:
- OpenAPI files having the issues
- Autorest command used

Expected behavior
I didn't expect the error. Am I missing something?

Additional context

@timotheeguerin timotheeguerin transferred this issue from Azure/autorest Mar 11, 2024
@mikeharder
Copy link
Member

Dup of Azure/typespec-azure#383

@mikeharder mikeharder closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants