Skip to content

Commit

Permalink
Fixing typpo (#1102)
Browse files Browse the repository at this point in the history
Closes: #1055
  • Loading branch information
allenjzhang authored Jul 1, 2024
1 parent d4cfac6 commit ee6a7f8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .chronus/changes/azhang_fixingTyppo-2024-6-1-11-53-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-azure-resource-manager"
- "@azure-tools/typespec-client-generator-core"
---

Fixing typo
6 changes: 3 additions & 3 deletions docs/getstarted/azure-resource-manager/step04.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ These templates have default values so that they are normally used without speci

The above templates are specializations of the following template in the `Azure.ResourceManager.Foundations` namespace:

| Template | Description |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `checkNameAvailability<TScopeParamters, TRequest, TResponse, TAdditionalParams>` | Checks name availability based on the provided scope parameters. |
| Template | Description |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `checkNameAvailability<TScopeParameters, TRequest, TResponse, TAdditionalParams>` | Checks name availability based on the provided scope parameters. |

For reference, the standard templates use the following `TScopeParameters`:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const armResourceNamePatternRule = createRule({
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/resource-name-pattern",
description: "The resource name parameter should be defined with a 'pattern' restriction.",
messages: {
default: `The resource name parameter should be defined with a 'pattern' restriction. Please use 'ResourceNameParamter' to specify the name parameter with options to override default pattern RegEx expression.`,
default: `The resource name parameter should be defined with a 'pattern' restriction. Please use 'ResourceNameParameter' to specify the name parameter with options to override default pattern RegEx expression.`,
},
create(context) {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-client-generator-core/doc/types.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ model SdkQueryServiceParameter extends SdkModelPropertyType {
*
* @property serializedName: The name of the property we send over the wire to the services
* @property urlEncode: Whether to url encode the path parameter
* @property validation: Any validation for the path parameter. Right now only including validation on path paramters because we only know about path params needing validation.
* @property validation: Any validation for the path parameter. Right now only including validation on path parameters because we only know about path params needing validation.
* @property location: Whether the parameter is a client-level or operation-level parameter
*/
model SdkPathServiceParameter extends SdkModelPropertyType {
Expand Down

0 comments on commit ee6a7f8

Please sign in to comment.