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

2212 Коммитов

Автор SHA1 Сообщение Дата
Chenjie Shi 10d8e5b702
Xml support (#2806)
* wip

* wip

* wip

* finish first version

* changelog

* lint

* fix lint

* fix

* format

* black

* black

* fix

* fix mypy

* fix

* refine

* fix lint and pyright

* fix

* fix

* fix lint

* fix lint

* fix

* fix

* fix pyright

* regenerate

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2024-09-09 08:43:00 +00:00
Yuchao Yan 9600df105b
test case for etag (#2790)
* add test for etag

* format
2024-09-09 06:51:54 +00:00
Yuchao Yan 9cac616e35
Bump cadl ranch 0.37.1 (#2815)
* bump cadl-ranch 0.37.1

* for multipart HttpPart<{..}> case

* regenerate

* fix multipart case

* format

* changelog

* fix ci

* regenerate

* udpate testcase name
2024-09-09 12:45:26 +08:00
iscai-msft 1388db949e
Remove pylint disable serialization (#2814) 2024-09-05 18:09:35 +00:00
Yuchao Yan 43e3a4cddd
Snake case naming optimization (with vendor code from `@azure-tools/codegen`) (#2810)
* init

* debug for vitest

* fix

* regenerate

* fix test

* fix

* fix ci
2024-09-05 13:45:59 +08:00
Yuchao Yan 87c63eceae
fix sdk regeneration pipeline (#2811)
* fix sdk regenerate pipeline

* update cmd for tsp-client
2024-09-03 06:28:23 +00:00
Yuchao Yan aafe34e666
version (#2812) 2024-09-03 05:22:46 +00:00
dependabot[bot] 6bcd165707
pip prod(deps): bump pylint from 3.2.6 to 3.2.7 in /eng (#2807)
Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.2.6 to 3.2.7.
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](https://github.com/pylint-dev/pylint/compare/v3.2.6...v3.2.7)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 02:12:50 +00:00
dependabot[bot] 35e4b97cb5
pip prod(deps): bump pyright from 1.1.377 to 1.1.378 in /eng (#2809)
Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.377 to 1.1.378.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](https://github.com/RobertCraigie/pyright-python/compare/v1.1.377...v1.1.378)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 09:35:02 +08:00
Yuchao Yan 8ad67547d2
Add `x-ms-original-file` in generated sample to declare original sample file of typespec (#2805)
* original file in sample

* changelog

* fix for ci
2024-09-02 07:10:40 +00:00
Chenjie Shi 3856eb4239
support query `explode` and path `allowReserved` (#2775)
* support query `explode` and path `allowReserved`

* update example related change

* support new spread logic change

* changelog

* format and lint
2024-08-30 10:03:15 +08:00
Yuchao Yan da6845c0a5
Fix regenerate.ts for nightly build pipeline (#2803)
* fix

* fix regenerate

* changelog
2024-08-29 15:30:29 +08:00
Yuchao Yan c04063a7f0
Support encode int as string (#2771)
* code

* changelog

* review

* add test

* review

* fix ci

* fix ci

* remove outdated folder

* fix ci

* fix ci

* review
2024-08-29 08:45:28 +08:00
dependabot[bot] 708bcb1d7e
pip dev(deps-dev): bump setuptools from 70.0.0 to 73.0.1 in /eng (#2796) 2024-08-26 11:05:16 -04:00
dependabot[bot] 1d736840b1
pip dev(deps-dev): bump setuptools from 69.2.0 to 70.0.0 in /eng (#2791) 2024-08-23 17:22:00 +00:00
Yuchao Yan ea334bcda7
fix nightly to skip deprecation warnings (#2794)
* fix nightly build

* fix

* fix

* changelog

* fix

* fix

* fix nightly build

* fix nightly build

* fix nightly build
2024-08-23 15:59:14 +08:00
Yuchao Yan 5b051fcb66
fix (#2793) 2024-08-23 02:52:32 +00:00
dependabot[bot] 61f952e296
pip prod(deps): bump pyright from 1.1.375 to 1.1.377 in /eng (#2792)
Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.375 to 1.1.377.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](https://github.com/RobertCraigie/pyright-python/compare/v1.1.375...v1.1.377)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-23 09:33:55 +08:00
Yuchao Yan 3ab2a26535
Fix ci (#2785) 2024-08-22 22:27:51 +00:00
Yalin Li 414977934f
Remove subprocess in typespec-python (#2780) 2024-08-21 13:03:13 -07:00
Yuchao Yan 57074313a0
bump version (#2786) 2024-08-21 11:22:04 +08:00
Yuchao Yan 8ac5289536
Advanced multipart implementation (#2740) 2024-08-20 10:27:08 -04:00
Yuchao Yan a0e2e0d9e7
Fix sample generation for keyword-only parameters (#2784)
* fix sample generation

* changelog
2024-08-20 05:58:51 +00:00
Yuchao Yan b9b5b63625
fix ci (#2781) 2024-08-19 12:56:11 +08:00
iscai-msft b973ebbb67
use npm to run tests in ci (#2779) 2024-08-16 17:37:59 +00:00
iscai-msft 0f6e720a09
clean up reqs, use ts to run scripts (#2777) 2024-08-15 14:26:47 -04:00
dependabot[bot] b85af4cdde
pip prod(deps): bump tox from 4.16.0 to 4.18.0 in /eng (#2778) 2024-08-15 13:31:10 -04:00
dependabot[bot] 29c9fa1c85
pip dev(deps-dev): bump debugpy from 1.8.2 to 1.8.5 in /eng (#2748) 2024-08-15 16:27:07 +00:00
Yuchao Yan 6a25cc384c
Remove sample from docstring (#2774) 2024-08-15 11:17:51 -04:00
ChenxiJiang333 f365c4b4f3
add testcases (#2772)
* add testcases

* add-testcases

* fix testcase

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2024-08-15 12:40:11 +08:00
iscai-msft ff216cbda2
Update 59 1 (#2773) 2024-08-14 22:14:10 +00:00
Yuchao Yan 61f3f5a778
Fix to get right response and exception (#2756) 2024-08-14 13:36:24 -04:00
Yuchao Yan 755dc365a1
Fix crash when paging operation return type has parent type (#2766)
* fix paging

* changelog
2024-08-14 02:17:24 +00:00
Yuchao Yan e8f0113d0a
add arm test (#2768) 2024-08-14 09:39:51 +08:00
dependabot[bot] db79454592
pip prod(deps): bump pyright from 1.1.373 to 1.1.375 in /eng (#2757)
Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.373 to 1.1.375.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](https://github.com/RobertCraigie/pyright-python/compare/v1.1.373...v1.1.375)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2024-08-13 08:41:30 +00:00
Yuchao Yan cb3b2f681b
Bump cadl-ranch 0.35.3 (#2763)
* bump cadl-ranch

* regenerate

* fix azure test

* fix azure test

* fix test

* changelog

* fix ci

* fix ci

* fix ci

* fix import for model

* fix import for model
2024-08-13 12:38:50 +08:00
Chenjie Shi 2575db7726
[perf] optimize performance of dpg model (#2750)
* refine dpg model logic

* changelog

* review update

* mypy

* update comment

* refine logic
2024-08-13 10:13:41 +08:00
ChenxiJiang333 2b7a89a184
Add testcases for several cadl-ranch scenarios (#2760)
* add testcases

* fix-format

* fix-testcase

* fix-testcase
2024-08-12 15:50:05 +08:00
Yuchao Yan 3abda09a67
changelog (#2762) 2024-08-12 03:16:30 +00:00
Yuchao Yan 8871e4629a
Revert client signature `endpoint` to `base_url` to avoid breaking for Mgmt SDK (#2758) 2024-08-09 12:09:44 -04:00
Yuchao Yan 0cdb8cfe99
Fix sample generation for lro and paging operation (#2759)
* fix sample generation for lro and paging operation

* changelog
2024-08-09 05:57:58 +00:00
dependabot[bot] 9975e203c8
pip dev(deps-dev): bump coverage from 7.6.0 to 7.6.1 in /eng (#2745)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.6.0 to 7.6.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.6.0...7.6.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: iscai-msft <43154838+iscai-msft@users.noreply.github.com>
2024-08-09 01:28:48 +00:00
iscai-msft 22ba2baaac
handle union endpoints (#2753) 2024-08-08 20:46:15 +00:00
Yuchao Yan f66b28842f
delete output folder of generated code for test before regenerate (#2749)
* fix regenerate

* changelog

* fix regenerate

* update shell script for ci

* update

* remove sphere

* fix regenerate

* fix

* fix ci.yaml

* fix ci
2024-08-07 05:36:17 +00:00
iscai-msft bca7bc43f4
switch to using `npm run regenerate` (#2747)
* add pyodide

* can iterate over subdirectories

* add script for regenerating

* temp

* just missing typetest in package name

* regenerating

* regenerate

* update pipeline to use npm run regenerate for typespec-python

* format and fix deps

* remove tasks.py file, add contributing

* add changeset

* fix for --name and Windows env

* fix pipeline

* fix nightly.yaml

* fix ci.yaml

* fix doc

* update regenerate

* inv

* inv

* regenerate

* fix regenerate for unbranded

* remove outdated folder

* add examples-directory for regenerte

---------

Co-authored-by: iscai-msft <isabellavcai@gmail.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2024-08-06 10:04:46 +00:00
dependabot[bot] 1ebc2d3be9
pip dev(deps-dev): bump black from 24.4.2 to 24.8.0 in /eng (#2743)
Bumps [black](https://github.com/psf/black) from 24.4.2 to 24.8.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/24.4.2...24.8.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-06 10:18:19 +08:00
Wes Haggard 17a128b0e6
Remove testserver codecoverage publishing (#2738)
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2024-08-05 08:04:51 +00:00
Yuchao Yan 971b75fa0c
Support generate sample from typespec (#2731)
* support example

* update tasks.py

* inv

* changelog

* inv

* Update sample-tsp-2024-6-30-17-26-43.md
2024-08-05 15:24:30 +08:00
Yuchao Yan de215f0d71
bump version 0.27.1 (#2739)
* bump version

* bump version
2024-08-02 03:53:55 +00:00
Yuchao Yan 3b7247e607
Fix discriminator initialize (#2737)
* fix initialize for discriminator model

* changelog
2024-08-01 13:12:55 +08:00