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

12 Коммитов

Автор SHA1 Сообщение Дата
Timothee Guerin c99e9354be
Add astro utils common private package to reuse for typespec-azure (#4944)
Move some of the custom pieces we had to use into a common package so we
can reuse them
2024-11-01 16:43:29 +00:00
Timothee Guerin b002ca480b
Migrate spec lib to spector (#4686)
Combine the spec-lib package into spector as this is a bit too much
extra packages
2024-10-14 21:26:59 +00:00
Timothee Guerin 3f7204c0a4
Rename spec-core to spector (#4683) 2024-10-11 00:08:52 +00:00
Timothee Guerin ac2de4bd1e
More fixes to http specs and add validation client vs server (#4580) 2024-09-30 22:49:01 +00:00
Timothee Guerin 6ac78f9232
Add missing using and remove unnecessary ones (#4575)
Co-authored-by: Sarangan Rajamanickam <sarajama@microsoft.com>
2024-09-30 19:18:09 +00:00
Timothee Guerin 3eed298346
Use reusable state accessor for compiler decorators (#4465)
Idea that could be expanded/exposed to other libraries in the future.

Define clearly how to access a certain state key.

Doing that now as for paging there is a lot of decorators that are added
and that will simplify.
2024-09-17 23:14:01 +00:00
Will Temple b5d766cd43
[http-server-javascript] Merge JavaScript Server Generator to Main (#3231)
This work-in-progress PR tracks merging the JavaScript server code
generator to the TypeSpec repository.

The JavaScript server code generator creates HTTP bindings for TypeSpec
HTTP services and exposes them for binding either to the Node.js http
server directly, or to an Express.js app as middleware.

Closes #3215

---------

Co-authored-by: Will Temple <will@wtemple.net>
2024-07-10 21:44:45 +00:00
Timothee Guerin 2ebacf5ff5
Organize and add test and documentation for printIdentifier helper (#3792)
This is something that is quite useful for any external tool that want
to write some typespec code(Openapi3 to tsp converter for example or api
view)

Edit: actually that was already exported as that exact name directly
from the formatter. This then just adds tests
2024-07-10 15:18:30 +00:00
Timothee Guerin e54a7f8fd0
TypeGraph Viewer V2 (#3713)
https://cadlplayground.z22.web.core.windows.net/prs/3713/
<img width="1155" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/6adfa086-fc97-4ab8-8557-a5e50a291a57">
2024-07-03 20:18:39 +00:00
Timothee Guerin 6b3bd9a8f1
Feature: Add Xml library (#3035)
Add xml library following the approved design.
fix #2970

Only minor change was inverting the parmaeters for `@ns(namespace,
prefix` instead of `@namespace(prefix, namespace)` which makes it
clearer with the other overload `@ns(namespace: EnumMember)`

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Brian Terlson <brian.terlson@microsoft.com>
2024-04-09 15:33:46 -07:00
Timothee Guerin a9696087af
Add monarch tokenizer as a dedicated package (#3079)
Package is private for now, this is just a way to maintain the tokenizer
on our side
2024-03-29 10:25:29 -07:00
Timothee Guerin 9c7bf80187
Migrate test framework to vitest (#2769)
Get rid of mocha and upgrade to vitest which is a more modern
alternative providing, watch, direct typescript compilation out of the
box, expect library and more.

Advantage over mocha:
- Much better cli
  -  watch mode
  - better diff
- Better extension:
  -  tree organization for files too (not everything flattened)
- update in real time the test(no more need to refresh manually to
discover where are the tests)
  - just a little buggy
- Compiles typescript directly
- provides more expectation apis(like jest)

Cons over mocha: 
- Slower(about 2x) but that means we don't need to build the test as
part of build which would speed up that part(not as much as is lost)

Todo: 
- typespec-azure migration
2024-01-02 11:40:29 -08:00