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

23 Коммитов

Автор SHA1 Сообщение Дата
Jose Manuel Heredia Hidalgo 1de92fdbe7
Introduce SdkType context (#2662)
* Introduce SdkType context

* Add changes

* remove unrelated changes

* Cleanup and test

* Fix conflicts

* Remove unused reify

* address comments

* fix smoke test

---------

Co-authored-by: qiaozha <qiaozha@microsoft.com>
2024-07-17 18:20:16 +08:00
ZiWei Chen 9047f97ea8
Supoort mgmt readme generation, Remove karma generation for modular and Add tshy in .gitignore (#2655)
* supoort mgmt readme generation

* remove karma generation and add tshy in .gitignore

* Update buildReadmeFile.ts

* update

* Update buildReadmeFile.ts

* Update buildReadmeFile.ts

* update test

* update

* Update buildReadmeFile.ts

* update

* update

* update

* update

* remove impression

* update

* update smoke-test

* update test

* fix lint error
2024-07-17 16:56:21 +08:00
Daniel Getu d18ce0a986
Add initial serialization refactor through test flag (#2563) 2024-06-11 10:35:06 -07:00
Patrick Hallisey 75b8ec4272 Add support for a TypeSpec/sdk regeneration preview pipeline 2024-01-26 11:09:53 -08:00
Qiaoqiao Zhang b990ab9383
merge cadl integration branch into main (#1576)
* update gitignore

* Make @azure-tools/rlc-codegen hybrid module (#1472)

* Make @azure-tools/rlc-codegen hybrid module

* Fix in windows

* Add missing dependency

* Move common code gen parts to shared package (#1475)

* Move model to interfaces

* Transform paths

* Update Paths type

* Extract path transform in autorest.typescript

* Generate shortcut from paths

* Fix shourtcut method names

* Generate shortcuts correctly

* Autorest parts

* Fix names

* Fix names try 2

* Unguard interface name

* missing file

* Fix buggy x-ms-paths

* Remove global paths

* Init models

* Refactor model generation in rlc (#1473)

* refactor-model-generation-in-rlc

* rush build works

* make compiler happy

* get schema for type support initial version

* fix compiler in emitter

* generate models the same as autorest

* add transform from m4 to rlcmodel

* update

* refector autorest typescript part reserve work

* reserve work

* fix enum type transform

* reserve work

* reserve work

* fix object model name

* fix a few issues and fix polymorphism

* fix rlc-generate-swagger issues

* fix polyparent

* resolve minor issues and add cadl-output

* resolve minor issues and add license header

* Update changes

* Update confs

* Update schemas

* Pass smoke test

* Enable emitter logic

* Update buildResponseTypes.ts

* Fix `default` naming issue

* Update changes

* Update changes

* Update transformResponses.ts

* update changes

* Fix the core-client version

* add output type name for schema and use pet store

* Cadl integration sh v2 (#1495)

* Parameter refactoring (#1492)

* Autorest.typescript refactoring with RLC Models

* Add emitter logic

* Remove useless codes

* Update comments

* Refine docs

* Get complete types

* Refactoring response.ts file

* Update formats

* Update format

* Update format

* Handle types

* Remove single operation group logic

* Update config

* Update config

* Add license header

* Update rlc testing

* Refactor client factory for cadl support (#1494)

* refactor-client-factory-for-cadl-support

* tranform options

* tranform options

* generate client factory function file

* resolve ci failure

* fix the cadl  compiler and rest dependencies version

* fix issues

* fix api version issue

* Generate helper function isUnexpected.ts file and refactor autorest.typescript code (#1493)

* Autorest.typescript refactoring with RLC Models

* Add emitter logic

* Remove useless codes

* Update comments

* Refine docs

* Get complete types

* Refactoring response.ts file

* Update formats

* Update format

* Update format

* Handle types

* Remove single operation group logic

* Update config

* Update config

* Add license header

* Update rlc testing

* Update isUnexpected.ts file

* Fix version

* Fix the version

* Update license header

* Resolve conflicts

* Update changes

* Remove useless prettier

* Update debug

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>

* improve-client-definition-cadl-emitter (#1496)

* improve-client-definition-cadl-emitter

* resolve comments

* Generate index.ts file from CADL and refactor autorest.typescript (#1497)

* Refactoring to RLCModel

* Emit index.ts file

* Update file

* Fix ci failure

* try-add-cadl-compile-in-ci (#1499)

* try-add-cadl-compile-in-ci

* try to make ci work

* resolve ci yaml file issues

* try fix ci

* resolve ci failure

* Generate metadata from CADL and refactor autorest.typescript (#1500)

* Update package.json emitter

* Remove useless code

* Fix the broken urls

* Update rollup.config.js file

* Update hlc code

* Update hlc rollup.config.js

* Update emitter for tsconfig.json and api-extractor.json

* Update cadl output

* Update license header

* Update description

* Update package.json

* Update package.json

* Update metadata in package.package.json

* Build generator helper function to make the generation simpler (#1503)

* Refactor the generator simpler

* Renaming

* Refactoring

* Update call signature

* Try upgrade cadl compiler lib version (#1505)

* try-upgrade-cadl-compiler-lib-version 0.34.0

* update petstore

* update serverinfo

* resolve issues in new compiler

* to resolve comments

* remove useless file

* Rlc codegen refactoring (#1506)

* try-upgrade-cadl-compiler-lib-version 0.34.0

* update petstore

* update serverinfo

* resolve issues in new compiler

* Refactor names and files

* Update path issue

Co-authored-by: qiaozha <qiaozha@microsoft.com>

* Use confidential ledger as test case (#1508)

* try-upgrade-cadl-compiler-lib-version 0.34.0

* update petstore

* update serverinfo

* resolve issues in new compiler

* use-confidential-ledger-as-test-case

* update gitignore

* try-resolve-ci-failure

* Enable cadl ranch (#1509)

* try-upgrade-cadl-compiler-lib-version 0.34.0

* update petstore

* update serverinfo

* resolve issues in new compiler

* Refactor names and files

* use-confidential-ledger-as-test-case

* Update path issue

* update gitignore

* Update command

* Update ranch file

* Update files

* update

* update commands

* Update changes

* Update test name

* Update models

* Update all generated cadls

* Update files

* Update files

* Update files

* Update pnpm-lock.yaml

* Update test

* Update changes

* update typescript.json

* Update changes

Co-authored-by: qiaozha <qiaozha@microsoft.com>

* use auth in cadl (#1512)

* use auth in cadl

* resolve comments

* fix-model-generation-failure-in-cadl-ranch (#1514)

* fix-model-generation-failure-in-cadl-ranch

* fix polymorphism

* fix ci failure

* update api-extractor result

* add test for extensible enum

* fix options optional

* Add ranch test for dpgcustomization (#1519)

* Generated files

* update case

* Update dpgCustomization testcases

* Update cases

* Update files

* Remove un-ready cases

* Use authoring as cadl test (#1520)

* use authoring as cadl test and fix some issues

* getEffectiveModelType

* fix cadl generation failure

* fix duplicate schema

* use route.container.name as group name

* resolve ci issues

* try add smoke-test

* enable smoke-test

* fix dictionary type in cadl emitter (#1528)

* fix dictionary type in cadl emitter

* fix output type name for dictionary

* enable-playfab in cadl test (#1523)

* enable-playfab in cadl test

* add api extractor result

* Enable unit test for every single file (#1526)

* Generated files

* update case

* Update dpgCustomization testcases

* Update cases

* Update files

* Remove un-ready cases

* Update config

* Update testing

* Update generated code

* Update code

* Update doc cases

* Fix doc missing generation issue in models and outputModels (#1530)

* fix-doc-missing-generation-issue

* fix property description

* fix ci issues

* Add docs test and fix docs missing for parameters.ts (#1531)

* Update case name

* Update config

* Update test cases

* Update tests

* Update changes

* Fix model type unit test (#1532)

* fix-model-type-unit-test

* unit test

* remove debug info

* fix polymorphism alias

* add test case for array and record modesl

* change descriptions

* Upgrade cadl ranch to the latest (#1533)

* Update case name

* Update config

* Update test cases

* Update tests

* Update changes

* Update test cases

* Upgrade cadl-ranch

* Update dpgCustomization.spec.ts

* Update changes

* Update cadl-ranch

* Update cadl ranch files

* update smoke testing

* Update test cases

* fix-missing-body-param-and-doc (#1540)

* fix-missing-body-param-and-doc

* fix description

* update test cases

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>

* Fix reponses docs issue (#1541)

* Fix reponses docs issue

* update test cases

* Filter out api version in parameter (#1542)

* fix api-version

* fix

* update files

* Update optional condition

* update files

* update conditions

* remove-caculatable-options-in-typescript.json (#1543)

* remove-caculatable-options-in-typescript.json

* fix hello world name

* Fix body require issue (#1545)

* update files

* update files

* update files

* update changes

* Update page & lro refactoring (#1549)

* Add possible values into doc for extensible enum (#1552)

* Add exensible enum into doc

* Fix the extensible enum issue

* update changes

* Support bytes type in responses.ts and parameters.ts (#1551)

* Support bytes type in responses.ts

* update parameters.ts

* update yaml files

* update comments

* Update status code

* Update autorest bytearray to Uint8Array

* Revert change

* Update changes

* Merge conflicts

* Update data

* update styles

* Update image version

* ci update

* update ci

* update

* Enable the override title feature

* update title

* update-cadl-compiler-and-cadl-rest-version-to-sept-release (#1560)

* update-cadl-compiler-and-cadl-rest-version-to-sept-release

* add test for property optional

* try-resolve-peer-missing-issue (#1562)

* try-resolve-peer-missing-issue

* resolve issues

* Fix binary bugfix (#1564)

* update services

* update versions

* enable pollfills in browser

* update dependency

* support multiple parameters in url (#1563)

* support multiple parameters in url

* add doc for client factory

* add integration test for multiple url parameters

* change uri to url and fix test for doc

* Paging & LRO helper support in cadl emitter (#1550)

* Update page & lro refactoring

* update annotations

* update local

* Resolve conflicts

* update comment

* fix the issue

* bugfixes

* update changes

* update dependency

* update

* fix issues

* update changes

* update lro support

* update comments

* update saving

* update namings

* Update transfromRLCOptions.ts

* Update transfromRLCOptions.ts

* Add path parameter at operation level in test case (#1567)

* udpate swagger

* fix method-level path parameter issue

* update files

* update change

* Add test coverage (#1570)

* update changes

* update changes

* update ci

* update ci

* updated

* update ci condition

* fix-broken-links-in-docs-readme (#1575)

* Upgrade cadl ranch latest (#1578)

* update changes

* update changes

* update ci

* update ci

* updated

* update cadl examples

* update files

* update optional property test cases

* update changes

* update test cases

* update test coverage

* update cadl ranch version

* update testing

* update test cases

* update namings

* update

* update files

* update ci

* update files

* update files

* fix-dictionary-body-type-issue

* fix-dictionary-body-type-issue

Co-authored-by: Qiaoqiao Zhang <qiaozha@microsoft.com>

* Fix model name in resource operation (#1571)

* fix model name in resource operation

* fix resource name

* fix duplicate output model

* fix list model name

* Fix isunexpted helper issue (#1585)

* fix isunexpected issue

* smoke test list

Co-authored-by: Jose Manuel Heredia Hidalgo <joheredi@microsoft.com>
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2022-09-27 11:15:38 -07:00
Qiaoqiao Zhang c4db1708b2
Try to make rush work (#1453)
* try to make rush work

* try to make rush work

* reserve work

* reserve work

* fix build error

* make the pack work

* add libraries for cadl poc

* fix rlc codegen

* try to make ci work

* resolve conflict

* resolve build error

* fix ci failure

* fix smoke-test

* add eng folder

* resolve comments
2022-07-26 11:43:31 +08:00
Wei Dong 6f286bda01
generate llc test framework (#1263)
* llc test

* remove unused files
2021-12-17 10:07:17 +08:00
Qiaoqiao Zhang 65c5aaa3ec
fix-issue-package.json-tsconfig (#1123)
* fix-issue-package.json-tsconfig

* add test

* update smoke test

* ignore dist-esm

* update smoke test
2021-07-29 10:05:31 -07:00
Jose Manuel Heredia Hidalgo 25af6ab416
Update Pipeline (#877)
* pack and publish artifacts

* test matrix

* git ignore .tgz

* fix indentation

* generate before switching node

* Fixes for Node8 support

* missing updates

* Improve console logging for generate Swaggers

* log version

* Use npx to call autorest

* npm install autorest -g

* try npx and corss-spawn

* cross spawn types

* update autorest

* cleanup

* disable windows run

* update target

* downlevelIterator

* update tsconfig

* remove duplicate input file

* regenerate test clients

* Split node and browser tests in CI

* fix ci format

* Use variables['TestType']

* Regenerate Smoke tests

* Test release stage

* 6.0.0-alpha.20003.1

* revert version

* revert version

* npm publish dryrun

* deployment

* Update job displayname

* self checkout

* depends on

* Use dummy value for npm token

* Update .npmrc generation

* remove dryrun from publish command

* Clean up

* Update variable

* Clean parameters

* change param reference

* fix parameter

* Simplify PublishAlpha condition

* fix indentation

* Fix condition

* Remove curly braces

* add missing collon

* Add additional timout to make sure macOs doesn't timeout

* Address comments

* Update pipelines

* Update pool

* Update vmImage

* Fix Indentation

* Fix JobName

* Reuse artifact

* Get variables

* Fix dependency

* Add verification job

* Fix Script

* Fix indentation

* Share variable between stages

* temporarly disable test

* fix artifact name

* add packages folder

* update pipeline

* log tree

* remove packages subdir

* Use Build.ArtifactStagingDirectory

* Fix directory

* Use Pipeline.Workspace

* log tree

* Use the right directory

* Enable releases

* update gh release

* Fix Build number

* only publish cc results on internal pipelines

* set npm token

* update eng folder

* make sure to delete npm token

* access level public

* access level

* update release

* use npm access

* access public
2021-03-04 23:12:14 -08:00
chradek 06a0a976bb use webpack instead of karma-typescript 2020-06-25 18:32:01 -07:00
chradek 6aef17a1c5 [v6] initial browser test ci support 2020-06-09 12:07:20 -07:00
Jose Manuel Heredia Hidalgo 0f55c220f3
[v6] Clone Specs repo (#638)
* add network swagger to list

* Clone specs repo during CI and target it for swaggers

* Clone on CI

* remove network to help review

* Selectively fetch branches and commits

* Add network swagger to smoke tests
2020-05-06 19:28:27 -07:00
Jose Manuel Heredia Hidalgo e9b38f0ad5
Client Operations (#554)
* Inline operations in client when there is only one OperationGroup

* Update git ignore

* Update generated test files

* Only inline topLevel operation groups

* Address PR comments

* Small fixes
2020-01-29 08:58:17 -08:00
David Wilson 04d2fd7101 Remove unneeded files from autorest.typescript v5 2019-12-12 15:33:33 -08:00
David Wilson 6a6a90f133 Use package-lock.json to ensure dependency versions on CI 2019-12-09 16:13:39 -08:00
Rikki Gibson 9b44d3c091
Package per api version (#319)
* Generate packages per API version

* Cleanup

* Update multi-api fixture

* Bring back generate-metadata check

* Only use multiapi name if multiapi flag is set

* Regen azuremetadata

* Fix some review feedback items

* lerna-ify multiapi fixture

* Fix mocha tests

* Add package-lock to make lerna happy in npm ci

* Generate version table in README

* Add more necessary package-lock.json files

* Regenerate README.md

* Fix bundlesize script
2018-10-02 11:01:47 -07:00
Rikki Gibson 4519cb471b
Multi api (#272)
* Update config file templates

* multi-api support

* Regenerate

* tsconfig tweaks

* Regenerate

* Ignore output definitions and definition map files

* Add multiapi test fixture

* regenerate

* Fix spacing in generated package file

* Regenerate
2018-09-06 12:29:31 -07:00
Rikki Gibson 6850a7c99c
Update metadata generation (#227)
* Update metadata generation

* Add metadata tests

* Fix mocha opts and add generated webpack configs
2018-07-26 12:42:44 -07:00
Rikki Gibson 73faea1f5e Ignore tsc build products 2018-05-23 13:54:04 -07:00
Garrett Serack 3a3defe49d Publish With Yarn 2017-09-22 17:03:10 -07:00
Johannes Bader b38e38a359 rel 2017-09-22 13:49:11 -07:00
Amar Zavery 9ab76f73b5 Initial commit 2017-08-30 19:54:51 -07:00
Microsoft GitHub User ca9849c35b Initial commit 2017-08-23 23:29:09 -07:00