Граф коммитов

2282 Коммитов

Автор SHA1 Сообщение Дата
Jiao Di (MSFT) 854466fff8
Supplememnt test case for structure and azure resource (#2786)
* supplememnt test case

* upgrade cadl-ranch version

* supplement core basic and arm resource test case

* update

* Update packages/typespec-ts/test/integration/clientStructure.spec.ts

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-09-10 17:37:17 +08:00
ZiWei Chen f2064941b2
bump emitter version to v0.33 (#2804)
* bump emitter version to v0.33

* Update CHANGELOG.md

* Update CHANGELOG.md

* update changelogs

* Update pnpm-lock.yaml
2024-09-06 13:36:58 +08:00
ZiWei Chen 8c1b6158f2
Get paging properties from parent models (#2764)
* get properties from parent models

* update code and create a test case for hlc

* Revert test case for hlc

* add ut

* Update operations.spec.ts

* update the deduplicateProperties

* fix the autorest issue

* fix ci

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-09-05 15:33:49 +08:00
ZiWei Chen 13d6baf35b
Update lro version in package.json for autorest rlc generation (#2763)
* update lro version in package.json for autorest rlc generation

* Update generateRestLevel.ts

* Update the file path

* Update buildPackageFile.ts

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-09-05 14:01:52 +08:00
Mary Gao 2cc8303400
Remove the paging dependency in Modular (#2781)
* Remove the paging dependency for modular

* add UTs

* fix ci

* fix ci

* Update packages/rlc-common/src/metadata/packageJson/azurePackageCommon.ts

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
2024-09-04 17:56:41 +08:00
Jiao Di (MSFT) 4b1cb5eeaf
fix nightly ci (#2801) 2024-09-04 15:19:34 +08:00
ZiWei Chen 8c315f0724
support typecheck command for sample scripts (#2784)
* support typecheck command for sample scripts

* Update package.json

* update

* Update buildAzureMonorepoPackage.ts

* Update packageJson.spec.ts

* update

* update

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-09-04 10:23:43 +08:00
Jeremy Meng 6aef1c5c37
Standardize OSS copyright header (#2775)
* Standardize the copyright header

in our source code and generated code

* string replacement "MIT license" => "MIT License"

* more replacement
2024-08-29 09:24:52 -07:00
Qiaoqiao Zhang 9a9fccad2e
fix-special-union-within-anonymous-model-issue (#2767)
* fix-special-union-within-anonymous-model-issue

* fix enum key

* revert tmp changes

* fix ci
2024-08-29 18:55:49 +08:00
Jiao Di (MSFT) 8f46df88e8
upgrade tcgc to v0.45.4 (#2782) 2024-08-29 17:01:06 +08:00
Qiaoqiao Zhang cf422f168b
Boolean literal type (#2776)
* test/modularUnit/modelsGenerator.spec.ts

* fix-boolean-literal-type
2024-08-29 11:10:06 +08:00
Timo van Veenendaal 669662f259
Preserve .only when updating scenarios (#2774)
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-08-28 15:46:07 +08:00
Timo van Veenendaal b040ac20fc
Fix example scenario formatting (#2771) 2024-08-26 19:49:49 +00:00
Timo van Veenendaal 5d93818ed9
Scenario test improvements (#2766) 2024-08-23 20:02:22 -07:00
Jiao Di (MSFT) cf45517109
Supplement test case for array type (#2703)
* supplement case for array type

* annotate type model test case

* add case

* fix plainDate and plainTime

* fix ci

* fix ci

* fix unit test

---------

Co-authored-by: qiaozha <qiaozha@microsoft.com>
2024-08-23 13:56:52 +08:00
Timo van Veenendaal 8a8bc75fa1
Scenario testing prototype (#2765) 2024-08-22 21:26:27 +00:00
Qiaoqiao Zhang aef9d01c78
set-core-util-dependency-with-binder (#2743)
* set-core-util-dependency-with-binder

* add core-util as dependency

* fix format

* fix smoke test

* fix non branding dependencies

* fix ci

* fix unit test

* fix unit-trst

* fix ci

* core-util as a dependency for modular

* fix ci

* fix ci

* fix ci

* fix unit-test

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
2024-08-22 23:39:34 +08:00
Jiao Di (MSFT) 153fafd71b
Add case for azure core page (#2748)
* add case for core page

* update case

* update test case

* update

* update

* regen code and update case

* fix ci

* update test case

* update

* update

* update

* upgrade cadl-ranch version

* update

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-08-22 11:51:46 +08:00
Qiaoqiao Zhang a68a6bf04b
fix-body-parameter-required (#2731)
* fix-body-parameter-required

* fix ci

* update

* update test case

* fix ci

* refine the body required logic

* bug fix

* fix smoke test

* fix ci

* update test case

* update test case

* resolve comments

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
2024-08-21 14:21:33 +08:00
Mary Gao 8c0241217f
bump emitter to v0.32 (#2755)
* update the changelog

* update the changelog

* update

* update

* update the change logs

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
2024-08-16 16:45:45 +08:00
Mary Gao b51c6d42ba
Fix the todo generation issues (#2704)
* Fix the todo issues found

# Conflicts:
#	packages/typespec-ts/src/modular/helpers/operationHelpers.ts

* update the credentials

* Revert changes

* Revert changes

* Revert changes

* Update packages/typespec-ts/src/lib.ts

Co-authored-by: Jose Manuel Heredia Hidalgo <joheredi@microsoft.com>

* resolve conflicts

* filter out non 200 status code

* update smoke testing

* update smoke testing

---------

Co-authored-by: Jose Manuel Heredia Hidalgo <joheredi@microsoft.com>
2024-08-16 13:12:05 +08:00
Mary Gao c0d021c4ba
Update the existing package.json to correct lro or paging dependencies (#2732)
* Update the existing package.json to correct lro or paging dependencies

* Remove useless codes

* Enable the option for clearOutputFolder

* Enable the option for clearOutputFolder

* Enable the option for clearOutputFolder

* fix ci

* Resolve comments

* update useless files

* revert changes

* fix lint error

---------

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
2024-08-16 12:36:06 +08:00
Deyaaeldeen Almahallawi ac8c011b0f
Upgrade tshy to v2 (#2751)
* Upgrade tshy to v2

* edits

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-08-16 11:57:36 +08:00
ZiWei Chen 74308bcc86
should-default-flavor-to-azure-for-rlc (#2756)
Co-authored-by: qiaozha <qiaozha@microsoft.com>
2024-08-16 10:54:36 +08:00
Qiaoqiao Zhang 4e7a3e6184
Fix client name (#2744)
* fix client name for modular

* add common/config/rush/pnpm-lock.yaml

* Update packages/typespec-ts/src/modular/buildCodeModel.ts

* fix smoke test

* fix cadl ranch test

* fix cadl ranch test

* regen

* fix ci

* regen
2024-08-15 15:11:59 +08:00
Jeremy Meng 3b65a10bef
Use ESLint flat config files in generated package (#2754)
* Switch to generate flat config for eslint

* delete old generated .eslintrc.json

* Don't need --ext for flat config

* indent json

* run regen for autorest.typescript

* Regenerate for typespec-test

* simplify building of eslint config by just using strings

* re-generate

* regen-version-tolerance

* update regen-test-baselines to include generate-version-tolerance

* run smoke-tests
2024-08-15 11:59:40 +08:00
Jeremy Meng 1a0c2d3019
upgrade dependency `vitest` version to ^2.0.5 in generated packages (#2749) 2024-08-14 18:54:31 -07:00
Timo van Veenendaal a77ad85c4e
Fix some issues with API version handling in new getClient (#2738) 2024-08-14 13:32:12 -07:00
Daniel Getu 4e45ca19e7
Add CADL ranch d.ts generation (#2712) 2024-08-13 17:53:16 -07:00
Mary Gao a82490f7c8
Refresh the lock file (#2745)
* Refresh the lock file

* Reverst changes

* Reverst changes
2024-08-12 20:27:42 +08:00
Jiao Di (MSFT) cc3735ce54
Upgrade compiler and tcgc in Aug (#2741)
* upgrade compiler and tcgc

* fix ci
2024-08-12 17:40:33 +08:00
Jose Manuel Heredia Hidalgo 673ee1ad08
Improve how we handle Static Helpers (#2716)
* load static helpers

* Use binder for polling and paging helpers

* Ignore d.ts files

* Fix imports

* Update poller message

* Cleanup

* Address PR feedback

* Fix path issues

* Fix unit tests

* Fix dirname

* Update helpers

* remove unrelated changes

* Fix test

* Update static helpers

* Re generate tests

* Fix test

* Address PR comments

* Update
2024-08-09 14:12:01 -07:00
Timo van Veenendaal 7f99fc9e15
Remove internal RLC layer from modular (#2728) 2024-08-06 15:04:31 -07:00
Mary Gao 575cf64232
Enable windows testing (#2727)
* Enable windows testing

* Remove the linux environment considering useless

* Rename it
2024-08-05 06:41:22 +00:00
Wes Haggard dd505de190
Remove testserver codecoverage publishing (#2724) 2024-08-02 09:50:49 -07:00
Jiao Di (MSFT) 124ff9b99c
Fix build error (#2722)
* fix moinitor build error

* update

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-08-01 20:28:45 +08:00
Jiao Di (MSFT) 73b9e50361
Supplement test case for spread (#2694)
* Supplement test case for spread

* revert @azure-tools/cadl-ranch-specs version change

* Revert change

This reverts commit 6c24cfb4f8.

* fix cadl ranch api dependency

---------

Co-authored-by: qiaozha <qiaozha@microsoft.com>
Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
2024-08-01 18:55:55 +08:00
ZiWei Chen fb5d96bd48
fix resolve conflicts bug (#2717)
* fix resolve conflicts bug

* Update buildCodeModel.ts

* format
2024-07-31 14:35:16 +08:00
ZiWei Chen 999635d70b
disable sampleUrl generation if generateSample is false (#2713)
* update sampleUrl judgment logic

* Update case-rlcReadme.md

* Update buildReadmeFile.ts

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-07-30 10:23:27 +00:00
Jiao Di (MSFT) 29e41e0b2f
fix invalid versioning (#2714)
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-07-30 17:59:34 +08:00
Mary Gao a06934f0e0
Upgrade to the latest tcgc to v.44.3 (#2711)
* Upgrade to the latest tcgc

* Update the fixes

* Fix testing issues

* Upgrade tcgc to v44.3

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
2024-07-30 05:18:51 +00:00
Daniel Getu 4e267ec2e5
Bump ts-morph to 23.0.0 (#2708) 2024-07-29 16:58:38 -07:00
Jose Manuel Heredia Hidalgo f0eb1576e9
Binder support external dependencies (#2710)
* Update api name and require project

* Support external dependencies

* Address PR feedback
2024-07-26 14:34:17 -07:00
Jiao Di (MSFT) f380fcdd3d
Add test case for Azure Managed Identity (#2689)
* Add test case for Azure Managed Identity

* update
2024-07-25 13:32:03 +08:00
ZiWei Chen 3db911eb9b
enable changelog pack for RLC and Modular (#2695)
* enable changelog pack for RLC and Modular

* update
2024-07-24 16:11:03 +08:00
Qiaoqiao Zhang 155e4050ac
bump-emitter-to-0.31 (#2687) 2024-07-23 16:36:27 +08:00
ZiWei Chen 66bc3e8b73
fix prefix issue in rlc package.json (#2685)
* fix prefix issue in rlc package.json

* Update packageJson.spec.ts

---------

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
2024-07-23 15:43:33 +08:00
Mary Gao 4aff739e60
Fix the isUnexpected narrowing issue in modular (#2654)
* generate deviceregistry with modular

* Re-generate device registery mgmt

* update tsp

* regen code and build

* Regen the deviceRegistryClient

* Update the api view

* regen code

* fix ci

* fix ci

* remove test case

* update the subset logic for default response

* Update the responses

* Update the interface

* Update the narrowing with necessary conditions

* update

* update

* Update the change for this

* Update packages/typespec-ts/src/modular/helpers/operationHelpers.ts

* Update the changes

* fix ci

* update

* regen smoke test

* remove device case

* fix ci

* regen smoke test

* Regen with res not _result

* Update the generation detail

* regen code

* Resolve comments

* Update the operation name

* revert some changes

* Merge to main

---------

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
2024-07-23 14:25:33 +08:00
ZiWei Chen 454e64d202
update openai smoke test (#2682)
* update openai smoke test

* fix nullable named  extensible enum

* fix extensible named union bug

* Update packages/typespec-ts/src/utils/modelUtils.ts

* add ut

* add ut for flattened union

* resolve comments

* fix smoke-test

---------

Co-authored-by: Qiaoqiao Zhang <qiaozha@microsoft.com>
Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
2024-07-23 12:57:24 +08:00
Jiao Di (MSFT) 9c6e9a8be4
Supplement test case (#2666)
* supplement test case

* update scalar test case

* remove visibility case

* revert the changes

* update

* skip case as it has not support yet

* revert scalar case change
2024-07-23 11:53:00 +08:00