Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scripts/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ steps:
npx @microsoft/rush publish --publish --pack --include-all --tag latest

# publish the packages (tag as preview by default)
echo "//registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)" > ./.npmrc
echo "//registry.npmjs.org/:_authToken=$(azure-powershell-npm-token)" > ./.npmrc
for file in common/temp/artifacts/packages/*.tgz
do
common/temp/pnpm-local/node_modules/.bin/pnpm publish $file --no-git-checks --tag latest --access public || echo no-worries
Expand Down
5 changes: 4 additions & 1 deletion packages/typespec-powershell/src/utils/modelUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ function getSchemaForScalar(
case "base64url":
schema.type = SchemaType.ByteArray;
break;
case "duration":
schema.type = SchemaType.Duration;
break;
}
}
function isBinaryAsRequestBody() {
Expand Down Expand Up @@ -1515,7 +1518,7 @@ function getSchemaForStdScalar(
outputTypeName: "string"
};
case "duration":
return { type: "string", format, description };
return { type: "string", format: "duration", description };
case "url":
return { type: "string", format: "uri" };
}
Expand Down
Loading