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

2100 Коммитов

Автор SHA1 Сообщение Дата
David Wilson ad374b2ae5 Remove @doc string for Ok<T> 2021-02-04 16:12:01 -08:00
David Wilson 485c63c9e0 Add a standard Ok<T> type to rest.adl 2021-02-04 16:05:59 -08:00
David Wilson 3e5ff9af98 Add intrinsic null type, null unions, and emit x-nullable in OpenAPI 2021-02-04 15:16:17 -08:00
David Wilson 419ca7cb41 Add script and PR step to check sample output for regressions 2021-02-04 15:12:55 -08:00
David Wilson baab8f3d38 Merge pull request #273 from daviwil/parameterize-language
Add --language parameter for generate command
2021-02-02 15:56:15 -08:00
David Wilson 2f9ba63276 Remove hardcoded @autorest/core version (for now) 2021-02-02 11:02:54 -08:00
Nick Guerrera 0d626a9f6d Support arrays of arrays and parenthesized expressions (#272)
Also:
* Document template parameters in grammar
* Document empty statement in grammar
* Tighten MemberExpression (conservatively for now) to just apply to identifiers
* Use OrHigher convention in grammar and parser
2021-02-01 15:47:24 -08:00
David Wilson 3f53fd611e Update AutoRest version 2021-02-01 15:14:29 -08:00
David Wilson e01bd7b9be Add --language parameter for generate command 2021-02-01 15:14:29 -08:00
David Wilson bd988b2176 Merge pull request #269 from daviwil/add-primitives
Add byte and datetime primitives
2021-01-28 15:28:14 -08:00
David Wilson 6eb7e6d09c Merge pull request #270 from daviwil/add-rest-subpaths
Update rest and openapi libraries to support verb decorator subpaths
2021-01-28 15:27:56 -08:00
David Wilson c2bfc505bd Improve support for float and double types 2021-01-28 15:22:48 -08:00
David Wilson d11f7ed250 Update rest and openapi libraries to support verb decorator subpaths 2021-01-28 15:12:21 -08:00
David Wilson 8b75185f3b Add byte primitive type 2021-01-28 15:05:28 -08:00
David Wilson 992e18becb Add datetime primitive type 2021-01-28 14:22:21 -08:00
David Wilson 85a911b470 Prepare packages and changelogs for release 2021-01-28 13:30:15 -08:00
David Wilson 79ff089c32 Fix path resolution when loading decorator modules 2021-01-28 11:10:12 -08:00
David Wilson 6343970170 Bump ADL to 0.2.0 and establish changelog 2021-01-27 13:49:45 -08:00
David Wilson 6f3b1430cb Constrain the set of files included in npm releases 2021-01-25 14:40:29 -08:00
Nick Guerrera 6bbeb6949b Merge pull request #256 from nguerrera/grammar-cleanup
Remove some redundant language constructs
2021-01-25 14:13:23 -08:00
David Wilson 339269cb6a Require Node 14 for ECMAScript module support 2021-01-25 13:24:08 -08:00
Nick Guerrera a252cadc18 Remove square bracket alternate decorator syntax 2021-01-25 12:11:06 -08:00
Nick Guerrera a9e636432a Standardize on only double quotes for string literals 2021-01-25 12:05:32 -08:00
Nick Guerrera 74391e4540 Clean up numeric literal handling in scanner
* Document binary literals in grammar
* Remove tolerance of uppercase 0B, 0X, and E for exponent
* Remove tolerance of leading decimal point
2021-01-25 11:37:54 -08:00
Nick Guerrera 354592fbb2 Remove `alias` statement, prefer `model =` 2021-01-25 10:46:34 -08:00
David Wilson 7fafee3978 Pass through AutoRest exit code on code generation error 2021-01-22 16:38:07 -08:00
David Wilson ce89aa8880 Improve basic CLI output, add --version parameter 2021-01-22 16:26:19 -08:00
David Wilson dfdd101202 Move cli.ts to compiler/ to keep it out of stdlib folder 2021-01-22 16:26:19 -08:00
David Wilson f97bbffe71 Prepare @azure-tools/adl release automation and add README 2021-01-22 16:26:17 -08:00
David Wilson (AZURE SDK) ba9e579b11 Improve resolve of AutoRest dependency path 2021-01-22 16:25:43 -08:00
Nick Guerrera cd6d3c2015 Update grammar to reflect current state, use grammarkdown (#245)
Update language grammar to reflect current state of the language.

Grammarkdown is now used and run during the build. It will error
out if the grammar is invalid in ways such as a reference to
something that isn't defined.

Other minor changes:
* Fix up some VS Code build and launch settings
* Remove stale references to VS Code extension projections
2021-01-22 14:30:26 -08:00
David Wilson (AZURE SDK) 524e124c66 Add more generic @list decorator for pageable operations 2021-01-22 14:05:25 -08:00
David Wilson (AZURE SDK) 7b193321cf Install AutoRest as dependency and launch it from node_modules 2021-01-22 11:59:49 -08:00
David Wilson (AZURE SDK) 7a71fdc46f Launch AutoRest correctly on Windows 2021-01-22 11:54:27 -08:00
David Wilson (AZURE SDK) e5118270f2 Remove VisbilityLevels type union 2021-01-22 11:48:50 -08:00
David Wilson c4979e7d27 Add @visibility decorator 2021-01-21 07:14:18 -08:00
David Wilson dad53a5c05 Fix minor issues in CLI interface 2021-01-21 07:14:18 -08:00
David Wilson b04acc8a08 Add @secret decorator, minor cleanup 2021-01-21 06:42:46 -08:00
David Wilson 397e30c4bc Add 'generate' command for generating a client SDK from ADL 2021-01-20 16:28:57 -08:00
David Wilson 0431bd90d7 Add evalAdlScript API for full evaluation of virtual script files 2021-01-20 15:07:48 -08:00
David Wilson 8dc9aa22be Write out exception stack trace when --debug is passed 2021-01-20 14:25:31 -08:00
David Wilson 1e98dce0f9 Add ARM decorator library and ADL types 2021-01-20 11:26:48 -08:00
David Wilson c6a11b6f7c Correctly handle compile() as a promise 2021-01-14 16:17:55 -08:00
David Wilson 6e06caacd2 Enable @format, @minLength, @maxLength decorators; fix OpenAPI types 2021-01-14 16:17:10 -08:00
David Wilson 3035ec06fb Store the assignmentType when creating a ModelType from assignment 2021-01-14 16:13:21 -08:00
David Wilson 121f600f6e Add bug number for _delete issue 2021-01-14 09:17:06 -08:00
David Wilson 9da578a5d5 Add decorators for HTTP verbs (get, put, post, patch, delete) 2021-01-13 15:42:43 -08:00
David Wilson a179c95e13 Add basic ADL command line interface 2021-01-11 17:09:09 -08:00
David Wilson 7750bc98b7 Rename 'packages/language' to 'packages/adl' 2021-01-05 16:39:35 -08:00
David Wilson 23b5778230 Rename 'adl' folder to 'packages' 2021-01-05 16:39:00 -08:00