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

339 Коммитов

Автор SHA1 Сообщение Дата
Timothee Guerin 3cd141b908
Fix: Extension version fallback to github support for `~` and `^` (#4099)
* Fix github fallback package with range

* Wip

* Wip

* ./
2021-04-26 11:20:08 -07:00
Timothee Guerin 9bcc2afe11
Bump minimum node version from 10.12 -> 10.16 (#4092) 2021-04-21 13:12:59 -07:00
Timothee Guerin a74384077b
Feature: Define security in autorest (#4018) 2021-04-21 11:16:52 -07:00
Timothee Guerin 7701a4db4c
Feature: Any Object and Any distinction (#4067) 2021-04-21 11:16:04 -07:00
Timothee Guerin 01653d7c03
Interpolate generator with plugin name when using default license header (#4073) 2021-04-20 10:10:58 -07:00
Timothee Guerin 801c0576f0
Prechecker duplicate schema performance improvements x40 (#4080) 2021-04-20 10:10:51 -07:00
Timothee Guerin 923c76ce78
Feature: Add support for deprecation (#4033) 2021-04-20 10:10:18 -07:00
Timothee Guerin 3be2f5c113
Strict configuration validation (#4051) 2021-04-20 10:10:04 -07:00
Timothee Guerin e6ea5d3bc6
Merger performance improvements & json-pointer seperation (#4088) 2021-04-20 10:09:18 -07:00
Timothee Guerin 84c3ae94e4
Fix: allOf other enum without additional values (#4087) 2021-04-19 20:11:51 -07:00
Timothee Guerin 43e47aeacc
Fix ambiguous typo (#4085)
* Fix ambiguous typo

* Change
2021-04-19 09:40:54 -07:00
Timothee Guerin be10de32a3
Fix: args.test relability with ~ (#4083)
* fix test

* change
2021-04-19 09:09:15 -07:00
Timothee Guerin 238d84cff9
Update changelog and versions (#4050) 2021-04-12 10:18:50 -07:00
Timothee Guerin f70f3736be
SemanticValidator: Path param validation (#4049) 2021-04-09 12:48:56 -07:00
Timothee Guerin 3e39374c27
Fix: Loading twice readme.python.md (#4046) 2021-04-09 07:38:05 -07:00
Timothee Guerin a069364228
Fix api-version-mode not respected (#4041) 2021-04-08 11:16:20 -07:00
Timothee Guerin 9bfc576e5b
Feature: Semantic validator (#4044) 2021-04-08 11:16:03 -07:00
Timothee Guerin 1ecc7831f3
Refactor: Plugins structure (#4042) 2021-04-07 10:54:00 -07:00
Timothee Guerin e184942478
Feature: --stats to output some statistics about the input openapi specs (#4023) 2021-04-07 09:22:20 -07:00
Timothee Guerin 5f53a735c6
Re-enable sourcemap (#4025) 2021-04-05 11:32:50 -07:00
Timothee Guerin 3cec65c6fc
Make knownmediatype and mediaTypes to be optional in HttpOperation (#4034)
* Make knownmediatype and mediaTypes optional in HttpOperation as they might not be passed if ther eis no response body

* Optional
2021-04-05 10:38:45 -07:00
Timothee Guerin 9243ef7a44
Added a remove-parameter directive (#4035) 2021-04-05 09:49:27 -07:00
Timothee Guerin 9d4d168f57
Bump version and update changelogs for 2021-04-01 release (#4030) 2021-04-01 10:03:39 -07:00
Timothee Guerin b51094ea9d
Fix vulnerability incomplete url sanitization when adding github auth token (#4026) 2021-03-31 09:01:55 -07:00
Timothee Guerin efb25a0cfc
Refactor data-store and deprecate PascalCase methods (#4022) 2021-03-29 13:09:56 -07:00
Timothee Guerin e783f89846
Add log for actual error when resolving package version (#4016)
* Add log for actual error when resolving package version

* .
2021-03-25 11:15:17 -07:00
Timothee Guerin b8830b9756
Internal: Add eslint jest plugin and fix issues (#4008) 2021-03-24 12:49:07 -07:00
Timothee Guerin b2716dec3c
Cleanup use of node require (#4009) 2021-03-24 12:48:51 -07:00
Timothee Guerin a3b0f25d0d
Fix some unhandled promises (#4007) 2021-03-24 12:48:44 -07:00
Timothee Guerin 8719e30c32
Fix: Load default config in autorest cli to resolve core version (#4011) 2021-03-24 11:22:01 -07:00
Timothee Guerin c4c1cac561
Fix: OpenAPI3 Validation of additional properties support boolean (#4006)
* Fix: OpenAPI3 Validation of additional properties support boolean

* Patch
2021-03-23 13:06:09 -07:00
Timothee Guerin a3c85f5aec
Internal: Update autorest cli to stop shelling out to @autorest/core to load configuration and resolve required version (#3909) 2021-03-23 13:00:12 -07:00
Timothee Guerin 9bcc3ccc4d
Feature: OpenAPI3 Emitter (#3994) 2021-03-23 10:49:31 -07:00
Timothee Guerin 3700faf5bb
Group all binary body together (#4003)
* Group all binary body together

* .

* Added tests
2021-03-23 08:49:36 -07:00
Timothee Guerin 8c8841e637
Ability to log in libraries with @azure/logger (#4001) 2021-03-22 14:58:47 -07:00
Timothee Guerin 319e850e7b
Update @azure-tools/uri (#3998) 2021-03-22 08:33:46 -07:00
Timothee Guerin 075cad8190
Swagger to OpenAPI3 converter should handle refs in enum values (#3997) 2021-03-18 14:31:53 -07:00
Timothee Guerin 14e3bb4622
Bump versions and update changelog (#3987) 2021-03-16 10:21:46 -07:00
Andrii Kurdiumov 25cbf0fc97
Fix: Cannot read property 'pass-thru' of undefined crash (#3984)
* Fix for #3908

Validate that value is available before reading configuration.

Offending plugin in my case with `imodeler1`

* Add changes

* Fix build error

* Apply suggestions from code review

Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>

* Update pipeline.ts

Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
2021-03-16 08:49:02 -07:00
Timothee Guerin 5a47e7dbc2
Retry loading uri if it fails with a 5xx error code. (#3980)
* Log read file error

* Add changes

* Refactor

* Retries

* Retries

* update

* Wip

* Move chaching cache system to datastore

* Append

* Remove old test

* File not found

* Defined errors for fs

* Wip

* Bump @azure-tools/uri

* Real file sytem test

* Add remote calls tests

* Update changelog
2021-03-15 11:04:39 -07:00
Timothee Guerin 27c01f3d5e
Fix max call stack issue when using very large swager file (#3978)
* Fix max call stack issue

* Add changelog
2021-03-15 11:04:21 -07:00
Timothee Guerin 8a888df481
Feature: Support using `allOf` in enum to reference another enum (#3970)
* Support allOf in enums

* Add changelog

* Wip

* Enum deduplicate lint

* Wip

* Add datastore changelog

* Fixlint

* Wip

* Remove

* m4 test

* Simplify
2021-03-15 11:04:06 -07:00
Timothee Guerin bebc1b59eb
General package updates march 2021 (#3977)
* Update packages to latest valid semver

* Bump typescript and fix issues

* Add changes

* remove unused dependency
2021-03-12 09:18:56 -08:00
Timothee Guerin 9f1184cbbf
Feature: Respect OpenAPI3 discriminator mapping (#3958) 2021-03-09 14:21:00 -08:00
Timothee Guerin dbef39e9e8
Include single value enum optional parmeter in parameter grouping (#3872) 2021-03-08 15:00:53 -08:00
Timothee Guerin dcb1684cb2
Feature: Move schema validator to ajv and ajv-errors for custom messages (#3936) 2021-03-08 13:23:22 -08:00
Timothee Guerin 4246d1aba6
Fix using `--require` in the cli without main readme file would load those after autorest default config. (#3964) 2021-03-08 12:47:42 -08:00
Jose Manuel Heredia Hidalgo 823cb6396d
Set TS version to latest (#3959) 2021-03-07 14:32:53 -08:00
Timothee Guerin 000830cf9d
Bump version and update changelogs for March 5th 2021 release (#3955) 2021-03-05 12:02:06 -08:00
Timothee Guerin 8424207fab
Fix: handle extesnions under components(x- properties) (#3954) 2021-03-05 08:31:34 -08:00
Timothee Guerin 1449355c3f
Fix: Interpolating with value from the same block couldn't be overwritten (#3950) 2021-03-05 07:41:22 -08:00
Timothee Guerin e61eee0c3b
Feature: Support string format for server variables (#3952) 2021-03-04 16:54:29 -08:00
Timothee Guerin b9770b81f0
Revert preventing load of global yarnrc and use YARN_IGNORE_PATH instead to prevent another yarn version from being run (#3945)
* Revert not using global yarnrc and change to prevent yarn from loading alternate version

* Update
2021-03-04 07:50:43 -08:00
Timothee Guerin 1894588023
Fix: Load array configs in the order they are defined within the same file (#3940) 2021-03-03 10:10:59 -08:00
Timothee Guerin b4d71ebbaa
Run regression tests on multiple node versions(10, 12, 14) (#3943) 2021-03-03 08:57:58 -08:00
Wei Dong 581d91ee84
Change Trenton to Terraform (#3938) 2021-03-03 08:04:04 -08:00
Timothee Guerin 243482eb3a
Bump versions and update changelogs for March 1st release (#3934) 2021-03-01 14:37:00 -08:00
Timothee Guerin 8159680653
Reresolve all nested config for each extension to see if it needs any other extensions (#3912) 2021-02-26 09:32:24 -08:00
Timothee Guerin 69882f6ecd
Fix x-ms-header-collection-prefix injected dictionary not defined in the list of schemas (#3928) 2021-02-26 00:25:52 +00:00
Timothee Guerin 8ff9c08f3d
Fix: Prevent single-file yarn from loading user config and changing version (#3926) 2021-02-25 00:42:38 +00:00
Timothee Guerin e9ad2702e5
Rethink modifiers test not to depend on csharp plugin (#3931) 2021-02-24 16:03:50 -08:00
Timothee Guerin cf5dc83fe2
Handle using properties called $ref (#3922) 2021-02-23 17:51:56 -08:00
Timothee Guerin be96b27b6a
Fix: Don't automatically include Content-Type parameter if it is already defined in the spec as a parameter (#3916) 2021-02-23 17:51:43 -08:00
Timothee Guerin 31f2c328e3
Refactor all configuration loading into @autorest/configuration and redesign markdown loading order (#3893) 2021-02-22 14:24:21 -08:00
Timothee Guerin 1fbab0d879
Remove legacy cli functionality (#3906) 2021-02-22 10:10:22 -08:00
Timothee Guerin 8e42625fbe
Fix: Node 10 breaking with use of `flatMap` (#3902) 2021-02-22 09:05:35 -08:00
Timothee Guerin 55b4a199cb
Update changelog and version for release Feb 19 2021 (#3898) 2021-02-19 14:09:33 -08:00
Timothee Guerin 6bbb7f61c1
Components cleaner not removing external headers (#3886) 2021-02-19 13:34:10 -08:00
iscai-msft 08bb91a5fc
Change property redefinition error when changing type into a warning to allow polymorphism (#3837) 2021-02-19 13:32:28 -08:00
Timothee Guerin 2506722afd
Split params in forms as well (#3871) 2021-02-19 12:43:03 -08:00
Timothee Guerin 29ebdf88be
Revert special case for header-text (#3894) 2021-02-19 12:28:04 -08:00
Timothee Guerin 212e899803
Feature: Add support for extension to require system dependencies to be installed with a certain version (#3887) 2021-02-17 13:10:56 -08:00
Timothee Guerin f0e42c528c
Feature: Autorest cli migration to webpack (#3888) 2021-02-17 18:48:38 +00:00
Timothee Guerin 37b12c0093
@autorest/common package (#3879) 2021-02-12 14:09:58 -08:00
Timothee Guerin 222e3affda
Moving @azure-tools/extension from Azure/perks (#3877) 2021-02-11 16:05:04 -08:00
Timothee Guerin 2161d0cb67
Refactoring configuration loading and creation of new @autorest/configuration package (#3848) 2021-02-11 13:33:41 -08:00
Timothee Guerin 090986bd10
Bundle jsonpath with webpack (#3870) 2021-02-11 10:45:20 -08:00
Timothee Guerin f4add25f5f
Update changelog and package version for release (#3876) 2021-02-11 10:40:54 -08:00
Timothee Guerin 7812edb9b0
Fix CSharp plugin configuration and improve pipeline stage not found error (#3875) 2021-02-11 09:58:29 -08:00
Timothee Guerin 872fb3c417
Update @azure-tools/extensions which allows it to be bundled in webpack bundle (#3869) 2021-02-10 14:13:34 -08:00
Timothee Guerin 4b040b459f
Move @autorest/compare from Azure/autorest.compare (#3868) 2021-02-10 17:10:56 +00:00
Timothee Guerin a6dc644a98
Update for release Feb 9 2020 (#3865) 2021-02-09 21:18:19 -08:00
Timothee Guerin e7b4c7b8cd
Fix overridding config in subsequence yaml code block (#3860) 2021-02-09 21:14:02 +00:00
Timothee Guerin 06268dce07
Allow x-ms-client-default to be an array of primitive types (#3863) 2021-02-09 13:10:01 -08:00
Timothee Guerin 2ba7bd388a
Update packages and changelogs for releases (#3857) 2021-02-08 15:54:41 -08:00
Timothee Guerin 1cf9a6cd4a
Switch @autorest/core to use webpack (#3852) 2021-02-08 22:53:10 +00:00
Timothee Guerin 697c01c978
Update csharp plugin to default to --v3 (#3850) 2021-02-08 12:32:54 -08:00
Timothee Guerin 0cf023f198
Add a new field tracking if a parameter is for a multipart request (#3847) 2021-02-08 12:24:26 -08:00
Timothee Guerin 1bcc0c4b4b
Update changelog and package.json for publishing (#3844) 2021-02-04 15:58:42 -08:00
Timothee Guerin 5c3787538a
Fix publishing due to npm 7 bug (#3846) 2021-02-04 23:53:09 +00:00
Timothee Guerin 7647c172d2
Cleanup @azure-tools/openapi (#3843) 2021-02-04 11:02:44 -08:00
Timothee Guerin 9e7354c8f9
Move @azure-tools/openapi from Azure/perks (#3842) 2021-02-04 08:52:55 -08:00
Timothee Guerin f5e46ea011
Move @azure-tools/datastore from Azure/perks (#3841) 2021-02-04 00:21:15 +00:00
Timothee Guerin f6abd6a4ba
Move @azure-tools/deduplication package from Azure/perks (#3840)
* Move @azure-tools/deduplication

* Fix deduplication pacakge to work here

* Track changes
2021-02-03 23:08:58 +00:00
Timothee Guerin 5b4ec5131a
Add backlog of tests and create new @autorest/testing common test package (#3838) 2021-02-03 14:34:15 -08:00
Timothee Guerin 0e48c57326
Consolidate dependencies to have consistent version across packages (#3834) 2021-02-03 13:48:27 -08:00
Timothee Guerin 8c30392b63
Internal: Consolidate test frameworks (#3833) 2021-02-02 11:15:11 -08:00
Timothee Guerin 0d07611053
Reorganize all project files into src/ folder (#3829) 2021-02-02 09:35:05 -08:00
Timothee Guerin 7bd18a3917
Rename @azure-tools/autorest-extension-base dependency in m4 to new @autorest/extension-base pkg (#3828) 2021-02-02 08:50:21 -08:00
Timothee Guerin e765f8b131
Handle circular dependency in additionalProperties (#3819) 2021-02-01 14:20:23 -08:00
Timothee Guerin 8e30959144
Consolidate linting rules and fix issues (#3825) 2021-02-01 13:24:40 -08:00
Timothee Guerin 6d94c16792
Move @azure-tools/autorest-extension-base from Azure/perks and rename to @autorest/extension-base (#3822) 2021-01-29 23:46:06 +00:00
Timothee Guerin 50a75d2858
Move @azure-tools/codegen from Azure/perks (#3820) 2021-01-29 14:54:03 -08:00
Timothee Guerin 80d2db8a3d
Move @azure-tools/oai2-to-oai3 from Azure/perks (#3816) 2021-01-29 14:02:06 -08:00
Timothee Guerin 56fe0e8025
[Refactor] Cleanup code for running transform directives (#3796) 2021-01-28 17:50:14 -08:00
Timothee Guerin e6fb147ddc
Feature: Migrate modelerfour static-link -> webpack (#3815) 2021-01-28 17:31:31 -08:00
Timothee Guerin 17e93ae6ae
Provide a way to demo changes & Fix m4 published version (#3814) 2021-01-28 16:25:28 -08:00
Timothee Guerin 56f0efdde4
Missing npmrc publish (#3813) 2021-01-27 10:18:20 -08:00
Timothee Guerin ce174a583d
Fix forgot old @azure-tools/codemodel reference in static-link (#3811) 2021-01-26 23:58:34 +00:00
Timothee Guerin 29f916b9ab
Update m4 to use new @autorest/codemodel renamed package (#3808) 2021-01-26 15:06:07 -08:00
Timothee Guerin 3b80bf9506
Move @autorest/modelerfour package (#3806) 2021-01-25 15:55:42 -08:00
Timothee Guerin cecdbfbf64
Internal: Move Codemodel package from Azure/perks (#3804) 2021-01-25 12:05:34 -08:00
Timothee Guerin dd8aac388c
Feature: Make OpenAPI3 Validation error show as error and fail the pipeline (#3802) 2021-01-22 12:06:53 -08:00
Timothee Guerin 100c57b561
Uptake fixes in oai2 converter and deduplication (#3785) 2021-01-15 14:10:13 -08:00
Timothee Guerin 79439f1dfc
[Test Server V2] Add support for body deep equal matching (#3779) 2021-01-12 13:24:59 -08:00
Timothee Guerin 1af2b2745e
[Test Server V2] Add tests (#3774) 2021-01-12 10:15:40 -08:00
Timothee Guerin 7f0ce000e8
[md-mock-api] Feature: Add templating support for response. (#3770) 2021-01-11 14:00:06 -08:00
Timothee Guerin 382e80d348
Feature: New test server/api mock tool using markdown definitions (#3768) 2021-01-11 11:51:04 -08:00
Timothee Guerin af07a63de2
Update yaml-ast-parser and uptake fix in @azure-tools/datastore (#3741) 2020-12-16 11:13:37 -08:00
David Wilson e9bee3709d
Move AutoRest package folders under 'packages/' (#3740)
* Move 'autorest' folder to 'packages/apps/autorest'

* Move 'autorest-schemas' folder to 'packages/libs/autorest-schemas'

* Move 'core' folder to 'packages/extensions/core'

* Restrict the Rush project folder depth to 3

* Let Rush invoke unit tests for all projects

* Update .eslintrc.yaml files to use correct relative path

* Update regression testing configuration with new 'core' path

* Update the GitHub release publishing pipeline for the new paths
2020-12-16 07:36:57 -08:00
Timothee Guerin 04f604631a
Internal: Migrate tests to jest (#3737) 2020-12-15 10:47:59 -08:00
Timothee Guerin d5ad29e584
Fix: Update rush lock file. (#3731) 2020-12-14 09:52:31 -08:00
Timothee Guerin 6980e0e5fc
Fix: CI Tests (#3716)
* Try enabling ci tests again

* Run with verbose

* TRy excluding tests

* TRy excluding tests

* TRy excluding tests

* ALlow warnings in tests(stderr)
2020-12-02 11:32:33 -08:00
Timothee Guerin 81e4af4998 addedd better doc 2020-12-02 08:43:00 -08:00
Timothee Guerin 43fea261a0 Configure prettier
Fix prettier

Add lint

fix

wip

Show lint errors

Show lint errors

fix vscode config

Revert

Add prettier ignore

fix

fix

fix

fix
2020-12-01 16:20:56 -08:00
Timothee Guerin 974fb4436b Update rush and pnpm to support node 12 and 14 2020-12-01 12:59:15 -08:00
Garrett Serack 1625a951a5 updating build process 2019-09-06 11:04:21 -07:00
Garrett Serack 95fc125683 major cleanup 2019-09-05 16:11:28 -07:00
Garrett Serack 88fb6142af adding publishing script 2019-09-04 14:51:57 -07:00
Garrett Serack daba29e5d7 cleaning up linter errors and scripts 2019-09-04 14:39:58 -07:00
Garrett Serack 39717e1b2f updated rush added eslint 2019-09-04 12:56:17 -07:00
Garrett Serack 0e567d49da fix require when used from file without a use-extension 2019-09-03 14:48:41 -07:00
Garrett Serack 8a8b27d6e8 adding reset-version script for rush 2019-01-31 15:29:10 -08:00
Garrett Serack efea9751de fixing launcher 2019-01-29 10:31:46 -08:00
Garrett Serack c7986bc9ae publishing scripts changes 2019-01-29 08:57:17 -08:00
Garrett Serack 11efdeac97 changing Processor to Transformer refactor 2019-01-17 13:21:20 -08:00
Garrett Serack 99de869750 split configuration, added some minor fixes 2018-10-31 14:23:04 -07:00
Garrett Serack a8677dcef7 refactored for rush.js and perks 2018-10-24 11:23:43 -07:00
Garrett Serack aecc32448a added rush and perks 2018-10-19 13:14:07 -07:00