Timothee Guerin
b3ea529128
Format CSharp files: add `dotnet format` to `rush format` ( #490 )
2022-04-29 09:46:23 -07:00
Timothee Guerin
6504701fee
Feature: `--warn-as-error` flag to make all warnings be errors ( #488 )
2022-04-28 14:05:58 -07:00
Timothee Guerin
20b7e4a1e7
Bump ecmmarkup version to get rid of deprecated packages ( #487 )
2022-04-28 08:08:26 -07:00
Timothee Guerin
30b9b5cc1a
Refactor: rename `mixes` to `extends` for interfaces ( #484 )
2022-04-27 15:00:57 -07:00
Timothee Guerin
824e9f4666
Fix compiler dogfood on windows ( #480 )
2022-04-27 08:24:38 -07:00
Allen Zhang
467c2d4bce
adding fabricbot configuration ( #475 )
2022-04-26 10:22:18 -07:00
JianyeXi
8cff4dcf25
add sample for multiple types union ( #467 )
2022-04-26 10:05:07 +08:00
Nick Guerrera
47ffbe9d58
Color decorators differently than operations ( #477 )
2022-04-25 22:35:47 +00:00
Timothee Guerin
43b45ed6bf
Fix invalid @next links for non scoped packages ( #478 )
2022-04-25 15:23:09 -07:00
Timothee Guerin
ddcf3d0ebe
Fix: Spreading versioned models ( #441 )
2022-04-25 14:44:59 -07:00
Timothee Guerin
d1d8d827d4
Update readme with @next links ( #476 )
2022-04-25 11:58:52 -07:00
Nick Guerrera
ad191775f4
Fix build issues ( #474 )
...
1. Fix `rush dogfood`
2. Fix `watch-tmlanguage`
3. Fix regen-samples running in parallel
4. Be consistent about utf-8 with readFile(Sync)
2022-04-25 13:32:12 -05:00
Timothee Guerin
669f2c9ff8
Publish preview version of all packages with changes on every main commit ( #472 )
2022-04-25 10:19:02 -07:00
Timothee Guerin
b1622a316d
Add node 18 to CI ( #468 )
2022-04-21 22:53:23 +00:00
Timothee Guerin
898423ec25
Add PR number and update style if playground is buillt in PR ( #470 )
2022-04-21 13:55:44 -07:00
Nick Guerrera
dfb39368a4
Encode OpenAPI refs and remove concept of "ref-safe" names ( #463 )
...
* Correctly URI-encode OpenAPI refs when necessary. Delete broken code that
attempted to address this with name mangling.
* Remove all regexes from how we decide what to inline and what to ref, and
how to name things. The reasoning is now done on the type objects, and not
on their serialized names.
* The current choices are preserved modulo obvious bugs, but I will open an
issue to revisit some of them. It will be easier to change after this
refactoring.
* Centralize the logic in the shared openapi lib for reuse by cadl-autorest.
* Fix issues with the regex-based stripping of Cadl and service namespaces
by replacing that with a namespace filter callback on Checker.getTypeName.
* Defend against parameter key and type name collisions with diagnostics.
2022-04-21 14:38:47 -05:00
Timothee Guerin
d2fbbb717f
Use react for playground ( #457 )
2022-04-21 08:55:04 -07:00
Timothee Guerin
e966efd30e
New `@cadl-lang/internal-build-utils` package for build helpers shared across pkgs ( #465 )
2022-04-21 08:16:10 -07:00
Timothee Guerin
393dee19f1
Formatter: remove quotes of property names when not needed ( #460 )
2022-04-19 13:02:54 -07:00
Timothee Guerin
94cdeb9818
Fix issue with detecting existing comment for tryit url ( #458 )
2022-04-19 09:29:35 -07:00
Timothee Guerin
fea04034f2
Add docker build to pr validation ( #455 )
2022-04-18 16:47:49 -07:00
Timothee Guerin
7d092e6900
Include git during docker build phase ( #454 )
2022-04-18 21:09:58 +00:00
Timothee Guerin
7f0228656d
Fix Duplicate description in parameters ( #440 )
2022-04-18 13:40:54 -07:00
Nick Guerrera
a31c2ca4ab
Implement find references and rename, and improve goto definition ( #450 )
...
Add support for find all references and rename to the language server and
playground.
Make goto definition work on namespaces, usings, and decorators.
2022-04-18 15:08:01 -05:00
Timothee Guerin
a9691a599b
Add manifest generation and loading to compiler ( #443 )
2022-04-18 19:39:02 +00:00
Timothee Guerin
5fbc95273a
Provide a playground link for each PR ( #452 )
2022-04-18 12:26:25 -07:00
David Wilson
e142a50fee
Reorder tags and `x-*` extensions in emitted operations
2022-04-18 09:32:59 +03:00
David Wilson
403fb31cd4
Add OmitProperties type and @withoutOmittedProperties decorator
2022-04-14 20:50:05 +03:00
Timothee Guerin
8648514cee
Validate Rest resource interface `TError` is an error model ( #444 )
2022-04-14 10:02:44 -07:00
Timothee Guerin
dd405f9556
Add debug level logging for library imports ( #378 )
2022-04-13 09:07:17 -07:00
Timothee Guerin
2c033a2f35
Tweak versioning for linting ( #439 )
2022-04-13 08:06:43 -07:00
Timothee Guerin
dd09f01dc9
Add a code preview for diagnostics and coloring for diagnostics ( #436 )
2022-04-12 12:43:42 -07:00
Timothee Guerin
781aa0f601
Use direct typescript transpile with playwright now that node 14 is not needed ( #437 )
2022-04-11 14:16:04 -07:00
Timothee Guerin
19e203dcca
Add ability to ignore pattern when formatting ( #435 )
2022-04-11 20:29:06 +00:00
Timothee Guerin
57bb55be38
Missing formatter syntax ( #432 )
2022-04-11 20:02:56 +00:00
Timothee Guerin
f4a234e388
Fix: template args issues ( #430 )
2022-04-11 19:48:08 +00:00
Nick Guerrera
b4d8ef5a2b
Remove node 14 support ( #433 )
2022-04-11 14:30:22 -05:00
Timothee Guerin
46b4ced7ae
Update dependencies and regen thirdpartynotice ( #434 )
2022-04-11 15:56:39 +00:00
Timothee Guerin
3f36964323
Upgrade to typescript 4.6 ( #431 )
2022-04-11 07:59:45 -07:00
Timothee Guerin
39b5d0e5e2
Fix: Instantiated template types only used in `is` or `spread` shouldn't be included as derived types in OpenAPI3 ( #429 )
2022-04-08 12:51:16 -07:00
Nick Guerrera
b11ae0cfd2
Add VS Code command to restart language server ( #427 )
2022-04-08 17:30:07 +00:00
Timothee Guerin
6095a40107
Don't do default type checking when property type is errorType ( #426 )
2022-04-08 10:15:41 -07:00
Timothee Guerin
d517a53a76
Fix Empty operation response with children resulting in 204 ( #367 )
2022-04-08 16:46:44 +00:00
Timothee Guerin
e34fae3a3f
Fix issue with not excluding derived template models in OpenAPI3 emitter ( #425 )
2022-04-08 09:36:24 -07:00
Timothee Guerin
7313b6fe2e
Add children relationship in ModelType ( #415 )
2022-04-07 21:31:02 +00:00
Timothee Guerin
2d0ea12305
Add ability to self reference library in imports and emitters config ( #419 )
2022-04-07 12:44:35 -07:00
Timothee Guerin
1312ef7672
Basic E2E ui test for the playground ( #412 )
2022-04-06 14:19:26 -07:00
Timothee Guerin
b1ab16459e
Fix playground imports ( #410 )
2022-04-05 15:11:45 -07:00
Timothee Guerin
3049b77309
Add workaround for npx bug doubling `\` in command args ( #409 )
2022-04-05 20:57:30 +00:00
Timothee Guerin
5d225da253
Add duration built-in type to tutorial: ( #408 )
2022-04-05 19:19:06 +00:00