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
6d54aeb4aa
Do not crash if hitting a unsupported intrinsic type ( #3077 )
...
fix #3073
This still doesn't provide an optimal experience as the error shows up
on the void type instead of where it is referenced but solving that is
that long standing issue about tracing back where an error should be
2024-03-28 20:29:33 +00:00
Timothee Guerin
85fa7aecec
Union template declaration were being finished in projector ( #3052 )
...
fix [#2946 ](https://github.com/microsoft/typespec/issues/2946 )
Problem was that in the projector were were calling to this helper to
see if that was a type that we should finish but it was missing the
union case causing union template declaration from being finished in the
projector and then being shown as finished type in the semantic
navigator and crashing openapi3 emitter.
2024-03-28 20:08:30 +00:00
Timothee Guerin
e31309e5a7
Fix codefixes docs ( #3045 )
2024-03-28 19:41:27 +00:00
LadyCailin
4e1d30ddce
Update inconsistent docs ( #3072 )
...
`@server` works to provide values for the `servers` object, as is
documented elsewhere in the same files. This PR updates the table to
reflect that. Closes #3071 .
2024-03-28 13:50:21 +00:00
Timothee Guerin
ce9c567e5b
Improve TM language for enums, unions and escaped identifiers ( #3069 )
...
resolves https://github.com/microsoft/typespec/issues/3070
The tm language wasn't correctly defining the syntax for escaped
identifiers
```
`North West`
```
Enums and unions syntax was also not very accurate and didn't tokenize
everything correctly
## Example of issue before
![image](https://github.com/microsoft/typespec/assets/1031227/ee60f4fe-5eef-4f86-baa5-1cc96b665526 )
## After
![image](https://github.com/microsoft/typespec/assets/1031227/38405f18-0fa4-44ba-82f6-594bcd4fcebf )
2024-03-27 10:12:29 -07:00
Timothee Guerin
32e45d4da2
Add support for scalar in versioning ( #3053 )
...
fix [#3001 ](https://github.com/microsoft/typespec/issues/3001 )
2024-03-26 23:43:37 +00:00
Timothee Guerin
9b083d0180
Add issue templates ( #3054 )
...
Add issue templates with required input, recommending playground repro
for bugs
Github docs on those new issue templates form
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
<img width="1456" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/5ccbacab-01d9-45e6-b55f-2ac70582e0a8 ">
2024-03-26 11:52:53 -07:00
Timothee Guerin
4c34e78747
Fix visibility conflict with base models ( #3049 )
...
fix #2922
fix #3048(dup)
2024-03-25 18:56:55 +00:00
Timothee Guerin
095c7dd8d4
OpenAPI3: Fix multipart union part conflict ( #3050 )
...
Problem is that was now trying to create a new declaration for a named
union if it was used in multipart and json even though they were the
same
2024-03-25 18:13:26 +00:00
Jose Manuel Heredia Hidalgo
baac24ac00
Fix emitter docs code examples ( #3047 )
...
Fixing a couple of wrong, missing, and un-needed imports in the snippets
2024-03-22 22:59:31 +00:00
Timothee Guerin
39ee11bc46
Fix: OpenAPI3 not marking part of bytes or something else as `format: binary` ( #3013 )
...
fix [#2924 ](https://github.com/microsoft/typespec/issues/2924 )
---------
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-03-22 20:45:10 +00:00
Timothee Guerin
72bed4daf8
More reliable codefix application ( #3041 )
...
Current approach was getting in all kind of conflict because it was
calling getCodeActions too much and we were clearing the cached id
2024-03-22 17:44:47 +00:00
Timothee Guerin
4e6f137c65
Emit `{nulable: true}` when trying to emit `null` in openapi3 ( #2967 )
...
fix #2217
This isn't fully accurate as it is saying in openapi3 that it can be
anything and `null` but this solve a crash, we could consider adding a
warning
---------
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-03-22 16:53:54 +00:00
Timothee Guerin
8839ae173f
Fix policy include private package that doesn't get versioned ( #2990 )
2024-03-22 04:16:00 +00:00
Timothee Guerin
a8f849747c
Clarify multi json part docs ( #3014 )
...
fix [#2962 ](https://github.com/microsoft/typespec/issues/2962 )
2024-03-22 03:43:39 +00:00
Timothee Guerin
e0dfe6f5d0
Grammar: Fix comments in template params not tokenized ( #3018 )
...
fix #3017
---------
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-03-22 02:53:07 +00:00
Timothee Guerin
06f514dc92
Fix non portable export ( #3039 )
...
Not sure why only catching that in the typespec-azure repo build but it
complains that the return type of this function wasn't portable,
Probably good anyway to be more explicit here.
2024-03-22 01:55:12 +00:00
Timothee Guerin
8991a9cd48
Remove david from codeowners ( #3021 )
2024-03-22 01:21:29 +00:00
Timothee Guerin
68cd9fe906
Apply same fix to latest docs ( #3034 )
2024-03-20 15:20:08 +00:00
Timothee Guerin
077db13c8d
Generate TypeScript decorator signatures from `extern dec` ( #2122 )
...
Note this is added to `tspd` which is not published yet so this can be
iterated over without any issues.
Adds a decorator signature generator. Generates 2 files:
- `<namespace>.ts` : Contains the decorator signatures that can be
imported and when declaring the decorators functions
- `<namespace>.ts-test.ts`: Contains some test using typescript type
system to make sure the package does reexport the right `$<name>` for
each decorator
---------
Co-authored-by: Brian Terlson <brian.terlson@microsoft.com>
2024-03-19 23:08:59 +00:00
Timothee Guerin
c9e2f5887f
Fix cookies still saved ( #3030 )
2024-03-19 19:58:27 +00:00
Timothee Guerin
743c4b0a39
Fix another set of accessibility issues ( #3031 )
2024-03-19 18:57:02 +00:00
Timothee Guerin
d8e4e860e4
Fix cookies ( #3029 )
...
Version 4 doesn't seem to be respecting the config, there is also many
different configs which does who knows what...
2024-03-18 20:31:04 +00:00
Timothee Guerin
4199f83575
Upgrade dependencies march 2024 ( #3027 )
...
General update of all dependencies, notable
- typescript 5.4
- vitest 1.4
2024-03-18 10:52:06 -07:00
Timothee Guerin
814e518ac9
Accessibility contrast tweaks ( #3026 )
...
- Make the light code theme have accessible contrast.
- Docsearch placeholder contrast tweak
Also minor tweak to the prismjs tokenizer to fix optional property
highlighting
2024-03-18 16:23:00 +00:00
Peter Marcu
9e655a95f5
Fixing alt text on website ( #3025 )
...
This PR should make sure there is alt text matching the image name on
each of the image elements.
2024-03-18 07:54:57 -07:00
Alexander Batishchev
7b07bbf4c7
Added .NET 8 to PR pipeline ( #3023 )
...
Added .NET 8 alongside Node 20, but not Node 18
2024-03-15 17:38:40 +00:00
Timothee Guerin
6d42ca6e65
Deprecate projected name ( #2910 )
...
fix [#2832 ](https://github.com/microsoft/typespec/issues/2832 )
2024-03-13 12:48:07 -07:00
Timothee Guerin
00996bbe30
Don't prevent going to next stage when a warning is elevated to an error ( #2983 )
...
fix #2972
2024-03-12 22:14:42 +00:00
Timothee Guerin
128a508c25
Allow encode on a union ( #2992 )
...
fix [#2969 ](https://github.com/microsoft/typespec/issues/2969 )
2024-03-12 14:49:17 -07:00
Timothee Guerin
d8576effd5
Website & Docs Cleanup ( #3002 )
...
Co-authored-by: Mario Guerra <85648637+mario-guerra@users.noreply.github.com>
Co-authored-by: Libba Lawrence <llawrence@microsoft.com>
Co-authored-by: Allen Zhang <allenzhang@live.com>
Co-authored-by: Brian Terlson <brian.terlson@microsoft.com>
2024-03-11 18:56:35 -07:00
Timothee Guerin
57f0d47bef
Integrate 1ds telemetry in website ( #2912 )
2024-03-08 17:41:55 +00:00
Timothee Guerin
72fb582b3c
Add gif to vscode readme and rerelease ( #3003 )
2024-03-07 15:46:27 -08:00
Mario Guerra
c31aafa07f
grammar fixes ( #3000 )
...
First round of website grammar fixes.
2024-03-07 17:25:25 +00:00
Timothee Guerin
8980ec31d0
Fix dev version published as latest ( #2997 )
2024-03-06 23:07:51 +00:00
Timothee Guerin
6d5fb9c047
Bump chronus github with fix to not crash on existing release ( #2995 )
2024-03-06 19:48:53 +00:00
Timothee Guerin
7312314bcb
Remove old message burried in changelog ( #2989 )
2024-03-05 16:05:57 -08:00
Timothee Guerin
9881002f1c
Bump versions for release march 2024 ( #2988 )
2024-03-05 15:31:47 -08:00
iscai-msft
4cafd969de
Add json schema test library ( #2987 )
2024-03-05 22:14:58 +00:00
Timothee Guerin
d5380fb8e1
Add release notes for march 2024 release ( #2986 )
2024-03-05 13:36:38 -08:00
Timothee Guerin
cc0eafe3e5
Use chronus for publish and publish github releases ( #2985 )
2024-03-05 12:47:38 -08:00
Timothee Guerin
6a9c62ad24
Feature: Code fixes ( #2888 )
...
closes #615
## Code fixes added
### Suppress
![Kapture 2024-02-05 at 15 16
22](https://github.com/microsoft/typespec/assets/1031227/644014a3-9352-4bd4-b1b8-0d314c627405 )
### `number` -> `float64` typo fix
![Kapture 2024-02-06 at 09 50
28](https://github.com/microsoft/typespec/assets/1031227/65b2e9aa-c510-440f-a1c6-7851611b65a2 )
### Enum to extensible enum in typespec-azure
https://github.com/Azure/typespec-azure/pull/258
---------
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-03-05 11:51:21 -08:00
Timothee Guerin
abba29c173
Validate playground samples and fix docs to deprecated version ( #2977 )
...
fix #1560
Json schema emitter also didn't respect the `noEmit` flag
2024-03-04 23:35:17 +00:00
Timothee Guerin
de6bd7bc30
Go to import ( #2978 )
...
fix #1294
![Kapture 2024-03-01 at 14 41
07](https://github.com/microsoft/typespec/assets/1031227/8be68f83-4eca-421c-b6dd-27bc1eed141f )
2024-03-04 15:15:19 -08:00
Timothee Guerin
82fab0a5e6
Fix: Authentication on containing namespace ( #2980 )
...
fix #2979
Authentication wasn't resolving values set on the namespaces.
2024-03-04 10:55:35 -08:00
Timothee Guerin
01ba99b061
Fix dup doc ( #2976 )
...
Before
<img width="465" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/b620cac2-b70a-4a99-a784-bf03d55bd28b ">
Now
<img width="413" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/d2a0b293-7924-44e7-9e1c-036ff40f1b6d ">
2024-03-01 20:50:11 +00:00
Allen Zhang
cc1774fd6f
Updating doc links to VS Extension ( #2971 )
...
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
2024-03-01 10:38:10 -08:00
Timothee Guerin
8c7c76bf8e
`isErrorModel` check for base models ( #2968 )
...
fix #2957
2024-03-01 01:59:52 +00:00
Timothee Guerin
fa8b959491
Feature: Spread `Record<T>` ( #2920 )
...
fix #2785
2024-02-29 16:47:23 -08:00