Timothee Guerin
5d057edf60
Fix old Azure/adl links ( #385 )
2022-03-31 08:26:21 -07:00
Timothee Guerin
bc34dadb16
Fix: Playground importing file not mocked ( #386 )
2022-03-30 15:52:04 -07:00
Timothee Guerin
d8b0250b28
Fix: resolve location of diagnostic target in js source file ( #383 )
2022-03-30 13:02:37 -07:00
Timothee Guerin
161e6a00e5
Add missing docs: prop defaults, template defaults, libraries getting started ( #376 )
2022-03-29 20:10:10 +00:00
Timothee Guerin
319d394b46
Fix formatting of comment between decorator and statement ( #374 )
2022-03-29 19:41:20 +00:00
Timothee Guerin
d4df855e3a
Add validation when using versioned library without @versionedDependency ( #372 )
2022-03-29 19:18:19 +00:00
Timothee Guerin
8dd3e026ec
Fix: Missing @key on resource create error instead of duplicate route ( #375 )
2022-03-29 11:19:52 -07:00
JianyeXi
5faea0d1ca
support format in bytes ( #365 )
...
* support format in bytes
* format
* changelog
2022-03-29 11:42:36 +08:00
Nick Guerrera
49bf4be36a
Add parent .model to ModelTypeProperty ( #371 )
2022-03-28 17:33:35 -05:00
Timothee Guerin
003854cf43
Fix eslint in vscode ( #369 )
2022-03-28 13:42:56 -07:00
Nick Guerrera
928be72ece
Customize VS output when language server activation fails ( #366 )
2022-03-28 17:55:37 +00:00
Nick Guerrera
f09618c859
Turn on promise linting and fix issues ( #362 )
2022-03-28 11:02:24 -05:00
Nick Guerrera
7a16d48d06
Scope unpublished packages ( #357 )
2022-03-25 15:51:16 +00:00
Nick Guerrera
63f879c27d
Fix null ref in VS extension activation ( #360 )
2022-03-25 15:40:56 +00:00
Timothee Guerin
17da8d1fc5
Cadl type to Json Data converter ( #292 )
2022-03-24 20:52:48 -07:00
Timothee Guerin
cada697bf4
Allow unversioned project to select a specific version of a versioned library ( #346 )
2022-03-24 18:04:36 -07:00
Timothee Guerin
3a96dddbd1
Fix various issues with template types with errors ( #341 )
2022-03-24 17:49:50 -07:00
Timothee Guerin
dbe2f8548b
Extract the response interpretation logic out of openapi3 emitter and into http library ( #355 )
2022-03-25 00:38:46 +00:00
Timothee Guerin
34eaea96bb
Add base discriminator property with doc ( #329 )
2022-03-24 17:28:25 -07:00
David Wilson
11c0010593
rest: Raise error when child resource duplicates a parent key name
2022-03-23 21:06:48 +02:00
Timothee Guerin
f5b6f86ef6
Add formatting button and shortcuts to playground ( #350 )
2022-03-22 15:09:13 -07:00
Jeff Fisher
99616f7d7e
[openapi3] Fix issue with enum values of `0` ( #351 )
...
* [openapi3] Fix issue with enum values of `0`.
Since `0` is falsy in JS, some checks we were doing for `undefined` were causing us to treat "Foo: 0" as if it were "Foo", resulting in errors when enums explicitly listed several enum values, including zero as the enum would no longer have members all of the same type.
* make rush happy
2022-03-22 08:23:06 -07:00
Timothee Guerin
cda2e6720d
Add automatic update of playground to CI ( #349 )
2022-03-21 17:38:59 -07:00
Brian Terlson
61454318f8
Implement multiple response content types ( #347 )
2022-03-21 22:53:50 +00:00
Timothee Guerin
e395050d83
Improve getting started docs ( #345 )
2022-03-21 12:48:20 -07:00
Timothee Guerin
326c7c7b9d
Add support for void in openapi3 emitter ( #336 )
2022-03-21 17:13:46 +00:00
Timothee Guerin
e79ae0be46
Fix VSCode extension ( #344 )
2022-03-18 17:11:12 -07:00
F. Hinkelmann
a14d13105e
Update Readme with main.cadl filename ( #339 )
2022-03-18 11:46:15 -07:00
Timothee Guerin
da7b77264d
Validate template params default use latter ( #295 )
2022-03-18 07:50:51 -07:00
Timothee Guerin
3fb3d8849e
Fix: Joining empty routes ( #334 )
2022-03-17 14:23:01 -07:00
Timothee Guerin
e2f82ec6a6
Don't create more diagnostics when error upstream ( #299 )
2022-03-17 11:03:18 -07:00
Timothee Guerin
fca60c3d25
Fix Prettier plugin invalid require ( #330 )
2022-03-16 15:05:32 -07:00
Timothee Guerin
dbd9a9117e
Allow template params to be intersected ( #327 )
2022-03-15 13:27:31 -07:00
Timothee Guerin
fed6fd75ed
Suppress directive token error ( #321 )
2022-03-14 13:55:54 -07:00
Brian Terlson
4bdf8938ca
Add a playground ( #302 )
2022-03-11 10:52:58 -08:00
Nick Guerrera
9013c3f2d4
Prepare cadl publish ( #309 )
2022-03-09 12:42:38 -06:00
Timothee Guerin
83bd63759c
Fix: Issue with generated `.d.ts` file being invalid with diagnostic types ( #305 )
2022-03-09 08:48:49 -08:00
Nick Guerrera
eedeaa92e0
Redirect console.* output in language server to stderr ( #300 )
...
Logging to stdout breaks LSP when the stdio pipe is used. The failure mode
when console.log is used unexpectedly is really bad and can take a very long
time to diagnose.
This change makes the language server use stderr for all console methods, so
now when decorators or emitters reach for console.log, they will just see
their output.
This change also restores inpsectType and inspectTypeName as decorators. I
think they never got the $ prefix, and I think this was unintentional. They
happen to serve as a good ad-hoc manual test that console.log now works as
we expect, which is why they are reinstated here.
In VS Code, the output to stderr from language server will show up in the
Cadl output pane.
However, in VS Classic, it currently goes to debugger log only. You have to
be attached to see it. It's possible to fix this, but we deleted a whole
bunch of code from the VS extension to stop making output pane messages
ourselves and I'd prefer not to reinstate it unless we decide we really need
it.
2022-03-08 14:05:10 -06:00
Nick Guerrera
ba33855bef
Emit child models to OpenAPI when parent is emitted ( #297 )
2022-03-08 16:54:03 +00:00
Timothee Guerin
aea92c72b1
Add `no-console` eslint rule ( #293 )
2022-03-08 08:32:49 -08:00
Timothee Guerin
8787c828f0
Export `NodeHost` in the compiler package. ( #296 )
2022-03-07 13:00:03 -08:00
Nick Guerrera
6037907313
Remove references to Azure/ARM/RPaaS from tests ( #290 )
2022-03-03 17:06:08 +00:00
Nick Guerrera
3691f113c9
Move @key decorator to core ( #289 )
2022-03-03 10:49:56 -06:00
Timothee Guerin
b565f73c03
Feature: `@knownValues` decorator ( #272 )
2022-03-02 12:40:33 -08:00
Timothee Guerin
74addeed2e
Fix issue with model is primitive and error for model extends ( #279 )
2022-03-01 08:03:36 -08:00
Nick Guerrera
a5221d5d13
Fix issue with missing namespace name in certain cases ( #285 )
2022-02-28 13:36:10 -06:00
Nick Guerrera
6595b501ce
Stop publishing .tsbuildinfo files ( #281 )
2022-02-24 16:00:03 -06:00
Timothee Guerin
bdf94fa238
Feature: OpenAPI External docs ( #276 )
2022-02-24 09:54:41 -08:00
Timothee Guerin
4342c3cc50
Service description in openapi3 spec ( #271 )
2022-02-24 01:24:18 +00:00
Nick Guerrera
5075120533
rush update --full ( #278 )
2022-02-23 18:38:23 +00:00