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

66 Коммитов

Автор SHA1 Сообщение Дата
Rodge Fu 63ffe68961
Inlcude csharp rename decorator when openai-to-typespec generating tsp (#4907)
Fixes https://github.com/Azure/autorest.csharp/issues/4236.
Generate csharp renaming decorator when openai-to-typespec generating
tsp. (include rename of resource, resource.property, model,
model.property, enum, enum.member and operation name)

related autorest.csharp change can be found at
https://github.com/Azure/autorest.csharp/pull/4380
2024-03-19 21:20:34 +08:00
Timothee Guerin 855cc2eb44
Setup tsconfig to enable global tsc watch (#4435) 2022-02-25 15:52:12 -08:00
Timothee Guerin 0e48c57326
Consolidate dependencies to have consistent version across packages (#3834) 2021-02-03 13:48:27 -08:00
Timothee Guerin 410d193ab7
Cleanup autorest cli and fix using core version from config file (#3749) 2020-12-17 11:37:48 -08:00
Timothee Guerin 334b242cb9
Fix regression introduce when not checking for x-ms-examples (#3748) 2020-12-17 08:27:01 -08:00
Timothee Guerin 04f604631a
Internal: Migrate tests to jest (#3737) 2020-12-15 10:47:59 -08:00
David Wilson 3781433124 Update @autorest/compare, add regression-compare.yaml configuration 2020-02-06 09:57:46 -08:00
Garrett Serack 905ab715af update .gitignore 2019-09-04 12:08:30 -07:00
Garrett Serack 630516ea22 cleanup files 2019-09-04 12:04:43 -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
Garrett Serack 2070a4832b prep for build (#2600) 2017-09-20 17:09:46 -07:00
Garrett Serack 66bd77b9c1 Static link (#2583)
* static-linking

* static linking version bunp

* tweaking startup

* in progress

* Loader Changes

* added missing files

* fixing prepare

* fixing package json
2017-09-14 17:16:58 -07:00
Johannes Bader 41c3ebf69e merge 2.0 into master (#2554)
* Update README.md

* remove -LEGACY (#2387)

* remove legacy entry point and CompSwaggerModeler

* regen

* deps

* Initial bootstrapper changes for 2.0 (#2400)

* moving files to be in better locations

* minor tweaks

* WIP

* wip

* wip

* removed async iterable

* added tslint config

* cleaned up help

* 2.0 (#2402)

* moving files to be in better locations

* minor tweaks

* WIP

* wip

* wip

* removed async iterable

* added tslint config

* cleaned up help

* installer testing

* fixed cmdline more

* 2.0 (#2404)

* moving files to be in better locations

* minor tweaks

* WIP

* wip

* wip

* removed async iterable

* added tslint config

* cleaned up help

* installer testing

* fixed cmdline more

* shouldn't have a bin setting for core

* making local install work

* fixing conflig

* lighter CodeModel (#2398)

* light

* fixed tests

* more cleanup

* regen

* more cleanup

* bump travis node

* fixed build script

* use-extension (#2405)

* use-extension

* dyn extension loading

* inst dir

* identity plugin

* new paths and stuff

* extract classic configurationm

* more ext

* minor improv

* fixed bootstrapper

* temp dependency change since I can't access the perks project

* stricter type checking

* cleanup (#2410)

* cleanup

* no merging, no file system abstraction

* less dependency injection

* regen

* smoothing stuff out (#2420)

* it happened

* doc sync

* shut up Travis

* better github URI conversion (fixes #2411)

* Removing CSharp validator  (#2406)

* stashing`

* stashing

* stash 2

* final touches

* stashing`

* stashing

* stash 2

* final touches

* use-extension

* dyn extension loading

* inst dir

* identity plugin

* new paths and stuff

* extract classic configurationm

* more ext

* minor improv

* fixed bootstrapper

* stashing for tests

* stashing again

* stashing stuff

* stashing for pipeline

* blah

* stashing`

* stashing

* stash 2

* final touches

* temp

* tstash

* all working

* cleanup

* more undoing

* working now

* removing docs

* undoing changes

* proper packages now

* Fixing CI

* upping version number

* final changes to be tested

* regen code

* tests passing

* Fixing preview version num

* another version

* publishing everything

* another version

* AutoRest Extension Documentation (#2441)

* extension docs

* point to implementations

* issue hunt (#2457)

* don't walk up folders by default

* added configuration output-artifact

* docs/samples

* fix

* auto-generated header

* fixed #2459

* simplifications and fix #2432

* fixes and improvements

* adjusted test cases to new directory structure and plugin extraction

* default header without version

* regen samples

* regen all

* updated Swagger extensions documentation with specs repo data

* x-ms-paths doc update (fixes #2440)

* nit

* complain about missing required props (fixes #2210)

* fix

* disable maps

* Fixes to extension installation (#2463)

* added locking into package mgmt

* added locking

* bumped version of extension

* Content-Type handling fix and update (#2465)

* test case

* fix

* test

* Update compiling-autorest.md (#2481)

Fix typo

* Update compiling-autorest.md (#2480)

Fix typo

* fix #2473 (#2483)

* clean up extra references (#2478)

* added locking into package mgmt

* added locking

* bumped version of extension

* cleaned up references

* fix build with long paths

* Update transform-designer-cs.proj

* added nuke option to gulp script

* updated package.json to latest perks

* update go version in travis

* disabled go tests that are not right

* updated readme

* renamed build.ps1

* trying to surf-build

* added build.cmd for surf

* fixing script

* docs: spelling fix + png instead of svg (#2491)

* Update AutoRest-fundamentals.md

* Add files via upload

* Delete pipeline.svg

* Update AutoRest-fundamentals.md

* example generation and other goodness (#2489)

* marshal log messages

* example gen (cs)

* improvements

* sample

* general improvements

* regen after message forwarding

* sample

* thanks ts hero

* iced

* cleanup

* shut C# up

* regen

* fix

* Update regeneration.iced (#2494)

* GitHub auth (#2487)

* auth-token forwarding (already enables using autorest on Swaggers with ext. references)

* more test

* OAuth

* OAuth param

* test

* rethink: FS

* simpl

* fini

* docs

* Fixes to the markdown generator as requested by the doc team. (#2455)

Strip out embedded new-line characters in descriptions.
Place child documents in nested directories and generate appropriate
inline links to them.
Remove the "null" text for empty resource arrays.

* Fix d.ts files for nodejs code gen (#2468)

* generator and tsconfig.json changes

* code generation changes

* apiVersion should not be allowed to set

* code changes for api-version

* regenerated samples

* Revert "regenerated samples"

This reverts commit 7f8973b0f4.

* regenerated

* Add support for autorest.home (#2498)

* added locking into package mgmt

* added locking

* bumped version of extension

* cleaned up references

* fix build with long paths

* Update transform-designer-cs.proj

* added nuke option to gulp script

* updated package.json to latest perks

* update go version in travis

* disabled go tests that are not right

* updated readme

* renamed build.ps1

* trying to surf-build

* added build.cmd for surf

* fixing script

* tweaking build cmd

* tweaking packaing

* do reset on regen

* fix unlink

* fix regeneration correctly

* it's building! it's testing! It's a freakin' miracle!

* make regenerate-samples work right

* regeneration fixes

* PHP (#2508)

* PHP

* Update YamlDotNet to 4.2.1

* PHP: 'file' type support

* AdditionalProperties for objects.

* PHP: Remove api-version from a file name.

* Generated file.

* CI probe (#2513)

CI probe (and disabling Go tests)

* PHP: Optional parameters. (#2510)

* data store simplification (#2495)

* unification of FS scopes

* write refactor

* consistency

* tests

* regen

* cleanup (#2506)

* less chatty

* fixable

* tests

* CodeModel.Name

* EnumType.SerializedName

* Method.SerializedName

* Property.Summary

* tests

* CompositeType.SerializedName

* MethodGroup.stuff

* PrimaryType.SerializedName

* IVariable.SerializedName

* regen

* regen

* fix php after rebase

* THAT global state

* oh dear, tests already relied on that bug

* fix php after rebase

* prevent over escaping

* fix cleaning tmp folder (#2516)

* testing (#2517)

* prob

* reenable

* debugging and reenabled tests

* launch config

* Debugging docs (#2518)

* docs

* test fix

* PHP: Swagger: schema information has to be in 'schema' property if 'in' property is 'body'. (#2514)

* Generate 'schema' property when In is 'body'.

* PHP: additionProperties => true

* PHP: additionalProperties bug fix.

* Report on output-folder issue (#2524)

* don't swallow exceptions happening after process

* regen

* Better commenting for addl params (#2521)

* Update transform-designer-cs.proj

* Update literate-configuration.md (#2512)

* Better commenting for addl params

* Addressed PR comments

* regen

* Unused files

* Code generation for application/x-www-form-urlencoded (#2527)

* Formdata option for form urlencoded

* regen

* unused

* unnecessaRY DIFF

* self-contained modeler (#2528)

* Defaulting collectionFormat for query params (#2530)

* Desugar `use` for pulling in extensions (#2541)

* no singleton

* desugar 'use'

* regen

* Extension and modeler fixes. (#2547)

* Extension and modeler fixes.

Generate parameter group postfix names according to the spec.
Preserve extensions when building header types.

* Correctly handle case when postfix value is null.

* split projects (#2552)

* fixes

* ...

* cleanup

* cleanup

* pin versions

* tests

* travis

* tests

* no classic generators in regen...

* event emitter

* regen

* linux ready and updated classic validator (#2555)

* linux ready

* bump

* ref fixed classic validator

* regen

* travis

* oav dummy

* stability

* regen

* docs

* cleanup gulp

* more docs

* more docs (mention dotnet 2.0 dependency and npm scripts)
2017-08-28 10:57:39 -07:00
Johannes Bader aa31974b6d level up (#2308)
* wip

* ai: expose start time

* interactive

* support index-based blaming

* x-ms-enum stuff

* dev dependency on autorest-interactive

* removed compare mode

* cleanup

* even more cleanup

* mor'a that cleanup

* fix CI

* doc update

* npm 5 ready

* flipped the FANCY switch

* unfix CI as real fix is in

* simpl

* UTF16le fix
2017-06-01 09:04:20 -07:00
Garrett Serack 17a80f79e6 Created packaging files for Nuget and Chocolatey (#2281)
* scripts for packaging a nuget package

* added chocolatey packaging

* Updated nuget package version to 1.0.1
2017-05-22 14:31:15 -07:00
Veronica Giaudrone e225e61e36 Adding documentation for BooleanPropertyNotRecommended rule (#2177) 2017-04-20 17:44:28 -07:00
Vishrut Shah 7382ecc42b Renaming XmsClientNameValidation to XmsClientNamePropertyValidation 2017-03-22 18:06:35 -07:00
Johannes Bader 131db8d61c TS things (#1894)
* adding language service client

* tweaking extension build

* md doc reference resolution

* better file loading error message

* updated bootstrapper too.

* strip BOM

* finished description resolution

* multisource support for source map

* wip

* updates for new extension work

* cleanups

* perfectionized blaming input files

* import cleanup and isolation

* first actual unit tests

* turned my funky test.ts entry point into regular unit test with local resources

* reorged some files

* adding vscode files

* in progress

* input source map support

* fixing build scripts

* got build/test runnign

* no write to FS in unit test

* added d.ts filter

* fix test runner

* updates to bootstrap

* fixed app.js loader from inside project

* updated timeout
2017-03-02 17:10:25 -08:00
Garrett Serack a88be19692 Build changes (#1856)
* updated build scripts

* moved next-gen projects up
2017-02-17 15:24:41 -08:00
Garrett Serack 5cce029452 Update entire build system to use Dotnet-CLI tools (-004812 or higher!) (#1827)
* CoreCLR is Dead. Long Live CoreCLR

* Adding new files for new build system

* pulled Johannes' last minute fix

* regenerated

* added dotnet-reset-cache

* updated install script
2017-02-14 13:28:57 -08:00
Deepak Shankargouda 71bd0b304c Generate Server side code from specs (#1697)
* Moved templates to separate dirs

* Added CodeGeneratorMode to settings

* minor change

* servers service template added

* server body try1

* generating controller per methodgroup

* service accepts returns models

* minor cleanup

* removing unused files

* Separated common templates

* fixed return types

* Iteration1

* removed unused

* undoing more changes

* Created Rest dir

* stash 1

* stash 2

* All working except compilation errors

* stash 2

* add ignoring

* stash 3

* stash 4

* undo 1

* undo 2

* regen code

* stash 4

* Added unit test for generated server code

* upgraded deps

* Fixed failing tests
2017-01-06 12:02:33 -08:00
Garrett Serack 3ff16a1ea6 Promote RefactorCodeModel to master (#1545)
* Refactor code model (#1444)

* CodeModel Refactoring - Moved/Renamed Files

* CodeModel Refactoring - Changes to AutoRest/AutoRest.Core

* CodeModel Refactoring - Core Tests changes

* CodeModel Refactoring - AutoRest.Extensions changes

* CodeModel Refactoring - AutoRest.Extensions Tests changes

* CodeModel Refactoring - Fix compiler warnign

* CodeModel Refactoring - CSharp Generator

* CodeModel Refactoring - CSharp Azure Generator

* CodeModel Refactoring - CSharp Tests Changes

* CodeModel Refactoring - NodeJS changes

* CodeModel Refactoring - NodeJS Azure changes

* CodeModel Refactoring - Modeler changes

* Fix/enable all tests

* Fix up c# unit tests

* small fixes in Moder

* Some last-minute tweaks to the generators to pass tests

* Changes to finish getting all the tests to run (in core)

* Extensions tests cleanup

* Resharper settings

* Tweaking the build to build and test ok via gulp

* accidentally overwrote fix for in memory assemblies

* Fixed glitch in builing

* Tweaking build for linux

* cleaning up small issues and removing superflous junk

* cleaned up stuff around nullability (and some other minor cleanups)

* cleaned up stuff around nullability (and some other minor cleanups) - c#

* Regenerated Tests Expected files

* small code cleanups

* Adding compare script to validate against rest-api-specs repo

* added report generation to compare script (requires Araxis Merge installed and configured)

* fixed use of clientproperty == null (should use !IsClientProperty)

* Introduced Plugin Model (refactored plugin classes) (#1509)

* Adding validation rules for subscriptionId/api-version params

* Introduced Plugin Model (refactored plugin classes)

* [Python] CloudError updates (#1510)

* Updated CloudError

* Added exception documentation

* Regenerated tests

* All tests working

* [Go] Paging tests and general paging fixes (#1489)

* Trying to delete duplication
* Graph doesn't duplicate odatanextlink
* OdataNextLink not duplicated and correctly named
* Not needed preparers for paged results are no longer included in models file. This also causes that if there is already a next method defined in swagger for that model (including generic next methods), autorest wont generate the specific next links.
* Added paging tests (except fragment link)
* Added fragment next link test
* Fixed code about preparer for pages types

* msrestazure 0.4.4 (#1514)

* Addressed PR comments

* Remove Python msrest/msrestazure from Autorest repo (#1518)

* Remove msrest from Autorest repo

* Remove Python msrest from gulpfile

* Remove hack in msrestazure to read ../msrest

* Update dependencies of Python msrestazure to get msrest from PyPI

* Adding mock in msrestazure tests

* Simplify tox config for msrestazure

* msrestazure 0.4.4 (#1514)

* Remove msrestazure Python

* Minor code cleanup

* Fixing json descriptions

* Add min length and max length support to schema generator (#1503)

* Add ServiceBus AzureResourceSchema acceptance test

* Add minLength and maxLength support to schema generator

* Fixing logic to add missing schema resources

* Add sql schema test (#1486)

* Add ServiceBus AzureResourceSchema acceptance test

* Add SQL schema test and fix NotificationHubs schema test

* Add service fabric schema tests (#1485)

* Add ServiceBus AzureResourceSchema acceptance test

* Add ServiceFabric schema test, fix NotificationHubs schema test

* Updates/cleanups to plugin model,core and node/c#

* small updates to modeler classes

* updated project.json files

* fixing tests

* fixed loader test

* Bumping version to fix nuget problem

* Updated AzureResourceGenerator to work in new code model

* Ruby Refactored To New Code Model (#1535)

* Ruby Refactored To New Code Model

* fixed small glitches in generator

* reverted incorrect fix

* checkpoint - work in progress

* checkpoint - work in progress #2

* checkpoint - work in progress #3

* stop generating tmp files

* Upcased Module name for enums

* Added ModuleName to EnumTypeRb

* Used Rb type EnumType in Plugin

* sigh

* Deleted missing paren

* Update CodeGeneratorRba.cs

* Update CodeGeneratorRb.cs

* merge from master and regenerate a couple files

* Update gulpfile.js

* Fixing property names with leading underscores (#1546)

Fixing property names with leading underscores

* Changes to the Python Code Generator for the Refactored Code Model  (#1539)

* Checkpoint - Merged RefactorCodeModel and NewPython branches

* Checkpoint - Merged RefactorCodeModel and NewPython branches

* Missed file

* Checkpoint - Python, tracking down last glitches (still have to fix the composite swagger merge problem)

* Checkpoint - Python cleaned up some more glitches

* Make sure that compositemodeler is using types from the model.

* Python Changes, reviewed by @anna and @lmazuel

* regenerated tests

* fixup node test failure after refactor

* fixed overzealous use of capital 'd' Decimal

* updated version to 1.0 ( still in preview)

* Temporarily removing Go, Java, Fluent projects from solution until stable in new model
2016-11-02 13:46:19 -07:00
Deepak Shankargouda c2dbc6254f Merge branch 'master' of https://github.com/Azure/autorest into bfork3 2016-10-21 14:28:28 -07:00
mcardosos 87cdf998dd [Go] Paging tests and general paging fixes (#1489)
* Trying to delete duplication
* Graph doesn't duplicate odatanextlink
* OdataNextLink not duplicated and correctly named
* Not needed preparers for paged results are no longer included in models file. This also causes that if there is already a next method defined in swagger for that model (including generic next methods), autorest wont generate the specific next links.
* Added paging tests (except fragment link)
* Added fragment next link test
* Fixed code about preparer for pages types
2016-10-17 17:17:33 -07:00
Deepak Shankargouda 3eddb3c692 Moving Clientruntimes out of autorest 2016-10-05 16:26:19 -07:00
Garrett Serack cdbf125192 Keeping generated files out of repository, added ignore (#1371) 2016-08-23 14:50:52 -07:00
Garima Khulbe 31c482a08c Adding Go language generator to AutoRest (#1336) 2016-08-18 11:33:33 -07:00
Vishrut Shah c6106a3cef Remove Gemfile.lock and adding it to .gitignore (#1257) 2016-07-13 11:51:11 -07:00
Garrett Serack 45ddc1a84c Re-organize entire code repo (#1220)
* moved Autorest core projects

* Moved CSharp generators

* Moved nodejs generator

* Moved python generator

* moved Ruby generator

* moved modelers

* moved testserver and client runtimes

* moved more client runtimes

* moved java generator and runtime (and python runtime)

* moved nuget package test

* Adjusting projects and namespaces -- AzureResourceSchema

* adjusted project/namespace name for AutoRest.CSharp.Azure

* updated names/namespaces for AutoRest*CSharp projects

* updates names/namespaces for extensions

* updated more projects and namespaces

* path fixes for a lot of stuff

* updated namespaces, paths, etc

* more updates to get closer to actually running

* fix up tests to run in new tree

* ensure that dotnet restore runs for whole project

* fixed typo

* made xprojs work on linux

* more fixes to xprojs

* Fixed NodeJS test project references

* removed superflous file references from njsproj files

* updated codegenerator

* fixed loading sln files

* fixed nuget files

* fixed bad paths

* fix - actually build package

* *sigh* ... restored disabled tests
2016-07-06 14:10:01 -07:00
Vishrut Shah 6b71ddaf37 Ruby - Move serialization/deserialization into clientruntime from sdk (#1106) 2016-06-15 17:42:43 -07:00
Thomas Bombach 55a3b8ea07 Adding dnx folders and files to gitignore since developers might still have them in their working copy after upgrading to CoreCLR RC2 2016-05-25 11:34:14 -07:00
Hovsep Mkrtchyan 72b915b722 Cleaning dnx from gitignore and tools 2016-05-23 11:28:07 -07:00
Jianghao Lu 8d37635ab1 Add gradle task to generate git revision 2016-03-03 15:19:56 -08:00
stankovski cb9f6f6763 Removed 7zip folder from repo 2016-02-22 15:26:24 -08:00
xingwu1 a6cc525302 Remove the extra line at end of file. 2016-01-22 15:06:31 -08:00
xingwu1 191e31b13f Update python generator based on feedback:
1. From yuguan's code review (move python ignore to python folder, update setting validation).
2. From Anna's suggestion (docstring change, operation name re-case)
3. Remvoe generated ruby test code.
4. Add new test case for stream upload
2016-01-07 14:56:22 -08:00
xingwu1 7993bfd52a Merge remote-tracking branch 'Azure/python' into python1 2016-01-07 14:17:50 -08:00
matthchr e2b67b7fff Add Tox support for Python
- Add gulp support too.
 - Add code coverage and flake8 coverage as well.
2015-12-28 16:01:51 -08:00
annatisch 3836c3db82 Improve python client runtime.
This is a combination of 5 commits.
Some tidy-ups based on tests

Made derserialization accommodate string types

Restructured project

improved streaming sample

Added package dependencies
2015-12-28 16:00:30 -08:00
annatisch 3aa5018b51 Init with new python client runtime.
This is a combination of 21 commits.
Removed @property functions for now

Added some serialization tests

Removed function double-up

Changes to manager structure

Ignoring env

Prototype of hook structure

Early auth signing

Basic logging configuration

response status handling

Moved url formatting

Required to support "action" parameters (i.e. value-less query strings)

Changes to request structure

Beginning structure of azure runtime + AAD

Paging concept and lazy list deserialization

polling concept

Revisions to Polled class

Added attribute validation to serialization

Updated pool request models

Separated response models

Basic Azure service client

Moved msrest and msrestazure into package directory

Making sample operations more generic
2015-12-28 15:54:46 -08:00
Hovsep Mkrtchyan a3fe6a7d72 removed launchSettings.json 2015-12-08 11:58:39 -08:00
stankovski c5754f2964 Merge branch 'dev' of https://github.com/Azure/AutoRest into clu 2015-12-03 13:47:19 -08:00
Jianghao Lu ed9e17d520 Java client runtime code check 2015-12-02 16:47:01 -08:00
stankovski 90c3b084cc Added 7zip and updated build.proj to sign nupkg packages 2015-11-19 12:24:34 -08:00
stankovski de53fbb4d0 Merge branch 'dev' of https://github.com/Azure/AutoRest into dnx
Conflicts:
	AutoRest/Generators/CSharp/CSharp.Tests/MirrorTests.cs
	ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime.Azure/project.lock.json
	ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/project.lock.json
2015-11-13 09:03:25 -08:00
Bret Johnson eece5c4681 Touched a file to restart the Travis CI build 2015-10-27 18:07:52 -04:00
Bret Johnson 405a0438c1 Switched Node.JS tests over to TypeScript. Essentially, they are the same tests as before except now strongly typed. 2015-10-27 17:36:25 -04:00
Matt Gibbs 994fd2835e ignore dnx installation 2015-09-10 13:29:28 -07:00
Jianghao Lu 76f1d416b4 Use Gradle for Java Client Runtime 2015-08-26 15:57:17 -07:00