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

1317 Коммитов

Автор SHA1 Сообщение Дата
Allen Zhang 3ed2004e0c
Fixing compliance issues (#1610)
* Fixing compliance issues

* Adding missing lib reference that new version shiki required

* update format and changelog

* revert vs2019 change as it will be deprecated
2023-01-31 11:30:00 -08:00
Nick Guerrera 26d44bf75b
Give KeysOf and ParentKeysOf friendly name to dedupe parameters (#1577) 2023-01-27 15:34:13 -06:00
Travis Prescott 68d84e1d38
Make @route and @autoRoute work together (#1576)
* Add tests.

* Allow overriding route on operations and interfaces.

* Fix #1335.

* Update docs.
2023-01-26 10:25:18 -08:00
Mike Kistler 2bebea06b0
Fix problems in creating decorators doc (#1584)
Co-authored-by: David Wilson <david@daviwil.com>
2023-01-26 09:06:27 -08:00
Travis Prescott 1efc314ef7
Documentation fixes (#1581)
* Fixes #1549.

* Fixes #1561.
2023-01-25 14:39:02 -08:00
Brian Terlson d3a2f46bf9
Add emitter framework (#1528) 2023-01-24 19:14:40 +00:00
Allen Zhang 2f6b5c64ce
Adding ref doc for cadl compiler (#1553)
* Adding refdoc for compiler

* Update to 'log' for CI pass
2023-01-24 17:04:28 +00:00
Nick Guerrera 2e54492c4a
Fix giving a default value to custom numeric scalar (#1573) 2023-01-24 15:44:36 +00:00
Allen Zhang 87d0666283
Update file reference in template from relative to absolute to support aka.ms redirect. (#1557)
* Revert "Moving azure-feed to Azure repo (#1539)". There is problem with private repo link with token. Moving back to public repo for now.

This reverts commit c6b5c4e926.

* Change relative to absolute reference to support aka.ms redirect

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>
2023-01-24 05:17:44 +00:00
Travis Prescott fdf675ed67
Allow operations parameters to target ModelProperty (#1569)
* Fix #1391.

* Add test.

* Add changelog
2023-01-23 22:17:32 +00:00
Travis Prescott 9e66107937
Remove deprecations (#1537)
* Remove deprecated compiler functions.

* Remove deprecated uri.

* Remove deprecated @serviceTitle, @serviceVersion, @consumes, @produces.

* Remove deprecated type aliases.

* Remove deprecated Map

* Remove `@segmentSeparator`

* Changelog entries.

* Fix issues in ARM

* Remove changelog for versioning.

* Code review feedback.
2023-01-19 13:08:13 -08:00
Travis Prescott e5957bf74f
Fix #1559. (#1562) 2023-01-19 19:03:29 +00:00
Travis Prescott 078a871588
Overhaul versioned dependency decorators. (#1519)
* @useDependency implementation.

* Progress.

* Add changelogs.

* Update docs and samples.

* Code review feedback.
2023-01-18 21:31:36 +00:00
Brian Terlson 8a0badcfe3
fix parsing of logical and in projections (#1555) 2023-01-18 07:57:26 -08:00
Allen Zhang 61d633b6ca
Revert "Moving azure-feed to Azure repo (#1539)". There is problem with private repo link with token. Moving back to public repo for now. (#1554)
This reverts commit c6b5c4e926.
2023-01-17 22:46:08 -08:00
David Wilson 341fc0e44d
Convert Ref objects to ref string in OpenAPI YAML output (#1552)
* Convert Ref objects to ref string in OpenAPI YAML output

* Update packages/openapi3/src/openapi.ts

Co-authored-by: Nick Guerrera <nicholg@microsoft.com>

* Update sample output

Co-authored-by: Nick Guerrera <nicholg@microsoft.com>
2023-01-17 18:27:12 +00:00
Travis Prescott 9443b7d0c0
Fix issue #1243. (#1540) 2023-01-17 17:45:50 +00:00
Allen Zhang c6b5c4e926
Moving azure-feed to Azure repo (#1539) 2023-01-15 11:11:56 -08:00
Mark Cowlishaw 67d72ee855
Updating static docs for January release (#1535) 2023-01-12 21:34:35 -08:00
Mark Cowlishaw 1a2cd1f43f
Publish January Release (#1532)
* Prepare cadl publish

* Adding release notes
2023-01-12 17:35:15 -08:00
Nick Guerrera be8702551e
Remove changelog for reverted change (#1531) 2023-01-12 23:54:11 +00:00
Allen Zhang c038eadf54
Removing Azure alias for cadl init. (#1530)
* Removing Azure alias for cadl init.

* Adding changelog

* Update common/changes/@cadl-lang/compiler/azhang_remove_azure_init_2023-01-12-23-05.json

Co-authored-by: Nick Guerrera <nicholg@microsoft.com>

Co-authored-by: Nick Guerrera <nicholg@microsoft.com>
2023-01-12 23:26:06 +00:00
Mark Cowlishaw 87ce5c8d2f
Add collectionFormat support to query and header decorator #1027 (#1527)
* update header/query/path decorator signatures

* update doc

* update parameter name

* update doc

* update decorator implementations

* explode form by default

* update test case

* fix test case

* rush change

* rush change

* fix bug

* default format for query

* fix test case

* optional options

* carry options in parameters

* emit encoding options

* fix decorators

* emit encoding format in openapi3

* fix bug

* default format

* update test case

* regen samples

* rush change

* Update common/changes/@cadl-lang/openapi3/fix-1027_2022-12-21-11-20.json

* regen docs

* fix spell

* escape pipe in markdown table

* regen docs

* regen samples

Co-authored-by: Lei Ni <leni@microsoft.com>
Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
2023-01-11 18:04:24 -08:00
Wei Dong 6f98970aff
fix sample (#1523)
Co-authored-by: Allen Zhang <allenzhang@live.com>
2023-01-11 18:37:11 +00:00
Lukasz Kokot 6bebda0304
Fix output dir spelling (#1526) 2023-01-11 10:09:54 -08:00
Allen Zhang 27ad454852
Update cadl init Azure template (#1515)
* initial template checkin

* Updating Azure DP cadl template

* Adding '/' to work for both local path and url path

* remove unused properties.

* CR Comments

* Adding 'azure' command line template url shortcut

* Updating template with sample cadl and examples

* Adding a flag to skip adding compiler package
2023-01-10 10:04:33 -08:00
Travis Prescott ec93225163
Versioning Enhance Test Suite Part 1 (#1444)
* Update tests.

* Add tests cases

* Add test cases.

* More tests and changelog.
2023-01-09 09:58:02 -08:00
Timothee Guerin e560bac82f
Specify dependency for order (#1514) 2023-01-06 14:52:35 -08:00
Timothee Guerin 431278a583
Feature: JS Api Docs (#1505) 2023-01-06 13:35:15 -08:00
Travis Prescott 6d87778187
Implementation of `@typeChangedFrom` decorator (#1408)
* Implementation of `@typeChangedFrom`.

* Add `@returnTypeChangedFrom` decorator and supporting methods.

* Ensure decorators only working on correct types.

* Code review feedback.
2023-01-06 19:21:29 +00:00
Travis Prescott 632efd6814
Fix validation on @madeOptional (#1510)
* Fies #1240.

* Code review feedback.
2023-01-06 18:51:19 +00:00
Timothee Guerin 246f44be3d
Fix playground not updating multi version output (#1512) 2023-01-06 18:12:10 +00:00
Timothee Guerin 3c208033fd
Refactor projections test to make sure we convert (#1509) 2023-01-05 14:53:41 -08:00
Nick Guerrera 5ee584b3cb
Only warn when an invalid identifier is used in a doc comment (#1507) 2023-01-05 16:33:08 +00:00
Brian Terlson ad05bca523
Implement maxValueExclusive and minValueExclusive (#1506) 2023-01-05 01:56:34 +00:00
Timothee Guerin 83d68748ea
Feature: Templated operations inside of interfaces (#1479) 2023-01-04 14:33:02 -08:00
Timothee Guerin 664fcee6b4
Fix: OpenAPI3 not creating different files for different versions (#1504) 2023-01-04 18:25:30 +00:00
Timothee Guerin 2ee8ea4d9d
Output yaml openapi (#1496) 2023-01-03 15:04:59 -08:00
Timothee Guerin ac5081b74d
Fix: Projecting model property with type referencing sibling (#1492) 2023-01-03 14:23:52 -08:00
Timothee Guerin f12746b9c0
Fix: Import completion (#1483) 2023-01-03 19:42:12 +00:00
Timothee Guerin e0e4394bb0
Versioned docs (Latest and Next) (#1469) 2023-01-03 19:02:22 +00:00
Timothee Guerin 3486c6f96a
Refactor: Completion logic (#1499) 2023-01-03 18:31:05 +00:00
Timothee Guerin 87c5d833de
Fix: `resolveUsage` shouldn't include model `extends` (#1485) 2023-01-03 18:04:53 +00:00
Timothee Guerin 61646b27bd
Update dependencies fixing vulnerabilities (#1486) 2023-01-03 17:25:31 +00:00
Timothee Guerin 0f16a6efb2
Playground Configurable links (#1493) 2023-01-03 16:56:57 +00:00
Timothee Guerin 074967d909
Playground: Emitter config selection and improve UI (#1498) 2023-01-03 16:34:50 +00:00
Timothee Guerin 80f4cbf4e7
Fix preview release (#1475) 2023-01-03 16:02:16 +00:00
Laurent Mazuel b4000cc911
Add client example in projection (#1489)
* Add client example in projection

* Update docs/standard-library/projected-names.md

Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>

* Format

Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
Co-authored-by: Cadl Eng Bot <microsoft@users.noreply.github.com>
Co-authored-by: David Wilson <david@daviwil.com>
2023-01-03 15:34:23 +00:00
Timothee Guerin 038623c9aa
Fix issues with playground to be able to output non json (#1495) 2023-01-03 17:07:03 +02:00
Timothee Guerin 75f10dca9a
Add more details to the type graph (#1494) 2022-12-29 23:22:14 +00:00