Родитель
7452fe9a57
Коммит
a1eb851cc3
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
|
||||||
|
changeKind: internal
|
||||||
|
packages:
|
||||||
|
- "@typespec/http"
|
||||||
|
---
|
|
@ -19,7 +19,6 @@
|
||||||
"**/.git": true,
|
"**/.git": true,
|
||||||
"**/.DS_Store": true
|
"**/.DS_Store": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"[javascript][javascriptreact][typescript][typescriptreact]": {
|
"[javascript][javascriptreact][typescript][typescriptreact]": {
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.formatOnPaste": false, // work around https://github.com/simonhaenisch/prettier-plugin-organize-imports/issues/53
|
"editor.formatOnPaste": false, // work around https://github.com/simonhaenisch/prettier-plugin-organize-imports/issues/53
|
||||||
|
|
14
cspell.yaml
14
cspell.yaml
|
@ -15,10 +15,12 @@ words:
|
||||||
- cadl
|
- cadl
|
||||||
- cadleditor
|
- cadleditor
|
||||||
- cadleng
|
- cadleng
|
||||||
|
- cadlplayground
|
||||||
- clsx
|
- clsx
|
||||||
- cobertura
|
- cobertura
|
||||||
- codeql
|
- codeql
|
||||||
- Contoso
|
- Contoso
|
||||||
|
- CORGE
|
||||||
- createsorreplacesresource
|
- createsorreplacesresource
|
||||||
- createsorupdatesresource
|
- createsorupdatesresource
|
||||||
- CRUDL
|
- CRUDL
|
||||||
|
@ -29,13 +31,16 @@ words:
|
||||||
- ecmarkup
|
- ecmarkup
|
||||||
- esbuild
|
- esbuild
|
||||||
- fluentui
|
- fluentui
|
||||||
|
- genproto
|
||||||
- globby
|
- globby
|
||||||
|
- Infima
|
||||||
- inmemory
|
- inmemory
|
||||||
- instanceid
|
- instanceid
|
||||||
- interner
|
- interner
|
||||||
- intrinsics
|
- intrinsics
|
||||||
- jsyaml
|
- jsyaml
|
||||||
- keyer
|
- keyer
|
||||||
|
- lifecyle
|
||||||
- lzutf
|
- lzutf
|
||||||
- mocharc
|
- mocharc
|
||||||
- msbuild
|
- msbuild
|
||||||
|
@ -43,6 +48,7 @@ words:
|
||||||
- multis
|
- multis
|
||||||
- munge
|
- munge
|
||||||
- mylib
|
- mylib
|
||||||
|
- nanos
|
||||||
- noformat
|
- noformat
|
||||||
- noopener
|
- noopener
|
||||||
- noreferrer
|
- noreferrer
|
||||||
|
@ -75,9 +81,11 @@ words:
|
||||||
- TRYIT
|
- TRYIT
|
||||||
- TSES
|
- TSES
|
||||||
- tspd
|
- tspd
|
||||||
|
- tspwebsitepr
|
||||||
- tsvs
|
- tsvs
|
||||||
- typespecvs
|
- typespecvs
|
||||||
- Uhoh
|
- Uhoh
|
||||||
|
- uitestresults
|
||||||
- unassignable
|
- unassignable
|
||||||
- Uncapitalize
|
- Uncapitalize
|
||||||
- uninstantiated
|
- uninstantiated
|
||||||
|
@ -101,6 +109,12 @@ ignorePaths:
|
||||||
- "**/coverage/**"
|
- "**/coverage/**"
|
||||||
- packages/website/build/**
|
- packages/website/build/**
|
||||||
- common/scripts/*
|
- common/scripts/*
|
||||||
|
- "**/ThirdPartyNotices.txt"
|
||||||
|
- packages/compiler/test/formatter/scenarios/**
|
||||||
|
- pnpm-lock.yaml
|
||||||
|
- "**/*.mp4"
|
||||||
|
- packages/samples/test/output/**
|
||||||
|
useGitignore: true
|
||||||
enableFiletypes:
|
enableFiletypes:
|
||||||
- cadl
|
- cadl
|
||||||
patterns:
|
patterns:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"check-version-mismatch": "syncpack list-mismatches",
|
"check-version-mismatch": "syncpack list-mismatches",
|
||||||
"change": "chronus",
|
"change": "chronus",
|
||||||
"clean": "pnpm -r run clean",
|
"clean": "pnpm -r run clean",
|
||||||
"cspell": "cspell --no-progress \"**/*.{md,ts,tsx}\" ",
|
"cspell": "cspell --no-progress .",
|
||||||
"dogfood": "pnpm install && pnpm build && pnpm -r dogfood",
|
"dogfood": "pnpm install && pnpm build && pnpm -r dogfood",
|
||||||
"fix-version-mismatch": "syncpack fix-mismatches",
|
"fix-version-mismatch": "syncpack fix-mismatches",
|
||||||
"format": "pnpm run prettier --write",
|
"format": "pnpm run prettier --write",
|
||||||
|
|
|
@ -120,7 +120,7 @@ enum OAuth2FlowType {
|
||||||
@doc("authorization code flow")
|
@doc("authorization code flow")
|
||||||
authorizationCode,
|
authorizationCode,
|
||||||
|
|
||||||
@doc("implcit flow")
|
@doc("implicit flow")
|
||||||
implicit,
|
implicit,
|
||||||
|
|
||||||
@doc("password flow")
|
@doc("password flow")
|
||||||
|
|
|
@ -29,8 +29,8 @@ namespace BytesMethod {
|
||||||
@route("binaryFile")
|
@route("binaryFile")
|
||||||
@post
|
@post
|
||||||
op genericBinaryFile(
|
op genericBinaryFile(
|
||||||
...BytesBody<"application/octect-stream">,
|
...BytesBody<"application/octet-stream">,
|
||||||
): BytesBody<"application/octect-stream">;
|
): BytesBody<"application/octet-stream">;
|
||||||
|
|
||||||
@route("imagePng")
|
@route("imagePng")
|
||||||
@post
|
@post
|
||||||
|
|
|
@ -3,7 +3,7 @@ import "@typespec/rest";
|
||||||
using TypeSpec.Http;
|
using TypeSpec.Http;
|
||||||
|
|
||||||
@service({
|
@service({
|
||||||
title: "Documentaion sample",
|
title: "Documentation sample",
|
||||||
})
|
})
|
||||||
namespace DocSample;
|
namespace DocSample;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* This example showcase propviding a different name over the wire.
|
* This example showcase providing a different name over the wire.
|
||||||
* In this example the `WithEncodedNames` model has a `notBefore` property that should get serialized as `nbf` when serialized as json.
|
* In this example the `WithEncodedNames` model has a `notBefore` property that should get serialized as `nbf` when serialized as json.
|
||||||
*/
|
*/
|
||||||
@service({
|
@service({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
alias myconst = "foobar";
|
alias myConst = "foobar";
|
||||||
|
|
||||||
model Person {
|
model Person {
|
||||||
simple: "Simple ${123} end";
|
simple: "Simple ${123} end";
|
||||||
|
@ -8,7 +8,7 @@ model Person {
|
||||||
${true}
|
${true}
|
||||||
line
|
line
|
||||||
""";
|
""";
|
||||||
ref: "Ref this alias ${myconst} end";
|
ref: "Ref this alias ${myConst} end";
|
||||||
template: Template<"custom">;
|
template: Template<"custom">;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,10 @@ model Basic {
|
||||||
@doc("Name property with a very long description that does not fit on a single line and a line break.")
|
@doc("Name property with a very long description that does not fit on a single line and a line break.")
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
color: CMYKColors;
|
color: Colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum CMYKColors {
|
enum Colors {
|
||||||
cyan,
|
cyan,
|
||||||
Magenta,
|
Magenta,
|
||||||
YELLOW,
|
YELLOW,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import "@typespec/rest";
|
import "@typespec/rest";
|
||||||
import "@typespec/openapi";
|
import "@typespec/openapi";
|
||||||
|
/* cspell:disable */
|
||||||
|
|
||||||
using TypeSpec.Http;
|
using TypeSpec.Http;
|
||||||
|
|
||||||
|
|
|
@ -29,14 +29,14 @@ paths:
|
||||||
'200':
|
'200':
|
||||||
description: The request has succeeded.
|
description: The request has succeeded.
|
||||||
content:
|
content:
|
||||||
application/octect-stream:
|
application/octet-stream:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
application/octect-stream:
|
application/octet-stream:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: Documentaion sample
|
title: Documentation sample
|
||||||
version: 0000-00-00
|
version: 0000-00-00
|
||||||
tags: []
|
tags: []
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -3,7 +3,7 @@ info:
|
||||||
title: Sample showcasing encoded names
|
title: Sample showcasing encoded names
|
||||||
version: 0000-00-00
|
version: 0000-00-00
|
||||||
description: |-
|
description: |-
|
||||||
This example showcase propviding a different name over the wire.
|
This example showcase providing a different name over the wire.
|
||||||
In this example the `WithEncodedNames` model has a `notBefore` property that should get serialized as `nbf` when serialized as json.
|
In this example the `WithEncodedNames` model has a `notBefore` property that should get serialized as `nbf` when serialized as json.
|
||||||
tags: []
|
tags: []
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -512,7 +512,7 @@ components:
|
||||||
type: string
|
type: string
|
||||||
description: Name property with a very long description that does not fit on a single line and a line break.
|
description: Name property with a very long description that does not fit on a single line and a line break.
|
||||||
color:
|
color:
|
||||||
$ref: '#/components/schemas/CMYKColors'
|
$ref: '#/components/schemas/Colors'
|
||||||
BooleanWrapper:
|
BooleanWrapper:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
@ -531,7 +531,7 @@ components:
|
||||||
field:
|
field:
|
||||||
type: string
|
type: string
|
||||||
format: byte
|
format: byte
|
||||||
CMYKColors:
|
Colors:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
- cyan
|
- cyan
|
||||||
|
|
|
@ -199,6 +199,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-github-link:before {
|
.header-github-link:before {
|
||||||
|
/* cspell:disable-next-line */
|
||||||
background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
|
background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
|
||||||
no-repeat;
|
no-repeat;
|
||||||
content: "";
|
content: "";
|
||||||
|
@ -208,6 +209,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="dark"] .header-github-link:before {
|
[data-theme="dark"] .header-github-link:before {
|
||||||
|
/* cspell:disable-next-line */
|
||||||
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
|
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
|
||||||
no-repeat;
|
no-repeat;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче