Skip to content
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

location type should be azureLocation instead of string #1139

Merged
merged 11 commits into from
Jul 15, 2024

Conversation

live1206
Copy link
Member

@live1206 live1206 commented Jul 9, 2024

resolves #1138

@microsoft-github-policy-service microsoft-github-policy-service bot added the lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library label Jul 9, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Jul 9, 2024

All changed packages have been documented.

  • @azure-tools/typespec-azure-resource-manager
Show changes

@azure-tools/typespec-azure-resource-manager - fix ✏️

LocationResourceParameter should be azureLocation instead of string

@azure-sdk
Copy link
Collaborator

Copy link
Member

@timotheeguerin timotheeguerin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks liek the ci need to regen the common types pnpm regen-samples

@live1206
Copy link
Member Author

live1206 commented Jul 10, 2024

looks liek the ci need to regen the common types pnpm regen-samples

@timotheeguerin pnpm regen-samples is failing for me as below, is there any existing issue or am I missing any step here?

│  ❯ |azure-samples| test/samples.test.ts  (53 tests | 16 failed) 48112ms
│    ❯ test/samples.test.ts > TypeSpec Azure Samples > Azure Resource Manager > arm-library
│      → Unexpected diagnostics:
│ C:/src/typespec-azure/packages/typespec-azure-resource-manager/lib/private.decorators.tsp:76:12 - error missing-implementation: Extern declaration must have an implementation in JS file.
│    ❯ test/samples.test.ts > TypeSpec Azure Samples > Azure Resource Manager > contoso
│      → Unexpected diagnostics:
│ C:/src/typespec-azure/packages/typespec-azure-resource-manager/lib/private.decorators.tsp:76:12 - error missing-implementation: Extern declaration must have an implementation in JS file.
│    ❯ test/samples.test.ts > TypeSpec Azure Samples > Azure Resource Manager > legacy/managed-identity
│      → Unexpected diagnostics:
│ C:/src/typespec-azure/packages/typespec-azure-resource-manager/lib/private.decorators.tsp:76:12 - error missing-implementation: Extern declaration must have an implementation in JS file.
│    ❯ test/samples.test.ts > TypeSpec Azure Samples > Azure Resource Manager > operations/nobody-action
│      → Unexpected diagnostics:
│ C:/src/typespec-azure/packages/typespec-azure-resource-manager/lib/private.decorators.tsp:76:12 - error missing-implementation: Extern declaration must have an implementation in JS file.

I had a look at the file
image

So, seems like there is an existing issue here?

@timotheeguerin
Copy link
Member

timotheeguerin commented Jul 11, 2024

regen samples is run as part of the CI so highly doubt there is an issue, have you built the entire repo following the CONTRIBUTING guide

@allenjzhang
Copy link
Member

#1138

@live1206
Copy link
Member Author

regen samples is run as part of the CI so highly doubt there is an issue, have you built the entire repo following the CONTRIBUTING guide

I did this a while ago, need to do it again, and the samples are updated now.

Copy link
Member

@timotheeguerin timotheeguerin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@allenjzhang does this looks good to you , the openapi2 change is technically equivalent but we are addding extra root references

@live1206
Copy link
Member Author

@allenjzhang If you don't have any objection on this, I will merge this PR tomorrow.

@timotheeguerin timotheeguerin added this pull request to the merge queue Jul 15, 2024
Merged via the queue into Azure:main with commit b4df7c5 Jul 15, 2024
21 checks passed
@live1206 live1206 deleted the azure-location branch July 16, 2024 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][ARM] LocationResourceParameter should be azureLocation instead of string
4 participants