-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Plane swagger for agriculture platform for Public Preview #32238
base: main
Are you sure you want to change the base?
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
|
Generated ApiView
|
API change check APIView has identified API level changes in this PR and created following API reviews. |
…zakil/azure-rest-api-specs into users/keshav/typespecChanges
typespec changes for Microsoft.AgriculturePlatform
PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts. |
PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts. |
specification/agricultureplatform/AgriculturePlatform.DataPlane/models.tsp
Outdated
Show resolved
Hide resolved
specification/agricultureplatform/AgriculturePlatform.DataPlane/models.tsp
Show resolved
Hide resolved
specification/agricultureplatform/AgriculturePlatform.DataPlane/models.tsp
Outdated
Show resolved
Hide resolved
specification/agricultureplatform/AgriculturePlatform.DataPlane/models.tsp
Show resolved
Hide resolved
|
||
@parentResource(Catalog) | ||
@resource("items") | ||
model ItemsinCatalog is Item; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
model ItemsinCatalog is Item; | |
model ItemsInCatalog is Item; |
specification/agricultureplatform/AgriculturePlatform.DataPlane/routes.tsp
Show resolved
Hide resolved
specification/agricultureplatform/AgriculturePlatform.DataPlane/routes.tsp
Outdated
Show resolved
Hide resolved
specification/agricultureplatform/AgriculturePlatform.DataPlane/routes.tsp
Show resolved
Hide resolved
* Creates or updates a Item resource. | ||
*/ | ||
@action("create") | ||
create is Operations.ResourceCollectionAction< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try using https://azure.github.io/typespec-azure/docs/libraries/azure-core/reference/interfaces/#Azure.Core.ResourceOperations.ResourceCreateWithServiceProvidedName? If so, then you can probably also delete the ItemResponse
model
"parameters": { | ||
"api-version": "2024-11-01-preview", | ||
"catalogId": "CATALOG123", | ||
"catalog": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think CI is complaining because this isn't named resource
. Please look into fixing CI failures and reach out in the TypeSpec Discussion channel as needed
pipeline failure fixes and incorporated suggestions
created common models for repetitive properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for following through on the suggested refactorings, looks good!
Choose a PR Template
Switch to "Preview" on this description then select one of the choices below.
Click here to open a PR for a Data Plane API.
Click here to open a PR for a Control Plane (ARM) API.
Click here to open a PR for only SDK configuration.